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




This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

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.