Conditional Formatting question

MikeyZ

Well-known Member
Joined
Mar 14, 2002
Messages
553
I have this fx in col "G".
=IFERROR(VLOOKUP(E9,'[QtyOnHand'!$A:$B,2,),"0")

It just pulls the on hand inv qty over from another sheet so I can compare it to yesterdays on hand qty I posted in F.

When qty differ between F and G I want to have either F or G change color. I picked red.
Problem is, if I have a 0 in F, the true value in G is #N/A and not 0. therefore I get a lot of "red" popping up. So I'm not getting a true picture.

Is there an easier way to achieve my goal?
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
How have you set up the CF rule? Can you explain what exactly you mean by this:

When qty differ between F and G I want to have either F or G change color.

Why not use this in F?

=IFERROR(VLOOKUP(E9,'[QtyOnHand'!$A:$B,2,),"No Match")
 
Last edited:
Upvote 0
OK. Use this as your formula in the cell:

=IFERROR(VLOOKUP(E9,'[QtyOnHand'!$A:$B,2,),"")

and this as your CF rule:

=IF(OR(F9="",G9=""),FALSE,F9<>G9)

PS Are you sure it's E9 in the VLOOKUP?
 
Last edited:
Upvote 0
Back again.
I jumped the gun when I said this worked.
It works fine when col "G" is populated with numbers.
Then when F differs from G the cell turns the color I want.

When the qty in F = anything > 0, and the value in G = "", CF fails to work.

=IF(OR(F9="",G9=""),FALSE,F9<>G9)

Any further suggestions?
 
Upvote 0
just to clarify.

The values in F are the previous inventory qty's.
The values in G are the current live values based on the system live report.
I want the cell to turn the color I selected when the F value differs from the G value.
When G gets a #N/A value or "", CF doesn't work.
 
Upvote 0

Forum statistics

Threads
1,214,424
Messages
6,119,401
Members
448,893
Latest member
AtariBaby

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