Blank cell error

Good morning everyone.


my cell formula is in cell D2 which is; lookup(C2,A2:B32)

when C2 is blank an error (red Triangle) appears in D2

how do I resolve this error?

Cheers

iMac 24″, macOS 15.0

Posted on Oct 1, 2024 4:30 PM

Reply
Question marked as Top-ranking reply

Posted on Oct 1, 2024 4:50 PM

It will give an error if it cannot find a match. It will not find a match for a blank cell.


You can use XLOOKUP which allows you to provide a value (or the null string "") when a match is not found. Or you can put the IFERROR function around your current formula, but that would be silly. LOOKUP is an old function. XLOOKUP is much better.

2 replies
Question marked as Top-ranking reply

Oct 1, 2024 4:50 PM in response to Sparviero70

It will give an error if it cannot find a match. It will not find a match for a blank cell.


You can use XLOOKUP which allows you to provide a value (or the null string "") when a match is not found. Or you can put the IFERROR function around your current formula, but that would be silly. LOOKUP is an old function. XLOOKUP is much better.

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.

Blank cell error

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