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

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
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,224,823
Messages
6,181,183
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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