Inconsistent "greater than" and "less than" calculations

wpryan

Well-known Member
Joined
May 26, 2009
Messages
534
Office Version
  1. 365
Platform
  1. Windows
Hello, I have a column of cells into which I want to calculate some basic pass/fail criteria based on this formula
Code:
=IF(ISBLANK(C28),"",IF(D28>0.1,"Fail","Pass"))
The data for D28 is coming from another calculation, which is working correctly. If the result of the calculation is exactly 0.1, then most of the time I get a "Pass" return - which is incorrect (0.1 is not greater than 0.1). I say most of the time because although it happens this way most of the time, there are certain cells which give the correct answer.


..any idea what's going on?
 
...Strange. I rounded to 3 decimal places (don't need any more than that) and it's now working normally.Thanks for your help with this weird problem!
 
Upvote 0

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
...Strange. I rounded to 3 decimal places (don't need any more than that) and it's now working normally.
Any rounding as long as it is before the point at which decimal-to-binary starts to show a difference will work... I suggested 10 decimal places because I did not know your needs significant digits-wise.
 
Upvote 0

Forum statistics

Threads
1,221,419
Messages
6,159,801
Members
451,590
Latest member
Nem

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