Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 06-15-2014, 03:27 PM
kiwikees kiwikees is offline Error in calculating differences Windows 8 Error in calculating differences Office 2010 32bit
Novice
Error in calculating differences
 
Join Date: Jun 2014
Posts: 2
kiwikees is on a distinguished road
Default Error in calculating differences

When I use a function (Col A) to compare a calculated difference (Col C) with the same number typed in (Col B), I get inconsistent results.


the formula being =B2=C2 0.04 =D2+E2 -0.61 0.65

Using other comparible formulas (=IF types) yield the same result.
There is a pattern but it changes


Has anyone any ideas? This has dashed my confidence in Excel.
Attached Files
File Type: xlsx Difference error in Excel.xlsx (34.1 KB, 11 views)
Reply With Quote
  #2  
Old 06-15-2014, 05:09 PM
whatsup whatsup is offline Error in calculating differences Windows 7 64bit Error in calculating differences Office 2010 32bit
Competent Performer
 
Join Date: May 2014
Posts: 137
whatsup will become famous soon enough
Default

Hi

What occurs in your sheet is known as floating point error (search with google, it will come up with a lot of links - though most of them very difficult to understand, so you will have to look for your own).
Briefly explained:
Some numbers (the most famous are 0.1 and 0.01) cannot accurately represented in binary. But that's the way computers operate, and when transferring the binary to decimal the error occurs.
How to make it visible:
That's - in my opinion - the annoying part with excel. The standard cell format usually doesn't display the error. But if you use the number format with 16 digits, it will show you the real value of the cell. That's for C54 = 0.0399999999999999
How to fix the problem:
In my opinion the best choice in case you need for some reason the accuracy is using the function ROUND() by rounding to the required digits.
Reply With Quote
  #3  
Old 06-15-2014, 06:22 PM
kiwikees kiwikees is offline Error in calculating differences Windows 8 Error in calculating differences Office 2010 32bit
Novice
Error in calculating differences
 
Join Date: Jun 2014
Posts: 2
kiwikees is on a distinguished road
Default

Thank you. A great explanation, I understand.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Error in calculating differences Differences in borders at page break in merged cells Sudlav Word Tables 2 05-23-2013 11:50 PM
Error in calculating differences Calculate differences between text cells? poobear Excel 2 05-19-2012 06:43 AM
Error in calculating differences Compare tables and mark differences (vlookup? goodhope Excel 1 03-26-2011 10:29 AM
Error in calculating differences Random formatting differences between what I send and what is received djmills32 Outlook 7 11-30-2010 04:45 AM
Question regarding differences among styles bigsnowdog Word 0 08-01-2010 02:41 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 07:36 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft