+ 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
    Registered User
    Join Date
    02-22-2018
    Location
    Finland
    MS-Off Ver
    365
    Posts
    12

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

    I will be crazy. Maybe I am very tired. I do not understand why my SUM formula is not working correctly.
    Please help me

    More details:
    I believe my problem is very small. However, I do not know how to solve. I have a very large and complicated excel file, there are several formulas etc etc...One day, I noticed that my result are not correct. I check all the formulas, lines.. I could not find the reason...Then I decided to split the excel file by formula...Finally, I found out that the problem, as in the excel file in my first message.
    I suppose that my formula (=SUM) result should be zero. However the result is not real zero...
    I hope someone can tell me and show me a result.
    Please check my attachmet, you will see the problem easily.

    More information:
    Let me make it easy
    Please calculate your self in excel. My result is "-0.0000000000000222044604925031000". Why my result is not "zero"?

    What is the SUM of these values;
    49.350
    -12.600
    21.000
    -0.025
    -5.250
    -6.300
    -6.275
    63.000
    -12.600
    -4.200
    -10.500
    -4.200
    -6.300
    -4.200
    -2.100
    -4.200
    -6.300
    -4.200
    63.000
    -4.200
    -8.400
    -4.200
    -5.250
    -12.600
    -4.200
    -4.200
    -5.250
    -3.150
    -7.350
    -4.200
    -2.100
    -4.200
    -5.250
    -4.200
    -12.600
    -2.100
    -4.200
    -5.250
    -4.200
    Attached Files Attached Files
    Last edited by mengince; 02-22-2018 at 09:49 AM. Reason: more information to my first message

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: my very basic formula (=SUM) is not working correctly

    Hello mengince & Welcome to the Forum,

    Administrative Note:
    • We would love to continue to help you with your query, but first, before we can proceed…
    • Please see Forum Rule #1 about proper thread titles and adjust accordingly...
    HTH
    Regards, Jeff

  3. #3
    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: my very basic formula (=SUM) is not working correctly

    https://support.microsoft.com/en-gb/...sults-in-excel
    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

  4. #4
    Registered User
    Join Date
    02-22-2018
    Location
    Finland
    MS-Off Ver
    365
    Posts
    12

    Re: my very basic formula (=SUM) is not working correctly

    Gleen,
    I checked your link. I tried MS Support "Method 2: Precision as displayed". It does not work for me.

  5. #5
    Forum Expert
    Join Date
    05-01-2014
    Location
    California, US
    MS-Off Ver
    Excel 2010
    Posts
    1,795

    Re: my very basic formula (=SUM) is not working correctly

    Quote Originally Posted by mengince View Post
    I do not want to use =ROUND.
    Quote Originally Posted by mengince View Post
    I tried MS Support "Method 2: Precision as displayed". It does not work for me.
    It does work if you change the format of A40 to display 13 decimal places or less. To confirm, enter the formula =A40=0 into A41.

    The option is called "Precision as displayed". (And really, it should be called "... as formatted" to cover the General format.)

    So if you display too much precision, the option will not do the job that you require.

    But the precision should be chosen based on need. Since your data has at most 3 decimal places, a format with 3 or fewer decimal places in A40 would be appropriate.

    That said, I deprecate the use of PAD for many reasons. Among them are: (1) PAD applies to the entire workbook, not just selected cells; and (2) PAD applies only to the final value of a cell, not to sub-expressions.

    It is important to make a backup copy of your Excel file before setting PAD.

    The danger of #1 is: when you set PAD, it might permanently change constants anywhere in the workbook that you might have entered with more precision than you choose to display. This is not uncommon with interest rates, for example. We might enter the exact rate 1.23456789%, but display only 1.23%. When we set PAD, the actual rate becomes 1.23000000%. Even if we revert to disabling PAD, the rate remains 1.23000000%.

    (The permanency of the change applies only to values that we enter, not to values derived by a formula.)

    The impact of #2 is: even though A40 might become exactly zero when PAD is set and =A40=0 is TRUE, IF(SUM(A1:A39)=0,TRUE) results in FALSE because PAD does not apply to SUM(A1:A39) within the IF() expression. The only remedy is to round explicitly; to wit: IF(ROUND(SUM(A1:A39),3)=0,TRUE) .

    In general, explicit rounding is the better solution, like it or not. But always round to the precision that you expect a calculation to be accurate to -- again, 3 decimal places for your example. Do not round to an arbitrary number of decimal places like 10, as many people suggest.
    Last edited by joeu2004; 02-22-2018 at 12:18 PM. Reason: minor

  6. #6
    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: my very basic formula (=SUM) is not working correctly

    Apols. didn't see your post JB and hadn't considered the title TOO bad.

  7. #7
    Registered User
    Join Date
    02-22-2018
    Location
    Finland
    MS-Off Ver
    365
    Posts
    12

    Re: my very basic formula (=SUM) is not working correctly

    Thanks Glenn. You are right. my title is not TOO bad. I believe my problem is very small. However, I do not know how to solve. I have a very large and complicated excel file, there are several formulas etc etc...One day, I noticed that my result are not correct. I check all the formulas, lines.. I could not find the reason...Then I decided to split the excel file by formula...Finally, I found out that the problem, as in the excel file in my first message.
    I suppose that my formula (=SUM) result should be zero. However the result is not real zero...
    I hope someone can tell me and show me a result.

  8. #8
    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: my very basic formula (=SUM) is not working correctly

    Try:
    =ROUND(SUM($A$1:$A$39),2)

  9. #9
    Registered User
    Join Date
    02-22-2018
    Location
    Finland
    MS-Off Ver
    365
    Posts
    12

    Re: my very basic formula (=SUM) is not working correctly

    Quote Originally Posted by Glenn Kennedy View Post
    Try:
    =ROUND(SUM($A$1:$A$39),2)
    I do not want to use =ROUND. Because my real excel file (several sheets linked eachother) have several =SUM formulas. Thus, I need to use only =SUM.

    did you check my excel file? it is really simple data. I guess, some of my excel settings are not correct.

  10. #10
    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: my very basic formula (=SUM) is not working correctly

    I htink you need to explain more clearly what you want.

  11. #11
    Registered User
    Join Date
    02-22-2018
    Location
    Finland
    MS-Off Ver
    365
    Posts
    12

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

    I have edited my title and give more information about my problem

  12. #12
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,941

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

    Thanks for changing the title,
    The problem was may be due to circular reference.
    If not have to look in to file
    Please attach a sample excel file, remove the sensitive data from the file
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  13. #13
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,879

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

    FYI:

    =SUMIF($A$1:$A$39,">0")+SUMIF($A$1:$A$39,"<0")

    will give a result of 0

    in B2

    =SUM(A$1:A2)

    Copy down

    .. will show where the "error" occurs.

  14. #14
    Registered User
    Join Date
    02-22-2018
    Location
    Finland
    MS-Off Ver
    365
    Posts
    12

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

    Quote Originally Posted by JohnTopley View Post
    FYI:

    =SUMIF($A$1:$A$39,">0")+SUMIF($A$1:$A$39,"<0")

    will give a result of 0

    in B2

    =SUM(A$1:A2)

    Copy down

    .. will show where the "error" occurs.
    This formula "=SUMIF($A$1:$A$39,">0")+SUMIF($A$1:$A$39,"<0")" gives "zero".
    But why normal, simple way, "=SUM" is not working???

    What I see from my data, 39 numbers, are very simple and there is no error for these number.

  15. #15
    Registered User
    Join Date
    02-22-2018
    Location
    Finland
    MS-Off Ver
    365
    Posts
    12

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

    My sample excel file is in my first email.

  16. #16
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,941

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

    -0.0000000000000222
    But the formula is giving the above results result in your attached file
    which is not zero

  17. #17
    Registered User
    Join Date
    02-22-2018
    Location
    Finland
    MS-Off Ver
    365
    Posts
    12

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

    There are 39 very simple numbers in my excel file, attached in my first message.
    When I use "=SUM(A1:A39)".... Result is "-0.00000000000002220446049250310"
    When I use "=SUMIF($A$1:$A$39,">0")+SUMIF($A$1:$A$39,"<0")".... Result is "0.00000000000000000000000000000000"
    What is the problem?

  18. #18
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,941

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

    so that you are getting
    196.35 for >
    -196.35 <
    net looks like "zero" but it not zero

    if you use the formula
    =SUMIF(A1:A39,">0")=SUMIF(A1:A39,"<0")
    It will give false

  19. #19
    Forum Expert
    Join Date
    05-01-2014
    Location
    California, US
    MS-Off Ver
    Excel 2010
    Posts
    1,795

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

    Quote Originally Posted by nflsales View Post
    so that you are getting
    196.35 for >
    -196.35 <
    net looks like "zero" but it not zero
    if you use the formula
    =SUMIF(A1:A39,">0")=SUMIF(A1:A39,"<0")
    It will give false
    Because 196.35 <> -196.35. (wink)

    Note that =SUMIF(A1:A39,">0")=-SUMIF(A1:A39,"<0") does return TRUE.

    The point you wanted to make is better demonstrated by the following....

    =SUMIF(A1:A39,">0")+SUMIF(A1:A39,"<0") is exactly zero (0.00E+00 when formatted as Scientific).

    But =SUMIF(A1:A39,">0")+SUMIF(A1:A39,"<0")=0 return FALSE, demonstrating that the calculation is not exactly zero.

    The first formula is exactly zero only because Excel "makes it so" arbitrarily, because the last subtraction is "close enough" to zero.
    Last edited by joeu2004; 02-22-2018 at 11:56 AM.

  20. #20
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,879

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

    Another example of the vagaries of floating point arithmetic:

    =A1+SUM(A2:A39)

    also gives a result of zero.

  21. #21
    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

    Bottom line is that if you want to get excited about what is happening in the umpteenth decimal place you need to round you data. Excel can't count. End of....

  22. #22
    Registered User
    Join Date
    02-22-2018
    Location
    Finland
    MS-Off Ver
    365
    Posts
    12

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

    I do want to understand the reason why these simple numbers can not be calculated by =SUM

    Besides, I need to use =SUM (my real excel file complicated) and the result must be zero, because the result is being used in another formula. If the result is not "zero", other formulas do not calculate correct.

  23. #23
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,941

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

    May be The following is the reason

    Calculation specifications and limits in excel

    Feature Maximum limit

    Number precision 15 digits


    So that when you used =SUMIF(A1:A39,"<0") or =SUMIF(A1:A39,">0")
    it is only taking left side 15 digits

  24. #24
    Registered User
    Join Date
    02-22-2018
    Location
    Finland
    MS-Off Ver
    365
    Posts
    12

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

    Let me make it easy
    Please calculate your self in excel. My result is "-0.0000000000000222044604925031000". Why my result is not "zero"?

    What is the SUM of these values;
    49.350
    -12.600
    21.000
    -0.025
    -5.250
    -6.300
    -6.275
    63.000
    -12.600
    -4.200
    -10.500
    -4.200
    -6.300
    -4.200
    -2.100
    -4.200
    -6.300
    -4.200
    63.000
    -4.200
    -8.400
    -4.200
    -5.250
    -12.600
    -4.200
    -4.200
    -5.250
    -3.150
    -7.350
    -4.200
    -2.100
    -4.200
    -5.250
    -4.200
    -12.600
    -2.100
    -4.200
    -5.250
    -4.200

  25. #25
    Forum Expert
    Join Date
    05-01-2014
    Location
    California, US
    MS-Off Ver
    Excel 2010
    Posts
    1,795

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

    Quote Originally Posted by mengince View Post
    Let me make it easy[.] Please calculate your self in excel. My result is "-0.0000000000000222044604925031000". Why my result is not "zero"?
    Most of the information in this thread is incorrect in detail. If Excel were limited to storing and calculating with a precision of 15 significant digits, we wouldn't have the problem in the first place, not with the simple example that "mengince" presents.

    It is true that Excel limits data entry to the first 15 significant digits. Any digits to the right are replaced with zeros, effectively truncating the data entry.

    And it is true that Excel formats (displays) cell values up ot the first 15 significant digits, rounding any digits to the right.

    But usually, calculations are not limited to 15 significant digits. Instead, they are limited to the precision of 64-bit binary floating-point (actually 80-bit binary floating-point), which can be represented in decimal with very many more significant digits.

    However, Excel plays games with calculations in some contexts, which results in inconsistent behaviors. For example, in some contexts, =A1-A2 might result in exact zero, but =A1-A2=0 might result in FALSE with the same values in A1 and A2.

    In your original example, it is only a concidence (and due to the games that Excel plays) that the workaround =SUMIF($A$1:$A$39,">0")+SUMIF($A$1:$A$39,"<0") returns exactly zero (0.00E+00 when formatted as Scientific).

    Note that =SUMIF($A$1:$A$39,">0")+SUMIF($A$1:$A$39,"<0")-0 returns about 5.68E-14 when formatted as Scientific. The redundant -0 is sufficient to change the context to which Excel applies its "game".

    -----

    To explain more accurately, let's look at why IF(10.12-10=0.12,TRUE) returns FALSE(!).

    Excel uses 64-bit binary floating-point to represent numeric values. In binary, values are represented by a sum of 53 consecutive powers of 2 ("bits") times an exponential factor.

    Consequently, most decimal fractions cannot be represented exactly.

    Also, the approximation of a decimal fraction depends on the magnitude of the integer part because some of the 53 bits must be used to represent the integer part.

    So:

    0.12 = 0.119999999999999,99555910790149937383830547332763671875
    10.12 = 10.1199999999999,992184029906638897955417633056640625
    10.12-10 = 0.119999999999999,2184029906638897955417633056640625

    (I use period for the decimal place and comma to demarcate the first 15 significant digits, which is all that Excel displays.)

    We can see the infinitesimal difference between the constant 0.12 and the calculated 0.12 (10.12-10).

    The Excel "=" operator compares two values rounded to 15 significant digits [1]. In this case, the binary representation of 0.12 rounds to 0.120000000000000, but the bnary representation of 10.12-10 rounds to 0.119999999999999. Since the rounded values are not equal, "=" returns FALSE.

    [1] That is not true of some other comparisons in Excel, notably lookup functions. So in some contexts, =(A1=A2) might return TRUE, but MATCH(A1,A2,0) might return FALSE.

    -----

    Something similar is happening when we sum the numeric values in your examples.

    If we change the order of the calculation, the result can vary because the relative magnitude of the integer parts changes the binary approximations of the decimal fractions.

    But that is only coincidence. We should not depend on the order of calculation to remedy a binary arithmetic anomaly because the success depends on the individual values involved.
    Last edited by joeu2004; 02-22-2018 at 12:22 PM. Reason: minor

  26. #26
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

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

    Back in post #3, Glenn posted a link to a Microsoft article that explains it.
    https://support.microsoft.com/en-gb/...sults-in-excel

    I don't fully understand it either, but the basic problem underneath is that a BINARY system (like your pc) cannot precisely represent many decimal values.
    In the complicated algorhythm to deal with this problem, many values get rounded. This is the part I don't fully understand, which values get rounded when and why.

    To complicate it further, every application (like Excel) handles this issue differently than others.
    And even within Excel, some functions handle it differently than others (as you've discovered with Sum vs Sumif)

    The generally accepted solution is to use ROUND.

    If ROUNDING to your highest used decimal place isn't accurate enough, then Excel isn't the right tool.
    Last edited by Jonmo1; 02-22-2018 at 10:31 AM.

  27. #27
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

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

    This portion from that article explains it pretty well.

    For example, the fraction 1/10 can be represented in a decimal number system as 0.1. However, the same number in binary format becomes the following repeating binary decimal:
    0001100110011100110011 (and so on)

    This can be infinitely repeated. This number cannot be represented in a finite (limited) amount of space. Therefore, this number is rounded down by approximately -2.8E-17 when it is stored.

  28. #28
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,437

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

    As has already been explained, this is due to floating point error. Floating point error is an inherent part of the way computers do arithmetic, so this isn't specific to Excel. Some additional links discussing floating point error: https://www.excelforum.com/groups/ma...nd-errors.html

    Because floating point errors are such a fundamental part of computer arithmetic, you must do something different if you want this addition to come to exactly 0. You have already rejected the most common suggestion -- use of the ROUND() function. Another possible solution is to fake a "scaled integer" currency data type in a helper column and use that (I proposed this solution for someone else here: https://www.excelforum.com/excel-gen...ml#post4784658 ).

    If you are unwilling to make any changes to the spreadsheet, you could consider using a different programming language -- one where you can dim your variables as currency or similar scaled integer data type and perform the calculations that way.

    One way or another, though, you have got to do something different. There is no "fix" for this, because this is a fundamental part of how computer's do arithmetic. You, the programmer, need to have a strategy to deal with it. In order for us to help you, we need to know what kinds of strategies you will consider using.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  29. #29
    Registered User
    Join Date
    02-22-2018
    Location
    Finland
    MS-Off Ver
    365
    Posts
    12

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

    I still do not undestand....Is excel not capable to calculate such simple, basic numbers? Very very simple casio calculator watch can calculate!!!
    I was expecting to find a solution.

  30. #30
    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

    You have been given one. Round your data to the desired number of dps.

  31. #31
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,941

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

    try
    =SUM(A1:A39)+100-100
    or
    =SUM(A1:A39)+1000-1000
    It is working for your example

  32. #32
    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

  33. #33
    Registered User
    Join Date
    02-22-2018
    Location
    Finland
    MS-Off Ver
    365
    Posts
    12

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

    my numbers came from our sales figures. I have a very complex excel file with my company sales, budget, inventory, invoicing.... One day the result became very odd, strange. I tried to find the reason. I could not. All formulas were correct. After 30 days, I found someting one cell looks like "zero" but the linked formulas were not correct. the cell should be zero, and it "looks like" zero...
    Then I point out that the cell is "not zero"
    it is very stupid
    please see my first message, very basic, simple 39 numbers...and the =SUM is not working correct
    I just want an absolute zero. I do not want spacex calculation

  34. #34
    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

    I HAVE read your first post, several times.

    Your formulae are NOT correct. If you do not round, you will always be subject to problems with floating point arithmetic.

    You have been given a solution. It works. You don't want to use it. That is your choice.

    Good luck, but you are trying to locate the end of a rainbow.

+ 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