ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   How can I round up a fraction? (https://www.excelbanter.com/excel-worksheet-functions/47593-how-can-i-round-up-fraction.html)

Erik Millerd

How can I round up a fraction?
 
I have the following formula : =ROUND(D22/125*16,0)/16
How can I round this formula up?
Using =ROUND(D22/125*4,0)/4 has rounded to 1/4 in crements, but it rounds
down not up.

Thanks

David Billigmeier

Check out ROUNDUP()


--
Regards,
Dave


"Erik Millerd" wrote:

I have the following formula : =ROUND(D22/125*16,0)/16
How can I round this formula up?
Using =ROUND(D22/125*4,0)/4 has rounded to 1/4 in crements, but it rounds
down not up.

Thanks


Ron Rosenfeld

On Wed, 28 Sep 2005 06:45:02 -0700, Erik Millerd
wrote:

I have the following formula : =ROUND(D22/125*16,0)/16
How can I round this formula up?
Using =ROUND(D22/125*4,0)/4 has rounded to 1/4 in crements, but it rounds
down not up.

Thanks


Your formula does arithmetic rounding: It will round up if the D22/125 is more
halfway or more between. Eg. 25.375 will round to 25 1/2 25.374 will round to
25 1/4.

If you always want to roundup to the next highest 1/4; merely substitute the
ROUNDUP function for the ROUND function in your formula.

=ROUNDUP(D22/125*4,0)/4


Or, a bit simpler if you are always dealing with positive numbers:

=CEILING(D22/125,0.25)



--ron


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

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