PC Review


Reply
Thread Tools Rate Thread

Adding only 2 numbers doesn't come up with correct sum

 
 
dental321
Guest
Posts: n/a
 
      3rd Apr 2010
I am adding 3 numbers in a column. It doesn't give me a correct answer.

Numbers to add:

37.40
13.25
64.11
Excel total is $114.75 and shoulod be $114.76

Does anyone know what is going on? It's doing it here and there within the
spreadsheet.

Thanks!
 
Reply With Quote
 
 
 
 
ker_01
Guest
Posts: n/a
 
      5th Apr 2010
Where are the source numbers coming from- are they physically entered, or are
they equations? My first guess (since additional details were not provided)
is that they are formulas, and that Excel is rounding to the nearest 2nd
decimal because of cell formatting- but Excel will keep the extended decimals
in the background, so when you add them up you will see differences based on
rounding error. If you need a true (post rounded) total, then you can get
that, but not with a direct SUM statement.

Example of what I suspect is happening:

> Numbers to add: Showing in cell as:
>
> 37.396 37.40
> 13.248 13.25
> 64.109 64.11

---------- -------------
114.753 114.76
114.75 (rounded) 114.76 (rounded)

Depending on your specific situation, you might add the rounding in the
original source formula, or create a new column that is =round(A1,2) to get
the rounded values to work with.

You could probably also just use an array formula, something like
=sum(round(A1:A3),2)
entered with ctrl-alt-enter (when it is entered correctly, you will see
squiggle brackets around the formula in the formula bar; but do no enter
those brackets by hand, Excel won't accept that as a method of entering an
array formula)

"dental321" wrote:

> I am adding 3 numbers in a column. It doesn't give me a correct answer.
>
> Numbers to add:
>
> 37.40
> 13.25
> 64.11
> Excel total is $114.75 and shoulod be $114.76
>
> Does anyone know what is going on? It's doing it here and there within the
> spreadsheet.
>
> Thanks!

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sorting section numbers doesn't give correct order facmanboss Microsoft Excel Misc 3 12th Feb 2009 05:04 AM
numbers not correct Chicken Dogs Microsoft Excel New Users 1 13th Feb 2008 11:11 PM
Need to reconcile numbers accounting Harlan Grove code doesn't work for negative numbers aep002@cox.net Microsoft Excel Programming 1 28th Jul 2006 07:09 AM
Rounding numbers is not correct =?Utf-8?B?SmFuaXMgaW4gTWlubmVzb3Rh?= Microsoft Access 3 30th Sep 2005 06:35 PM
Pasting numbers doesn't format them as numbers =?Utf-8?B?TXIgQg==?= Microsoft Excel Misc 4 4th Mar 2004 01:06 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:09 AM.