conditional formatting issue - comparing two values

musicgold

Board Regular
Joined
Jan 9, 2008
Messages
197
Hello,

I am trying to use conditional formatting to detect when two cells have different values. The formula is quite simple: =G50 <> G58 . I want Cell G58 to become red when its value doesn't match with that in G50.

The problem is the Cell G58 is always showing red, except when I enter the same number in both cells manually, for example 0 or 10.


Both cell G50 and G58 have formulas. On further investigating, I realized that the values in both cells match up to the 7th decimal place, but the eighth decimal digit is different, as shown below. As my numbers are in millions, I never use decimal places, that is why I never noticed the difference.

G50=1,429,151.418375630
G58=1,429,151.418375620

How do I get Excel to ignore that kind of minor difference? Also, is there a way to reduce Excel's precision to only, say, 3 decimal places?


I have Excel 2010.
 
Last edited:

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Decide how many decimal places you want to consider and use ROUND(). e.g.

Code:
=ROUND(G50,4)<>ROUND(G58,4)

WBD
 
Upvote 0

Forum statistics

Threads
1,215,455
Messages
6,124,937
Members
449,196
Latest member
Maxkapoor

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