You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

If Error issue.

Hello people.

I have watched YouTube read the IFERROR formula information but cannot seem to get the following to work.

I have a lookup formula as you can see, but when the cell is blank it keeps returning the Error.

Help much appreciated.

Rich



iMac 21.5″, macOS 10.13

Posted on Nov 17, 2021 11:12 PM

Reply
Question marked as Top-ranking reply

Posted on Nov 17, 2021 11:39 PM

Hi Rich,


You've not told IFERROR what to do if the formula returns an error.


Here's the syntax for IFERROR:


IFERROR(any-expression, if-error)


In your case, the expression is the VLOOKUP formula:

VLOOKUP(AF$1,LOG::$A:$C,3,1)


Applying the syntax, your formula would be:


IFERROR(VLOOKUP(AF$1,LOG::$A:$C,3,1),"do this")


with "do this" replaced by the result you want if VLOOKUP throws an error.


Regards,

Barry




3 replies
Question marked as Top-ranking reply

Nov 17, 2021 11:39 PM in response to NumberNovice

Hi Rich,


You've not told IFERROR what to do if the formula returns an error.


Here's the syntax for IFERROR:


IFERROR(any-expression, if-error)


In your case, the expression is the VLOOKUP formula:

VLOOKUP(AF$1,LOG::$A:$C,3,1)


Applying the syntax, your formula would be:


IFERROR(VLOOKUP(AF$1,LOG::$A:$C,3,1),"do this")


with "do this" replaced by the result you want if VLOOKUP throws an error.


Regards,

Barry




If Error issue.

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.