IFERROR returns zero but that 0 doesn't work with conditional formatting

nathp

New Member
Joined
Apr 25, 2023
Messages
20
Office Version
  1. 365
Platform
  1. Windows
Firstly please excuse me if this is a stupid questions as I relatively inexperienced with excel.

I have an IFERROR formula that preceeds an xlookup. This is set to return a value from the xlookup and a 0 if no value is present in the lookup. I then want to format this cell (along with others) conditionally so that 0 values turn green, 1-2 turns yellow etc). The conditional formatting works perfectly if there is a zero found in the xlookup (or any other number) but when a zero is returned by the iferror then that zero acts as a high number. For instance formatting the returned 0 as a greater than 10 value colours the 0 cell.

Sorry for the bad explanation but any help would be much appreciated.

Thanks
 
You're welcome & thanks for the feedback.
 
Upvote 0

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
This is sounding positive. To be honest, someone else created the xlookup as I had no idea how to do it :)
Does this work?

Excel Formula:
=XLOOKUP("S23P2_ELD1",Alarms!$A$19:$A$43,Alarms!$B$19:$B$43,0,0)
 
Upvote 0

Forum statistics

Threads
1,223,909
Messages
6,175,310
Members
452,634
Latest member
cpostell

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top