Example 1
Round up to a whole number
B2 =ROUNDUP(A2,0)
Result: 4
ROUND would give 3. ROUNDUP goes up because there is something after the point.
B2 =ROUNDUP(A2,0) returns 4
Rounds a number up, away from zero, to a set number of decimal places. Any leftover decimal pushes the result up.
Syntax
=ROUNDUP(, )
All versions of Excel.
Try it
Edit the formula in B2 or change the inputs. The sheet recalculates as you type.
B2 =ROUNDUP(A2,0) returns 4
ROUNDUP rounds away from zero. If there is anything at all beyond the digit you keep, the last kept digit goes up by one. That is different from ROUND, which only rounds up when the next digit is 5 or more.
=ROUNDUP(3.2, 0) returns 4, where ROUND would return 3. =ROUNDUP(5.001, 2) returns 5.01. A number that is already exact is left alone: =ROUNDUP(4, 0) is still 4.
For negative numbers "up" means away from zero, not towards a larger number. =ROUNDUP(-3.2, 0) returns -4. If you want the next integer upwards on the number line, use CEILING.MATH instead.
The most common use is turning a fraction into a whole number of things you must buy or book. You can't order 9.58 cartons, so =ROUNDUP(230/24, 0) gives the 10 you need. The same approach covers pallets for a shipment, vans for a delivery, seats for a headcount, and days for a fixed-length task.
A negative num_digits rounds to the left of the decimal point. =ROUNDUP(1234, -2) returns 1300. This is useful for budgeting buffers: round a forecast up to the next hundred so you never under-provide.
CEILING.MATH rounds up to a multiple such as 5, 15 or 0.25, which ROUNDUP can't do.Rounding up each line and then adding gives a larger answer than adding and then rounding up once. If each item is bought or billed on its own, as with cartons per product, round each one. If the whole amount is bought in a single step, round the total.
ROUNDUP works on numbers only. Text such as "n/a" returns #VALUE!.
B2 or B2/C2.0 gives a whole number, 2 keeps two decimals, and a negative number rounds to the left of the point: -2 to hundreds.Each example is a live sheet. Change the inputs or the formula and watch the result.
Example 1
B2 =ROUNDUP(A2,0)
Result: 4
ROUND would give 3. ROUNDUP goes up because there is something after the point.
B2 =ROUNDUP(A2,0) returns 4
Example 2
C2 =ROUNDUP(A2/B2,0)
Result: 10
230 / 24 is 9.58. You can only order whole cartons, so ROUNDUP gives 10.
C2 =ROUNDUP(A2/B2,0) returns 10
Example 3
B2 =ROUNDUP(A2,0)
Result: -4
ROUNDUP moves -3.2 away from zero to -4, not up to -3.
B2 =ROUNDUP(A2,0) returns -4
Example 4
B2 =ROUNDUP(A2,-2)
Result: 1300
A negative num_digits works left of the decimal point. -2 means hundreds.
B2 =ROUNDUP(A2,-2) returns 1300
Example 5
B2 =ROUNDUP(A2,2)
Result: 5.01
ROUND would give 5.00. ROUNDUP always lifts the last kept digit when anything remains.
B2 =ROUNDUP(A2,2) returns 5.01
Solve it in the sheet. Every answer is checked, with hints if you need them.
Task 1 of 2
In D2, work out how many whole cartons are needed for the units in B2. Fill it down to D6.
Answer in D2, then it fills down to D6.
#VALUE!. Keep units out of the number cell.Use `=ROUNDUP(B2, 0)` for a whole number, or a larger second argument to keep decimals: `=ROUNDUP(B2, 2)`.
ROUND goes to the nearest value, so 3.2 becomes 3. ROUNDUP always moves away from zero when there is anything left over, so 3.2 becomes 4.
Away from zero. ROUNDUP(-3.2, 0) is -4. If you want -3 instead, use ROUNDDOWN, which moves towards zero, or CEILING.MATH.
For 10 or 100 use a negative second argument: `=ROUNDUP(B2, -1)`. For 5 or other multiples, use `=CEILING.MATH(B2, 5)`.
Divide units by units per box and round up: `=ROUNDUP(A2/B2, 0)`. Plain division gives a fraction, and ROUND may round down and leave you short.
ROUNDUP is taught in Excel foundations, lesson 14: ROUNDUP, ROUNDDOWN and INT. Each lesson is a short, graded exercise like the one above.