+ Reply to Thread
Results 1 to 4 of 4

Rounding by Varying Multiples

  1. #1
    Registered User
    Join Date
    02-26-2014
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2010
    Posts
    6

    Rounding by Varying Multiples

    Hi,

    I need to be able to round a given number (stock required) up to the next multiple of another number (pack size), as in the attached example.

    Also, is there a way I can round to the closest multiple, ie either up or down, depending on which multiple is closer? I haven't decided which way I want to go yet!

    Thanks,
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Rounding by Varying Multiples

    This works on most of your values, but there are some that your original "conversion" does not make sense....

    =MROUND(IF(C8<C$4/2,C$4,C8),C$4)

    (you have 28 with a case of 8, that you round to 16? why not 24?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    02-26-2014
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Rounding by Varying Multiples

    Thanks Ford, works perfectly! Don't worry about the 28 case 8 round to 16 - it was a typo...

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Rounding by Varying Multiples

    Happy to help

+ 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] Varying validation drop-downs based on varying cell values
    By navarreman1 in forum Excel General
    Replies: 2
    Last Post: 08-08-2013, 08:13 AM
  2. [SOLVED] Formula for dividing and rounding a number with multiples of 500
    By mojitomaster in forum Excel General
    Replies: 5
    Last Post: 05-14-2012, 07:11 AM
  3. Rounding to Multiples WITH IF's
    By SCCCJ in forum Excel General
    Replies: 6
    Last Post: 04-21-2011, 01:21 PM
  4. Rounding from multiples
    By Audiguy82 in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 12-03-2007, 04:31 PM
  5. [SOLVED] rounding to multiples in excel ?
    By HR gal in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-08-2006, 02:45 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