+ Reply to Thread
Results 1 to 6 of 6

sum not accurate

  1. #1
    Registered User
    Join Date
    05-21-2012
    Location
    Toronto
    MS-Off Ver
    Excel 2003 & 2010
    Posts
    14

    sum not accurate

    all the data in the excel is less than 2 decimal but the sum/aggregate I calculated is 6 decimals?


    Why is that and how do I change it so its 100% accurate to the data I entered.

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    06-23-2010
    Location
    Iowa, United States
    MS-Off Ver
    Excel 2007
    Posts
    145

    Re: sum not accurate

    Hello MIAO,

    I believe your sum is 100% accurate. Your answer of 892238109.749998 is really 892238109.75, I believe it is just a result of the way Excel calculates things. If you want to get rid of the extra decimals, you can always use the function:

    =ROUND(SUM(A1:A45898),2)

    Let me know if this helps.

    Steve
    A VBA novice, excited to learn!

  3. #3
    Registered User
    Join Date
    05-21-2012
    Location
    Toronto
    MS-Off Ver
    Excel 2003 & 2010
    Posts
    14

    Re: sum not accurate

    If it's accurate where did 0.0000002 gone? my data set has only 2 decimals.... this can't be random....

  4. #4
    Forum Contributor
    Join Date
    06-23-2010
    Location
    Iowa, United States
    MS-Off Ver
    Excel 2007
    Posts
    145

    Re: sum not accurate

    This article might shed some light on what I was referring to. Does your task not allow you to use the round function?

    http://www.cpearson.com/excel/rounding.htm

  5. #5
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: sum not accurate

    If you divide 1 (no decimals) by 3 (no decimals) how many decimals do you expect in the answer?

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: sum not accurate

    the answer is correct, its the the way that it is being displayed/formatted, tha makes it look that way. in the cell with the sum formula, press F2, the F9, and see what the results are? press escape after you have checked the answer so you dont lose the formula
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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