Results 1 to 9 of 9

Thread: Rounding Number to Nearest Nth Multiple

  1. #1
    Senior Member
    Join Date
    Apr 2012
    Posts
    193
    Rep Power
    14

    Rounding Number to Nearest Nth Multiple

    I have the following formula to round to nearest 5

    =ROUND(MROUND($B$24,5)*Percentages!$B$2,0)

    However i get the following asnswers

    59
    68
    77

    These should be

    60
    70
    75

    It would be appreciated if you could assist me

    http://www.mrexcel.com/forum/excel-q...ng-values.html

  2. #2
    Administrator Excel Fox's Avatar
    Join Date
    Mar 2011
    Posts
    1,402
    Rep Power
    10
    Why don't you do an MROUND on top of the inner MROUND also?

    =MROUND(MROUND($B$24,5)*Percentages!$B$2,5)
    A dream is not something you see when you are asleep, but something you strive for when you are awake.

    It's usually a bad idea to say that something can't be done.

    The difference between dream and aim, is that one requires soundless sleep to see and the other requires sleepless efforts to achieve

    Join us at Facebook

  3. #3
    Senior Member
    Join Date
    Apr 2012
    Posts
    193
    Rep Power
    14
    Thanks for the help, much appreciated

  4. #4
    Forum Guru Rick Rothstein's Avatar
    Join Date
    Feb 2012
    Posts
    662
    Rep Power
    14
    Quote Originally Posted by Howardc View Post
    I have the following formula to round to nearest 5

    =ROUND(MROUND($B$24,5)*Percentages!$B$2,0)

    However i get the following asnswers

    59
    68
    77

    These should be

    60
    70
    75

    It would be appreciated if you could assist me

    http://www.mrexcel.com/forum/excel-q...ng-values.html
    Answers by themselves tell us nothing... so that we can see what is going on, can you tell us what values were in cells B2 and B24 when your formula gave 59 as the answer instead of 60 and when it gave 68 instead of 70 and when it gave 77 instead of 75?

    As a side question... I see you cross-posted your question on the MrExcel forum... have you been having trouble staying connect on the MrExcel forum? Most of my attempts to see the MrExcel forum meet with either a forever spinning busy icon (while a "waiting for MyExcel.." message is displayed) or I get an outright "Page Not Available" error. Once, when I managed to connect with the "root" forum page, it showed 2200 visitors logged on (that is pretty much there standard average) but I could not connect with it after refreshing the webpage. That led me to think the problem was in my computer, but I have no trouble with any other forums or webpages which, of course, makes me suspect the MrExcel forum itself. Since I know you were on earlier, I figured you could tell me if you had problems with the MrExcel forum or not?

  5. #5
    Administrator Excel Fox's Avatar
    Join Date
    Mar 2011
    Posts
    1,402
    Rep Power
    10
    Quote Originally Posted by Rick Rothstein
    have you been having trouble staying connect on the MrExcel forum?
    I have! Not sure why though. And it only seemed to be that forum alone.
    A dream is not something you see when you are asleep, but something you strive for when you are awake.

    It's usually a bad idea to say that something can't be done.

    The difference between dream and aim, is that one requires soundless sleep to see and the other requires sleepless efforts to achieve

    Join us at Facebook

  6. #6
    Forum Guru Rick Rothstein's Avatar
    Join Date
    Feb 2012
    Posts
    662
    Rep Power
    14
    Quote Originally Posted by Excel Fox View Post
    I have! Not sure why though. And it only seemed to be that forum alone.
    Thanks for the confirmation. The thing that had me worried was the number of visitor to the Excel sub-forum. Sometimes when I am having trouble getting on MrExcel's Excel sub-forum, I am able to go to MrExcel's main page (www.mrexcel.com) and from there click the "Message Forum" link and it takes me to the "root" webpage for all the sub-forums... on that root page, it showed 2000+ visitors one time, 2200+ visitors another and 1600+ a third time... that would mean those many people were successfully visiting the Excel sub-forum and yet I could not connect for anything. That is what made me start wondering if the problem was somehow in my system; but, as you said, no other websites of forums were giving me this level of problem. Anyway, if you were experiencing the same kind of problem, then it most surely is something with their forum and not my computer. Thanks again for the confirmation.

  7. #7
    Senior Member
    Join Date
    Apr 2012
    Posts
    193
    Rep Power
    14
    Hi Rick

    I battled to access the Mr Excel.com site and could not post the link that I had cross posted

    I see this morning that someone has repllied, but nevertheless please find my attachment
    Attached Files Attached Files

  8. #8
    Administrator Excel Fox's Avatar
    Join Date
    Mar 2011
    Posts
    1,402
    Rep Power
    10
    That certainly didn't need the formula I posted above. This should do

    =MROUND($B$1*Percentages!B2,5)
    A dream is not something you see when you are asleep, but something you strive for when you are awake.

    It's usually a bad idea to say that something can't be done.

    The difference between dream and aim, is that one requires soundless sleep to see and the other requires sleepless efforts to achieve

    Join us at Facebook

  9. #9
    Senior Member
    Join Date
    Apr 2012
    Posts
    193
    Rep Power
    14
    Thanks for the help, much appreciated

Similar Threads

  1. Nth Such-And-Such Day Of The Month
    By Rick Rothstein in forum Rick Rothstein's Corner
    Replies: 6
    Last Post: 01-02-2020, 06:48 PM
  2. Nth Day Of Week Number Using Formula
    By paul_pearson in forum Excel Help
    Replies: 2
    Last Post: 06-16-2013, 06:40 PM
  3. Fetch Nth last item from a list
    By SDruley in forum Excel Help
    Replies: 2
    Last Post: 01-01-2013, 09:28 AM
  4. Rounding data in Vba
    By PcMax in forum Excel Help
    Replies: 5
    Last Post: 11-06-2012, 12:46 AM
  5. Nth Largest Unique Value in an Array (UDF)
    By Admin in forum Excel and VBA Tips and Tricks
    Replies: 4
    Last Post: 03-07-2012, 12:34 PM

Posting Permissions

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