Results 1 to 4 of 4

Thread: Rounding the sum of numbers

  1. #1

    Question Rounding the sum of numbers



    Register for a FREE account, and/
    or Log in to avoid these ads!

    ok, I am very new to this. and I am looking for some help with a formula.

    I am creating a sales sheet, used for the purpose of giving customers a delivered cost. But I would like to be able to round up to the nearest interval of .05 cents. As an Example:

    Cost Freight Brokerage Delivered
    10.00 4.17 .35 14.52

    i would like to know how to create the formula, so that the price will automatically round up to the next .05 increment.

    My work sheet has the formulas for the sums, and then directly related to my quote sheet which gets faxed out. I added my work sheet, and if you look at page (Greens Calculator) I highlighted cells F2 & F3 to demonstrate. Should you look at the page (Price Sheet) all the delivered prices are the same.

    I hope I have explained this, and that somebody can give me a quick answer.

    Regards,

    Mattio
    Attached Files Attached Files

  2. #2
    Administrator Ken Puls's Avatar
    Join Date
    Mar 2011
    Location
    Nanaimo, BC, Canada
    Posts
    2,021
    Articles
    79
    Blog Entries
    14
    Hi there,

    Try this in F3: =MROUND(SUM(B3+D3+E3),0.05)

    Just be warned that if you try and send this to a user running Excel 2003, they'll see a #NAME? error if they haven't activated the Analysis Toolpack. (Easy to fix though, just get them to go to Tools-->Addins and check "Analysis Toolpack")

    Hope it helps,
    Ken Puls, FCPA, FCMA, MS MVP (Excel)

    Master your data with Power Query: Purchase your copy of my book M is for Data Monkey today!

    Main Site: http://www.excelguru.ca -||- Blog: http://www.excelguru.ca/blog -||- Forums: http://www.excelguru.ca/forums
    Check out the Excelguru Facebook Fan Page -||- Follow Me on Twitter

    If you've been given VBA code (a macro) for your solution, but don't know where to put it, CLICK HERE.

  3. #3
    Seeker jpr73's Avatar
    Join Date
    Apr 2011
    Location
    France
    Posts
    15
    Articles
    0
    Hi,
    As mattio want to round up to the next 0.05 increment,
    Try this in F3: =CEILING(SUM(B3+D3+E3),0.05)
    "MROUND rounds up, away from zero, if the remainder of dividing number by multiple is greater than or equal to half the value of multiple."
    Best regards

  4. #4
    I generally do something like this:

    =ROUND(SUM(B3,D3,E3)*2,1)/2

    Jesse

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •