Conditional formatting

User avatar
VegasNath
5StarLounger
Posts: 1185
Joined: 24 Jan 2010, 12:02
Location: Wales, UK.

Conditional formatting

Post by VegasNath »

I am trying to highlight differences between 2 ranges of data (ignoring rounding errors), using CF, but I am not getting the expected results.

Any idea where I am going wrong?
CF.GIF
You do not have the required permissions to view the files attached to this post.
:wales: Nathan :uk:
There's no place like home.....

User avatar
HansV
Administrator
Posts: 78567
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Conditional formatting

Post by HansV »

You provide far too little information, but my guess is that you'd need to round the cell value too. Let's say that the active cell is C4.
- Select "Formula Is" from the first dropdown.
- Change the formula to =ROUND(C4,2)=ROUND(F4,2)
- Similar for Condition 2, but with =ROUND(C4,2)<>ROUND(F4,2)
Best wishes,
Hans

User avatar
StuartR
Administrator
Posts: 12618
Joined: 16 Jan 2010, 15:49
Location: London, Europe

Re: Conditional formatting

Post by StuartR »

You don't really need to use TWO conditions for this. Simply colour the cell to match one of the two conditions, and the other condition will override the defaults. Note, this only works because the two conditions are exact opposites of each other, so that when one is true the other is false.
StuartR


User avatar
VegasNath
5StarLounger
Posts: 1185
Joined: 24 Jan 2010, 12:02
Location: Wales, UK.

Re: Conditional formatting

Post by VegasNath »

Thankyou both.
:wales: Nathan :uk:
There's no place like home.....