| View previous topic :: View next topic |
| Author |
Message |
bossler13 Newbie

Joined: 01 Jul 2012 Posts: 1
|
Posted: Sun Jul 01, 2012 8:47 am Post subject: Conditional formmatting issue when value ends in zero |
|
|
I have conditional formatting set up to change cell backround color to red when selected cell (A) "is not equal to" the reference cell (B). It works as desired with one exception.
The reference cell has a formula of =cell(C) - cell (D). All cells are formatted as currency.
whenever the value of (C) or (D) end with a zero ex.$255638.20 the conditional formatting of (A) highlights the cell red as if the values were not equal. They are in fact equal. I have looked for a resolution for weeks and haven't figured it out..
Any help would be greatly appreciated! |
|
| Back to top |
|
 |
Alex3 Newbie

Joined: 26 Aug 2010 Posts: 4
|
Posted: Sun Jul 01, 2012 8:57 am Post subject: |
|
|
| Non-integer numbers cannot be represented exactly in binary arithmetic, unless they can be written as a quotient of integers in which the denominator is a power of 2. So when you want to compare two non-integer numbers with two decimals you might write ABS(a-b)<0.003. |
|
| Back to top |
|
 |
|