excel - How to roundup a number to the closest ten? - Stack Overflow
How to use Roundup function within an existing formula
How do I make a cell round up a value automatically on a calculated formula?
How do I round after a calculation within the same cell
Videos
Hello Everyone,
I'm trying to make a calculator for our customers, where they type their square footage, and then the different options I have spits out the number of boxes they need to buy.
Since our product is sold by the carton, I need it to round up.
So the customer enters their footage, and in my cell I have it take that square footage, divide by the square footage per box, then multiply by 1.10 to factor waste.
For example, they enter 1150 in cell B5, their total square footage. Our product comes 36 square feet per box, so in the cell next to that product I have =(B5/36)*1.1 which equals 35.1388888.
Is there anyway I can set it so it rounds up that 35.138888 to 36? Changing the number function makes it round down or up. I need it to round up no matter what. I would like to get away without using the =ROUNDUP function, since it makes the spreadsheet look messy because I need 2 columns, the raw value, 35.13888, then the column next to it the ROUNDUP function. I guess I could hide the math portion in some other cell somewhere, but would like to avoid having to do that since it'll make editing this in the future a pain.
Thanks!
You could also use CEILING which rounds up to an integer or desired multiple of significance
ie
=CEILING(A1,10)
rounds up to a multiple of 10
12340.0001 will become 12350
Use ROUND but with num_digits = -1
=ROUND(A1,-1)
Also applies to ROUNDUP and ROUNDDOWN
From Excel help:
- If num_digits is greater than 0 (zero), then number is rounded to the specified number of decimal places.
- If num_digits is 0, then number is rounded to the nearest integer.
- If num_digits is less than 0, then number is rounded to the left of the decimal point.
EDIT:
To get the numbers to always round up use =ROUNDUP(A1,-1)
Like Andrew said, you can place the multiplication formula within the =ROUNDUP formula.
Something like=ROUNDUP((F4*0.54),0) would do the trick.
Generally speaking, any time you reference a cell in a formula that has a formula too, you can instead insert the formula from that cell into the referencing formula.
That is, in this case: =roundup(f4*0.54,0)
Since the formula =f4*0.54 is in D4, you replace the D4 in =roundup(D4,0) with everything except the = (f4*0.54).