+ Reply to Thread
Results 1 to 4 of 4

How to make the summation to zero?

  1. #1
    Forum Contributor
    Join Date
    11-12-2010
    Location
    HK
    MS-Off Ver
    Excel 2010
    Posts
    189

    How to make the summation to zero?

    Hi,

    I attached a sample in which the result of summation is not zero. Can anyone tell me why? and as I am using the summation result in a pivot table and I filter out those items whose value equal or less than 0 but this kind of result is annoying (0.0000000000002274) and of course I cannot take this item out. How can I solve this problem?

    Thanks
    sample.xlsx

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: How to make the summation to zero?

    Hi,

    This looks like a rounding problem. Read about this well known concern at: http://www.cpearson.com/excel/rounding.htm

    The idea is that when computers do work, they do it in Base 2 numbers. Computers can get as close as the number of digits it can deal with. You need to round your values to something that will make your result be zero.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Forum Contributor
    Join Date
    11-12-2010
    Location
    HK
    MS-Off Ver
    Excel 2010
    Posts
    189

    Re: How to make the summation to zero?

    Thanks MarvinP, I tried the functions mentioned in the website, but none can get the result of 0 in my sample. Does this mean that no other methods can solve this problem?

    Quote Originally Posted by MarvinP View Post
    Hi,

    This looks like a rounding problem. Read about this well known concern at: http://www.cpearson.com/excel/rounding.htm

    The idea is that when computers do work, they do it in Base 2 numbers. Computers can get as close as the number of digits it can deal with. You need to round your values to something that will make your result be zero.

  4. #4
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: How to make the summation to zero?

    Your question is like asking for the exact decimal value for 1/3. The .333... repeats ENDLESSLY. If you carry the decimal out forever it never ends.

    When we humans convert numbers to base 2 and have computers work with our numbers, we get rounding errors if we go beyond the limits of the digits used. This is a well known problem and has many sites to explain how to round values or only display the appropriate number of digits to satisfy our exacting minds.

    Try this link to see if it helps:
    http://support.microsoft.com/kb/214118

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. How to make a positive summation show red
    By John De Beloved Abah in forum Excel General
    Replies: 1
    Last Post: 02-24-2012, 09:09 AM
  2. Summation
    By mbuckley56 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-08-2010, 05:40 PM
  3. Replies: 2
    Last Post: 10-14-2009, 11:32 AM
  4. Summation of n
    By HeirToPendragon in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-17-2008, 02:18 PM
  5. [SOLVED] Summation from a to b
    By jeblunk in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-04-2005, 10:20 AM

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