LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,091
Default formula not working right

The formula is working fine. You're experiencing problems with numbers.
Computers generally store numbers as floating point in binary, base 2 which
are approximations of decimal numbers, base 10. Some numbers in decimal can
be represented exactly in binary and others cannot. There are many articles
concerning floating point. Google IEEE floating point.
You can address your problem by rounding the numbers or computing the
difference as less than something like 0.000000001 to determine equality
Modern computers don't work in decimal. Older ones did and did not have this
problem. Progress, I guess.

Tyro



"justlearnin" wrote in message
...
I have a formula in my spreadsheet that check a balance.
=IF(SUM(C17:H17)=I17,"OK", "ERR")
Here are the values that are in each cell
C17 104.86
D17 58.32
E18 -209.11
F19 0
G19 0
H19 52.78
I17 6.85
I get "ERR" because when I evaluate K17 where the formula is it gives me
6.84999999999999. I have tried everything I can think of to fix this with
no
luck. I even tried a new spreadsheet with the values and fromulas with no
luck (I did not use copy and paste to get the info to the new sheet, typed
it
all in)
Please help



 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Formula not working joesf16 Excel Worksheet Functions 2 May 21st 07 04:17 AM
Formula not working Cinderella Excel Discussion (Misc queries) 1 August 26th 06 11:47 PM
Formula not working Connie Martin Excel Worksheet Functions 4 May 30th 06 05:53 PM
formula is not working olivia824 Excel Worksheet Functions 2 January 3rd 06 08:03 PM
Formula not working Carl Hilton Excel Worksheet Functions 13 January 9th 05 06:55 PM


All times are GMT +1. The time now is 12:33 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"