I am using MROUND to the nearest 5. And I need it to only round up.
Is this possible?
(this is a formula for sizing a container, so if the item's width is
22" for example, my container needs to be 25").
Any suggestions would be great - thanks. laurie
You can't do it with MROUND, but applying a bit of maths and using ROUNDUP
will get you what you want.
Divide your value by 5, round up to the next whole number by specifying 0
decimal places, then multiply by 5
=ROUNDUP(A1/5,0)*5

Signature
Ian
--
>I am using MROUND to the nearest 5. And I need it to only round up.
> Is this possible?
> (this is a formula for sizing a container, so if the item's width is
> 22" for example, my container needs to be 25").
> Any suggestions would be great - thanks. laurie
Peo Sjoblom - 29 Jun 2007 22:02 GMT
Or without any division and multiplying
=CEILING(A1,5)

Signature
Regards,
Peo Sjoblom
> You can't do it with MROUND, but applying a bit of maths and using ROUNDUP
> will get you what you want.
[quoted text clipped - 9 lines]
>> 22" for example, my container needs to be 25").
>> Any suggestions would be great - thanks. laurie
Ian - 29 Jun 2007 22:12 GMT
There always seems to be a keyword for what you need. I'd never come across
CEILING before. Nice solution!

Signature
Ian
--
> Or without any division and multiplying
>
[quoted text clipped - 13 lines]
>>> 22" for example, my container needs to be 25").
>>> Any suggestions would be great - thanks. laurie
Peo Sjoblom - 29 Jun 2007 22:14 GMT
FLOOR does the opposite and rounds down

Signature
Regards,
Peo Sjoblom
> There always seems to be a keyword for what you need. I'd never come
> across CEILING before. Nice solution!
[quoted text clipped - 16 lines]
>>>> 22" for example, my container needs to be 25").
>>>> Any suggestions would be great - thanks. laurie
Ian - 29 Jun 2007 22:20 GMT
Thanks for the pointer. Hopefully CEILING is what terrapinie wants.

Signature
Ian
--
> FLOOR does the opposite and rounds down
>
[quoted text clipped - 18 lines]
>>>>> 22" for example, my container needs to be 25").
>>>>> Any suggestions would be great - thanks. laurie
terrapinie - 09 Jul 2007 23:25 GMT
Thanks guys!! I will try the CEILING function tomorrow when I get
back to work.