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

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple

Forum statistics

Threads
1,215,063
Messages
6,122,934
Members
449,094
Latest member
teemeren

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