+ Reply to Thread
Results 1 to 2 of 2

Rounding to higher and lower of a set multiple

  1. #1
    Registered User
    Join Date
    07-08-2009
    Location
    Los Angeles
    MS-Off Ver
    Excel 2003
    Posts
    1

    Unhappy Rounding to higher and lower of a set multiple

    Hello:
    How do I round a number to the next higher value of a set multiple and the previous lower value of that same set multiple? For example, I have a number 42 and I want to use a multiple of 5. So I want Excel somehow to give me 45 (higher rounding of the multiple) in one cell, and 40 (lower rounding of the multiple) on another cell. Similarly, with say 28 and multiple of 5, I want Excel to give me 30 on one cell and 25 on another cell. And so on.

    The reason is I want to then take the higher and lower rounded numbers and lookup corresponding numbers from a chart and do a linear interpolation, which is easy to do if I have the higher and the lower rounding. The chart has values listed on multiples of 5, meaning it lists values for 5, 10, 15, 20 and so on and has corresponding values on the next column. But I need to figure out the corresponding values to numbers in between like 37, 46 etc.

    The MROUND function gives only the "nearest" multiple, and does not seem applicable to find both the higher value and the lower value.

    If you need any further clarification, please let me know.
    Any help will be greatly appreciated.
    Thank you.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Rounding to higher and lower of a set multiple

    Try the Ceiling() and Floor() functions.

    e.g. =Ceiling(A1,5) and =Floor(A1,5)
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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