+ Reply to Thread
Results 1 to 7 of 7

SUM Formula clearly sums the incorrect amount.

  1. #1
    Registered User
    Join Date
    03-24-2013
    Location
    Odessa, TX, USA
    MS-Off Ver
    Excel 2007
    Posts
    5

    SUM Formula clearly sums the incorrect amount.

    I am adding nearly 1500 expenses throughout the 2012 year. The values were copy & pasted into excel from a website (to save me all the manual typing). Long story short in cell A1486 I enter the following formula =SUM(a1:a1483) I hit enter and the result is $8166.94. It is clearly wrong as there are nearly 1500 cells being added and the majority are over 100. The result should be a 6 digit figure ballpark around 200,000.

    What I have done to troubleshoot:

    I increased the digits after the decimal point, but since they were all copied & pasted they only extend to 2 decimal places then it is just zero's. So that means no rounding up or down?

    I changed the cells to currency, but still no luck.

    From reading online I have a suspicion it has something to do with copying & pasting & excel not recognizing some of the cells as values.


    I attached a file so you can experiment with it. I've been cracking my head on this for a while then I came across excelforum.com

    Sorry if this has been asked or posted somewhere else, I did a search, didn't find a similar forum.

    Thank you all for your help. If someone finds the answer and would be happy to point out the mistake it would be something I can definitely learn from and we can all be a litter wiser.

    Batman1
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    09-27-2012
    Location
    Florida
    MS-Off Ver
    Excel XP to 2013
    Posts
    342

    Re: SUM Formula clearly sums the incorrect amount.

    Sounds like you have numbers stored as text.
    Tom S.
    ↙ If you find my reply helpful click on the * down there on the left. Yeah that's it, right there, down on the left
    If your question is resolved, mark it SOLVED using the thread tools.

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: SUM Formula clearly sums the incorrect amount.

    there are several things wrong you have numbers formatted as $ but others text as $100 also trailing character(160)
    put
    in b1
    =IF(A1="",0,SUBSTITUTE(SUBSTITUTE(A1,"$",""),CHAR(160),""))+0 fill down
    you can either just sum that
    or copy/paste special over original as values then delete col b
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  4. #4
    Valued Forum Contributor AZ-XL's Avatar
    Join Date
    03-22-2013
    Location
    Azerbaijan, Baku
    MS-Off Ver
    Excel 2007
    Posts
    603

    Re: SUM Formula clearly sums the incorrect amount.

    They were saved as text string. Dollar sighn was not about the format. Also there were extra spaces too. See the file for real numbers. Its sum is more than 200000
    Attached Files Attached Files
    Appreciate the help? CLICK *

  5. #5
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: SUM Formula clearly sums the incorrect amount.

    @ AZ-XL your formula ignores a581

  6. #6
    Valued Forum Contributor AZ-XL's Avatar
    Join Date
    03-22-2013
    Location
    Azerbaijan, Baku
    MS-Off Ver
    Excel 2007
    Posts
    603

    Re: SUM Formula clearly sums the incorrect amount.

    Quote Originally Posted by martindwilson View Post
    @ AZ-XL your formula ignores a581
    Yes you are right. Everything ok but a 581 there. Thank you

  7. #7
    Registered User
    Join Date
    03-24-2013
    Location
    Odessa, TX, USA
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: SUM Formula clearly sums the incorrect amount.

    Looks like my format was stored as text. martindwilson I used your formula =IF(A1="",0,SUBSTITUTE(SUBSTITUTE(A1,"$",""),CHAR(160),""))+0 fill down & it seems I solved the problem. Even though I'm not completely sure what the formula did. I summed a total of 218760.55 seems like the right figure.

    You guys are Awesome! Also thank you all for your fast response!

    Batman1

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1