+ Reply to Thread
Results 1 to 5 of 5

Rounding up and down to numbers divisible by 6

  1. #1
    Registered User
    Join Date
    11-20-2013
    Location
    Atlanta, GA
    MS-Off Ver
    Microsoft 2007
    Posts
    17

    Rounding up and down to numbers divisible by 6

    Excel 2007

    All,

    I am looking for a formula that will give take whatever number is in a specific cell and round it up or down (depending on closeness) to the nearest digit that is divisible by 6. For example:

    If cell B3 contains the number 20, I would like it to return 18 in M3. If cell B4 contains the number 5, I would like it to return the number 6 in M4.

    I am also looking to have a formula do the same thing, but instead of rounding up or down depending on closeness it would always round up. Like a general roundup formula except it finds the next highest number that is divisible by 6.

    Any help would be greatly appreciated.

    Thanks,
    The Man With No Name

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Rounding up and down to numbers divisible by 6

    See MROUND and CEILING
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Contributor
    Join Date
    06-18-2014
    Location
    USA
    MS-Off Ver
    2013
    Posts
    142

    Re: Rounding up and down to numbers divisible by 6

    In cell M3 would be
    Please Login or Register  to view this content.
    This will round up or down to nearest multiple of 6.

    In cell M4 would be
    Please Login or Register  to view this content.
    This will round up only to nearest multiple of 6.

    I think this would do what you want.

  4. #4
    Registered User
    Join Date
    11-20-2013
    Location
    Atlanta, GA
    MS-Off Ver
    Microsoft 2007
    Posts
    17

    Re: Rounding up and down to numbers divisible by 6

    shg & jjhayes,

    These both work great. Thank you very much.

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Rounding up and down to numbers divisible by 6

    You're welcome.

+ 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] Show only numbers divisible to one
    By Armannn in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-22-2014, 11:56 PM
  2. numbers divisible by 20%
    By sjc619 in forum Excel General
    Replies: 6
    Last Post: 11-17-2011, 02:35 PM
  3. Replies: 5
    Last Post: 10-21-2005, 03:05 AM
  4. Rounding a Value to Make It Divisible by a Specified Number
    By John Nash in forum Tips and Tutorials
    Replies: 1
    Last Post: 08-29-2005, 10:53 AM
  5. How get true response when numbers divisible by 12?
    By lax_fan in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-16-2005, 07:06 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