+ Reply to Thread
Results 1 to 34 of 34

Floating-point arithmetic... (=SUM) doesn't work correctly for my basic decimal numbers

Hybrid View

  1. #1
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Floating-point arithmetic... (=SUM) doesn't work correctly for my basic decimal number

    Here are 3 options, only one of which works. It STILL involves rounding. that is INEVITABLE. Since I had no idea where your numbers came from, I made up my own set (of 38 numbers). Nineteen positive numbers and the same 19 numbers multiplied by -1. So I KNEW that the sum was zero.

    Simply summing them, as we already knew (Option 1) doesn't work. Surprisingly (to me) Option 3 (use an array formula ro round them and then sum them) didn't work either. However, the rounding option that I have been suggesting does work:

    =ROUND(SUM($A$3:$A$41),3)

    If that isn't good enough for you, then I think you need to explain clearly why it does not suit.
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

+ 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. vlookup and Sum in same formula not working correctly
    By mrichard in forum Excel General
    Replies: 5
    Last Post: 08-31-2015, 08:18 PM
  2. [SOLVED] Formula not working out correctly
    By ladbroke in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 06-26-2015, 01:24 AM
  3. Formula not working correctly
    By Burt_100 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-21-2014, 07:08 AM
  4. [SOLVED] Basic Formula Not Subtracting/looking at Imported time Correctly
    By jayclinton in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-02-2014, 09:10 PM
  5. If then formula not working correctly
    By chappie97 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-23-2013, 01:22 AM
  6. [SOLVED] IF formula not working correctly
    By ErikaC in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-18-2013, 03:38 PM
  7. Replies: 9
    Last Post: 03-08-2013, 11:50 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