+ Reply to Thread
Results 1 to 15 of 15

Calculating Costs when Rounding

  1. #1
    Forum Contributor
    Join Date
    12-25-2020
    Location
    United States
    MS-Off Ver
    Office 365
    Posts
    545

    Calculating Costs when Rounding

    An automated system is used for costs. Attached you will see two examples and a formula. When calculating manually the results are always one cent less. When inquired, was told it has to do with the system rounding. Unsure how that could be, have any of you experienced similar when calculating costs in Excel?
    Attached Files Attached Files

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,195

    Re: Calculating Costs when Rounding

    Begs the question: how do you calculate the result manually?

    It may well be a result of floating point errors.

    I can't help thinking that all the intermediate rounding does you no favours. That said, removing them all doesn't seem to make much difference to the end results.

    Why, for example, do you have ROUND(Rate,6) when is 0.055?

    Maybe use ROUNDUP and/or ROUNDDOWN rather than just ROUND.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Contributor
    Join Date
    02-12-2024
    Location
    Australia
    MS-Off Ver
    365
    Posts
    150

    Re: Calculating Costs when Rounding

    I think your problem is your "automated system" rounds your fortnightly amount (14/365) to 6 places, whereas when you put it into your calculator, I'm tipping you just multiply by 14 and divide by 365.

    The two respective amounts (to 3 decimal places, which is probably how your 'manual system' works) are 1289.179 (rounded to 2 decimal places is 1289.18) and 1289.185 (Rounded to 2 decimal places is 1289.19), so there is your 1 cent difference.

    I think your automated system is correct.

  4. #4
    Forum Contributor
    Join Date
    12-25-2020
    Location
    United States
    MS-Off Ver
    Office 365
    Posts
    545

    Re: Calculating Costs when Rounding

    Thank you.

    There honestly is no reason. The formula to round to 6, is technically only provided and applied to the top cell. I have since removed it from the 0.550 section.

  5. #5
    Forum Contributor
    Join Date
    12-25-2020
    Location
    United States
    MS-Off Ver
    Office 365
    Posts
    545
    Quote Originally Posted by Eeza Goodun View Post
    I think your problem is your "automated system" rounds your fortnightly amount (14/365) to 6 places, whereas when you put it into your calculator, I'm tipping you just multiply by 14 and divide by 365.

    The two respective amounts (to 3 decimal places, which is probably how your 'manual system' works) are 1289.179 (rounded to 2 decimal places is 1289.18) and 1289.185 (Rounded to 2 decimal places is 1289.19), so there is your 1 cent difference.

    I think your automated system is correct.

    Just now seen this, thank you as well. Would that mean to break the formula further to calculate it separately?

  6. #6
    Forum Contributor
    Join Date
    02-12-2024
    Location
    Australia
    MS-Off Ver
    365
    Posts
    150

    Re: Calculating Costs when Rounding

    Quote Originally Posted by Dexter2 View Post
    Would that mean to break the formula further to calculate it separately?
    I'm not sure what you are asking here. I'm no accountant but the way I would do things is to calculate each amount on the sheet separately, round each value to 2 places, then add them up, which is effectively what you are doing. That is, your excel calculation is correct.

    I think the 'problem' has occurred because when doing things 'manually' you have calculated to 3 places (giving you half a cent) and then rounded THAT to the nearest cent, which gives you that extra cent.

    35177*14/365-60.07 = 1289.18479452 If you round THAT to 2 places you get 1289.18 (Correct)

    Whereas;

    35177*14/365-60.07 = 1289.185 when rounded to the nearest half a cent. So when you round THAT to the nearest cent you get 1289.19 (which is 1 cent too much).

    Your leap year calculation is 'incorrect' in your sheet because you have rounded 14/366 to 6 places, which is enough to make the one cent difference. (Although this 1 cent difference is 'lost' in the .055 multiplication, so I'm not sure how you got that extra cent in your manual calculation).

    Manual; 34152*14/366 - 130.63 = 1175.73 (rounded to nearest cent)
    Sheet: 34152* .038251 - 130.63 = 1175.72 (rounded to nearest cent)
    Last edited by Eeza Goodun; 07-01-2024 at 02:36 AM.

  7. #7
    Forum Contributor
    Join Date
    12-25-2020
    Location
    United States
    MS-Off Ver
    Office 365
    Posts
    545

    Re: Calculating Costs when Rounding

    The extra cent is in the automated system. I am trying to have this reflected in the spreadsheet.

    Personally, I thought the Excel result is correct. The discounts and fee are all separate section calculations.

    Below is an explanation to determine the Cost cell:

    The following prescribed methods and formulas must be used in calculating. In all instances, mills must be dropped after each separate calculation.

    365 Day Year = 14/365 = .038356
    Biweekly Rate = .038356 x Total Annual
    Day Rate= .10 x biweekly rate
    Last edited by Dexter2; 07-01-2024 at 10:24 AM.

  8. #8
    Forum Contributor
    Join Date
    02-12-2024
    Location
    Australia
    MS-Off Ver
    365
    Posts
    150

    Re: Calculating Costs when Rounding

    Quote Originally Posted by Dexter2 View Post
    Day Rate= .10 x biweekly rate
    Where is this calculation in your sheet?

  9. #9
    Forum Contributor
    Join Date
    12-25-2020
    Location
    United States
    MS-Off Ver
    Office 365
    Posts
    545

    Re: Calculating Costs when Rounding

    In the Cost cell.

  10. #10
    Forum Contributor
    Join Date
    02-12-2024
    Location
    Australia
    MS-Off Ver
    365
    Posts
    150

    Re: Calculating Costs when Rounding

    Not in the sheet you put up. The cost is a typed in number. What CELL REFERENCE is that calculation in?

  11. #11
    Forum Contributor
    Join Date
    12-25-2020
    Location
    United States
    MS-Off Ver
    Office 365
    Posts
    545

    Re: Calculating Costs when Rounding

    Within cells H6 and H16. The rounding to 6 was based on my possible misunderstanding on “rounding to mili” for the (14/365).

  12. #12
    Forum Contributor
    Join Date
    02-12-2024
    Location
    Australia
    MS-Off Ver
    365
    Posts
    150

    Re: Calculating Costs when Rounding

    I think we are at cross purposes here; EXACTLY where is this multiplication in your sheet. .10 x biweekly rate

    I don't want to know where it is thought about or where you have used it in a calculation and THEN put a resultant number it in your sheet, I want to know where the figure 0.10 us actually in your sheet.

  13. #13
    Forum Contributor
    Join Date
    12-25-2020
    Location
    United States
    MS-Off Ver
    Office 365
    Posts
    545

    Re: Calculating Costs when Rounding

    It is not used for this specific sheet. It’s only shown for transparency.

  14. #14
    Forum Contributor
    Join Date
    02-12-2024
    Location
    Australia
    MS-Off Ver
    365
    Posts
    150

    Re: Calculating Costs when Rounding

    In that case I'd say your automated system is wrong and trying to get your excel sheet to match up with something that is wrong is pretty futile.

  15. #15
    Forum Contributor
    Join Date
    12-25-2020
    Location
    United States
    MS-Off Ver
    Office 365
    Posts
    545

    Re: Calculating Costs when Rounding

    Agreed, though I’m not in a capacity to challenge that.

+ 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. [SOLVED] Formula for Calculating Costs
    By neilcarilla23 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-10-2024, 02:29 AM
  2. Correcting Rounding Error for Costs
    By Dexter2 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-25-2023, 12:01 AM
  3. [SOLVED] Calculating Courier Costs
    By Daniels5660 in forum Excel General
    Replies: 13
    Last Post: 03-03-2022, 09:07 AM
  4. Calculating shipping costs
    By LPJR in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 10-11-2016, 11:06 AM
  5. Calculating labour costs
    By ceght in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-21-2015, 09:01 AM
  6. Replies: 3
    Last Post: 07-28-2014, 08:57 PM
  7. [SOLVED] Simple Calculating Costs
    By Tanker350 in forum Excel General
    Replies: 1
    Last Post: 10-18-2005, 11:05 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