To enable the use of IfError and other formula level error handling functions, you must go to Settings > Upcoming Features > Experimental > Formula Level Error Handling and turn it on.