Home |
Search |
Today's Posts |
#9
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi,
Of course there is the core question of why this happens. Excel is run on a computer which works in binary, which means all numbers are stored and calculated in binary. Each number is represented as a series of ones and zeros, for example: 1010101011. This number is not always an exact equivalent of the decimal equivalent, hense there may be a small error in the last decimal places. That is enough of an error to cause the Excel not to see the two numbers as equal. As suggested, if this is critical you would resort to a round function. In many cases formatting the cell to 0 or 2 decimals will "hide" the issue. But in your case Excel is checking all digits out to 15 decimals so hiding isn't a solution. -- Thanks, Shane Devenshire "Sean Duffy" wrote: I've tried the following simple IF test as a check on totals in a sheet where I'm compiling accounts: =IF(C24=SUM(C25:C50),"","!") bizarrely, C24 and the sum of C25 to C50 are the same number, but I'm getting a FALSE result and "!" is appearing in the check cell In another cell i've summed C25:C50 to prove to myself that it really is the same number - yes, it is! the number in C24 is from another sheet in the same workbook and is in turn the result of a SUM in that sheet - I've double checked that value and it is correct also. the values in each of the cells C25 to C50 are each from a a different sheet in the same workbook Can anyone suggest why I'm getting this false "FALSE" result? Thanks |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Cosine Function Returns Wrong Answer! | Excel Discussion (Misc queries) | |||
Logical test in IF statement returning incorrect result | Excel Worksheet Functions | |||
Row() function returns wrong row and more.. | Excel Worksheet Functions | |||
month worksheet function returns wrong value | Excel Worksheet Functions | |||
SUM returns wrong result | Excel Worksheet Functions |