+ Reply to Thread
Results 1 to 12 of 12

Sum is off by .01 according to calculator

  1. #1
    Registered User
    Join Date
    01-27-2022
    Location
    Fl,usa
    MS-Off Ver
    365 apps for Enterprise
    Posts
    17

    Sum is off by .01 according to calculator

    This pricing calculator almost finished and as I test it there is a rounding issue somewhere that I cannot seem to find. Hoping a new set of eyes can point out something I seem to be missing. Every helper cell that is calculating is showing the correct number in that cell and in the sum cell it is calculating each helper cell correctly however the final sum is .01 off
    If I round the cells the helper cells that would correct the .01 difference then the sum cell creates other test sums as .01 over.
    I'm not sure where this is going wrong. Can someone please help.
    Please see workbook the correct are shown as well in correct. These numbers are based on the Green totals with their calculation compared the those same equations on a calculator...
    Attached Files Attached Files

  2. #2
    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: Sum is off by .01 according to calculator

    Where are we supposed to look? there's a lot of stuff in there...
    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

  3. #3
    Registered User
    Join Date
    01-27-2022
    Location
    Fl,usa
    MS-Off Ver
    365 apps for Enterprise
    Posts
    17

    Re: Sum is off by .01 according to calculator

    These numbers are based on the Green totals on the right.
    There is one as a subtotal and the second it the sum total.
    This sheet has continued to change and with my skill set I felt it was best to separate the helper cells and have them all be very granular. So from top down there are the initial calculation helper cells. From there there are additional help cells that performs sub calculations. The bottom, that has each detail as to what info is being pulled from what helper cells has those details to the right.
    From these helper cells they build an equation to properly calculate the sum price.
    Does that help?

  4. #4
    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,908

    Re: Sum is off by .01 according to calculator

    An example where you need to round is "Base Cost" I21

    in "Pricing(4)" it is 79.7719 ...... so you should round to the nearest cent. You don't say which figure is wrong or why.
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  5. #5
    Registered User
    Join Date
    01-27-2022
    Location
    Fl,usa
    MS-Off Ver
    365 apps for Enterprise
    Posts
    17

    Re: Sum is off by .01 according to calculator

    I'm sorry for not being clear. Each sheet the header states if the calculations are correct for the subtotal and the sell price (green cells). If I round I21 then it raises the sheets that are correct to .01 over whereas right now where they're correct - I21 is the subtotal. For example on sheet Pricing (3) the subtotal is 7.77 and the sell price is 10.48 - that is correct
    On pricing (4) the subtotal should be 79.78 and the sell price 116.28 - now here is the issue though. This workbook is actually only one sheet. It is only in book form in order to show this forum the different totals I a trying to achieve and how they're different. The first Pricing sheet is the only one that will actually be used, not the others (again only there for example purposes) Therefore if I raise the rounding cell it will change the 7.77 to 7.78 which is incorrect..
    I hope that makes sense.

  6. #6
    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,908

    Re: Sum is off by .01 according to calculator

    I don't agree with 79,78: i believe it should be 79.77. using ROUND(value,2) on I21 and I20. Results in Pricing(3) remain the same using the same rounding rule

    YOU have to establish where/how you round and you will get consistent results,
    Last edited by JohnTopley; 04-20-2022 at 02:48 AM.

  7. #7
    Valued Forum Contributor
    Join Date
    11-22-2014
    Location
    Arizona, USA
    MS-Off Ver
    Office 365
    Posts
    973

    Re: Sum is off by .01 according to calculator

    Can we back up...

    Make 2 sheets only... forget the rest...

    SAME EXACT FIGURES on both, where one is "Working" and one is "NOT Working"

    I am failing to see issues here or even a 7.78 when I round or don't round it stays 7.77... You have a lot going on in your thoughts that is not making it into this workbook or explanation.

    You are saying that I21 on Pricing (4) should be 79.78, however if you take the figure in I20 = 1595.44 (1595.43807641634) and divide that by B12 = 20 we get 79.771903820817...

    So I am not sure what Calculator you are using to get an extra cent but I would say Excel is a math wiz and is doing that just fine.

    Now I will point out that I20, I19 and I5 all have formulas that do not match what you are doing on Pricing (3)...

    If there was consistency you would gain .01 in thickness "I5", you would gain .34 on I17, gain .03 on I18 and 2.16 on I19.
    This would all result in 11 cents more than what you currently have...

    Why are you trying to compare two different operations with expectation that they would operate the same when clearly they have definitions that alter their outcome?
    -If you think you are done, Start over - ELeGault

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

    Re: Sum is off by .01 according to calculator

    I'm with Glenn, in that I cannot see what value you are saying is wrong, nor do I see any explanation for what the correct value should be (other than it should be 0.01(0000000000000??)) different from the current calculation. Which cell(s) are we looking at? I26? B3? F17? As near as I can tell using the Evaluate formula tool (https://support.microsoft.com/en-us/...rs=en-us&ad=us ), all calculations look correct. I find that the Evaluate formula tool can be useful for debugging problems like this, because it allows me to see each step of the calculation(s) I'm debugging. Of course, what I'm reallly looking for are unexpected values/results. For example, in pricing(4) when I look at I26, the first value that evaluates is I21 which it shows me is 79.7719038.... Am I expecting this value to be exactly 79.7700000000000 as displayed, or am I expecting the extra digits?

    Help us understand what is wrong, and we'll try to help and debug. At present, I am not sure exactly what we are debugging.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  9. #9
    Valued Forum Contributor
    Join Date
    07-23-2013
    Location
    London, England
    MS-Off Ver
    Office 365
    Posts
    988

    Re: Sum is off by .01 according to calculator

    Is it as simple as that you want to round the final total in I26 up to the nearest 0.01? i.e.

    =CEILING(SUM(I21+I8+I11+I12+I15+D11),0.01)

  10. #10
    Registered User
    Join Date
    01-27-2022
    Location
    Fl,usa
    MS-Off Ver
    365 apps for Enterprise
    Posts
    17

    Re: Sum is off by .01 according to calculator

    I'm terribly sorry for all the confusion I am removing all the extra bulk and will re-upload the sheet to help eliminate all the extra nonsense.

  11. #11
    Registered User
    Join Date
    01-27-2022
    Location
    Fl,usa
    MS-Off Ver
    365 apps for Enterprise
    Posts
    17

    Re: Sum is off by .01 according to calculator

    After reviewing with my coworker - we believe the math that was used to create our reference sheet is using rounding in some equations and not in others. I believe the reference sheet (on paper) is utilizing financial amounts in mind, For instance, 0.125 but 0.13 is used instead. Division quotients are the real "culprit" but they are technically more correct. This would still be inconsistent due to the nature of the numerical manipulation. In my opinion this would be counter-productive for the end goal which is to accurately calculate mathematical computations for measurements needed. Waste is already accounted for in the calculations so there is no apparent need for any less precise calculation. I greatly appreciate the time spent thus far on this and once I have a greater understanding for which cells "require" to be altered and if problems arise I will be sure to ask for help.
    I have updated the sheet if anyone would like to see with the above corrections as well as reverting it back to 1 sheet. If there are any suggestions you see fit please let me know, otherwise, I will update the post when the final corrections are made.
    Attached Files Attached Files

  12. #12
    Forum Expert
    Join Date
    07-06-2004
    Location
    Northern California
    MS-Off Ver
    2K, 2003, 2010, O365
    Posts
    1,490

    Re: Sum is off by .01 according to calculator

    Quote Originally Posted by Cnuessle View Post
    . . . rounding in some equations and not in others. . . . end goal which is to accurately calculate mathematical computations . . .
    Consistency is necessary. Usually best to perform ALL calculations without any rounding and just DISPLAY then rounded in summary exhibits. Better to adjust the least important constituent value than bottom-line rounded results. If a sum of rounded addends were 0.01 off from the rounded sum of the unrounded addends, add or subtract that 0.01 from either the largest addend in absolute value (simpler) or the addend with the greatest difference between rounded and unrounded value with the appropriate sign.

    Cross-footing can also be a problem, and 2D makes it more difficult to adjust rounded addends.

+ 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. Excel MiniSheet Calculator within a sheet / Flyout Calculator
    By Escavell in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-03-2020, 07:54 AM
  2. Replies: 1
    Last Post: 06-29-2020, 12:04 PM
  3. Need help with an ROI Calculator
    By 2Clicks70 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-14-2020, 12:16 PM
  4. [SOLVED] age calculator
    By fitkhan in forum Excel General
    Replies: 3
    Last Post: 12-12-2019, 07:06 AM
  5. VAT Calculator
    By sparx in forum Excel General
    Replies: 1
    Last Post: 12-29-2015, 11:02 PM
  6. Integrated calculator in excel 07 instead of separate calculator
    By Wayne in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-26-2006, 11:20 AM
  7. uk tax calculator
    By DarkNight in forum Excel - New Users/Basics
    Replies: 21
    Last Post: 05-03-2006, 01:25 PM

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