Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default excel is calculating wrong again

Calculation issue not fixed.
When calculating a range of numbers I get this:
114,642.55 good

When I add another range of numbers I get this:
165,707.09 good

Now when I try and subtract those two summed fields 165,707.09 from
114,642.55 is get this:
51,064.46999999 wrong
I should get this 51,064.47.

How can this be?
I know I can format the field to show the 51,064.47 but the value is
51.064.46999 which after thousands of additions and subtractions that
fraction of a decimal will add up. I am on service pack 2 for office.
It works fine if you just type in the numbers into two fields but when you
subtract the cells with the functions in them, they do not work.

----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the "I
Agree" button in the message pane. If you do not see the button, follow this
link to open the suggestion in the Microsoft Web-based Newsreader and then
click "I Agree" in the message pane.

http://www.microsoft.com/office/comm...et.f unctions
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default excel is calculating wrong again

Well, to start with, 165,707.09 - 114,642.55 is 51064.54, not 51064.47, and
hence if you subtract 165,707.09 from 114,642.55 you should get MINUS
51064.54.

If you get the round number (to 2 places) displayed when you type the
numbers in, but you don't when you use your calculated values, then this is
telling you that your 165,707.09 and 114,642.55 are not exactly those
values. Instead of displaying them to 2 decimal places, change the display
to 8 or 9 decimal places and have a look at what it then tells you.

There is, however, always the danger that numbers don't show exactly what
you expect, because Excel does its calculations in binary, and there is no
exact binary representation of numbers like 0.55 or 0.09. You can get an
exact binary representation of 0.5 or 0.25 or 0.375, but not 0.1 or 0.01.
Hence there will always be small rounding errors. If you are working with
numbers that you expect to be exact multiples of 0.01, use the ROUND
function from time to time in your calculations, hence instead of =A1+B1 you
can use =ROUND(A1+B1,2).
--
David Biddulph


"prpball" wrote in message
...
Calculation issue not fixed.
When calculating a range of numbers I get this:
114,642.55 good

When I add another range of numbers I get this:
114,642.55 good

Now when I try and subtract those two summed fields 165,707.09 from
114,642.55 is get this:
51,064.46999999 wrong
I should get this 51,064.47.

How can this be?
I know I can format the field to show the 51,064.47 but the value is
51.064.46999 which after thousands of additions and subtractions that
fraction of a decimal will add up. I am on service pack 2 for office.
It works fine if you just type in the numbers into two fields but when you
subtract the cells with the functions in them, they do not work.

----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the "I
Agree" button in the message pane. If you do not see the button, follow
this
link to open the suggestion in the Microsoft Web-based Newsreader and then
click "I Agree" in the message pane.

http://www.microsoft.com/office/comm...et.f unctions



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 236
Default excel is calculating wrong again

Check out Chip Pearson's explanation of how Excel rounds...
http://www.cpearson.com/Excel/rounding.htm

--
Hope this helps.
If it does, please click the Yes button.
Thanks in advance for your feedback.
Gary Brown



"prpball" wrote:

Calculation issue not fixed.
When calculating a range of numbers I get this:
114,642.55 good

When I add another range of numbers I get this:
165,707.09 good

Now when I try and subtract those two summed fields 165,707.09 from
114,642.55 is get this:
51,064.46999999 wrong
I should get this 51,064.47.

How can this be?
I know I can format the field to show the 51,064.47 but the value is
51.064.46999 which after thousands of additions and subtractions that
fraction of a decimal will add up. I am on service pack 2 for office.
It works fine if you just type in the numbers into two fields but when you
subtract the cells with the functions in them, they do not work.

----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the "I
Agree" button in the message pane. If you do not see the button, follow this
link to open the suggestion in the Microsoft Web-based Newsreader and then
click "I Agree" in the message pane.

http://www.microsoft.com/office/comm...et.f unctions

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7,247
Default excel is calculating wrong again


I should get this 51,064.47.


No you shouldn't.

Check your numbers again and the formulas that feed them. In Excel
2007 (and confirmed on my HP48GX and HP12C calculators), the
subtraction

165,707.09 - 114,642.55 = 51,064.54, not 51,064.469... - 51,064.47


Since you haven't posted the formulas that yield the two subtracted
numbers, it is rather difficult to diagnose the problem. I dummied up
some formulas that result in the desired numbers, and when subtracted
they yield the correct result.

There is always some rounding in Excel (and nearly all other
software), and that can usually be controlled by judicious use of the
ROUND* functions (or, dangerously, via the Precision As Displayed
setting).



Cordially,
Chip Pearson
Microsoft MVP 1998 - 2010
Pearson Software Consulting, LLC
www.cpearson.com
[email on web site]






On Tue, 26 Jan 2010 08:36:06 -0800, prpball
wrote:

Calculation issue not fixed.
When calculating a range of numbers I get this:
114,642.55 good

When I add another range of numbers I get this:
165,707.09 good

Now when I try and subtract those two summed fields 165,707.09 from
114,642.55 is get this:
51,064.46999999 wrong
I should get this 51,064.47.

How can this be?
I know I can format the field to show the 51,064.47 but the value is
51.064.46999 which after thousands of additions and subtractions that
fraction of a decimal will add up. I am on service pack 2 for office.
It works fine if you just type in the numbers into two fields but when you
subtract the cells with the functions in them, they do not work.

----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the "I
Agree" button in the message pane. If you do not see the button, follow this
link to open the suggestion in the Microsoft Web-based Newsreader and then
click "I Agree" in the message pane.

http://www.microsoft.com/office/community/en-us/default.mspx?mid=8155322b-d1a3-4b06-98cd-c8c65afa8736&dg=microsoft.public.excel.worksheet.f unctions

Reply
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
excel is calculating wrong again. prpball Excel Worksheet Functions 2 February 1st 10 12:13 AM
Excel formula is calculating wrong total number on some of cells Alan Excel Worksheet Functions 4 March 10th 09 04:31 PM
Autosum Calculating Wrong Kelly P Excel Discussion (Misc queries) 5 January 15th 08 08:09 PM
Insert Calculated Field (wrong Qty*Price = wrong Amount) Edmund Excel Discussion (Misc queries) 8 October 4th 07 12:13 PM
Easy calculating ending with wrong decimals Ronny Andersen Excel Discussion (Misc queries) 2 March 9th 06 11:29 AM


All times are GMT +1. The time now is 05:07 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"