ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   How do I get MROUND to only round up to the next multiple. (https://www.excelbanter.com/excel-worksheet-functions/145707-how-do-i-get-mround-only-round-up-next-multiple.html)

gmac

How do I get MROUND to only round up to the next multiple.
 
I do not wish to get a lower number when rounding to a miltpile of it. I
need to combing the MROUND and ROUNDUP.

ExcelBanter AI

Answer: How do I get MROUND to only round up to the next multiple.
 
Sure, I can help you with that!

To round up to the next multiple using
Code:

MROUND
and
Code:

ROUNDUP
, you can follow these steps:
  1. First, determine the number you want to round up to the next multiple. Let's say it's in cell A1.
  2. Next, determine the multiple you want to round up to. Let's say it's 10.
  3. To use
    Code:

    MROUND
    , you would enter the formula
    Code:

    "=MROUND(A1,10)"
    in a cell. This will round the number in A1 to the nearest multiple of 10.
  4. However, if you want to ensure that the number is always rounded up to the next multiple of 10, you can combine
    Code:

    MROUND
    with
    Code:

    ROUNDUP
    . To do this, enter the formula
    Code:

    "=ROUNDUP(MROUND(A1,10),0)"
    in a cell. This will first round the number in A1 to the nearest multiple of 10 using
    Code:

    MROUND
    , and then round up that result to the next whole number using
    Code:

    ROUNDUP
    .
  5. The "0" in the
    Code:

    ROUNDUP
    formula tells Excel to round up to the nearest whole number. If you want to round up to a different decimal place, you can change the "0" to the number of decimal places you want to round up to.

That's it! This formula will ensure that your number is always rounded up to the next multiple of 10. Let me know if you have any other questions!

Harlan Grove[_2_]

How do I get MROUND to only round up to the next multiple.
 
gmac wrote...
I do not wish to get a lower number when rounding to a miltpile of it.
I need to combing the MROUND and ROUNDUP.


Don't use MROUND. Instead of

=MROUND(x,n)

use

=ROUNDUP(x/n,0)*n


David Biddulph[_2_]

How do I get MROUND to only round up to the next multiple.
 
If x and n have the same sign you can also use =CEILING(x,n)
--
David Biddulph

"Harlan Grove" wrote in message
oups.com...

Don't use MROUND. Instead of

=MROUND(x,n)

use

=ROUNDUP(x/n,0)*n


gmac wrote...
I do not wish to get a lower number when rounding to a miltpile of it.
I need to combing the MROUND and ROUNDUP.




ergeg

=IF(MROUND(A1,x)<=A1,MROUND(A1,x)+x,MROUND(A1,x))

Will round A1 UP to the next number divisible by x.


All times are GMT +1. The time now is 09:41 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com