Conditional Formatting between a number and #N/A

Status
Not open for further replies.

MikeyZ

Well-known Member
Joined
Mar 14, 2002
Messages
553
I lost my thread on this one. My apologies.

In Col F I have yesterdays Inv qty's.
Values = 0 thru whatever.
In col G I have the latest up to date qty's pulled from a Pivot Table report.

My Vlookup fx pulls the data over into Col "G".

In Col "F" I have a conditional fx so that when the value in F differs from G it turns "red.

Here's my problem.
When the Vlookup can't find a P/N it yields a #N/A tag but I have that shown as a "0"
=IFERROR(VLOOKUP(E636,'LiveQty!$A:$B,2,),"0")
My latest try at the CF criteria are as follows:
=IF(OR(F9="0",G9="0"),FALSE,F9<>G9)

So I may have F = 5500 but G = 0 (because of the error #N/A returned from the VLOOKUP).
As a result cell F doesn't turn color like I hoped.
And what happens when F = 0 and G = 0, F turns color.

What am I doing wrong?
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.

Forum statistics

Threads
1,214,983
Messages
6,122,583
Members
449,089
Latest member
Motoracer88

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