The ROUNDUP function
ROUNDUP rounds in one direction only: up. Even 4.01 becomes 5. That's what you want whenever a part-used item still has to be counted whole: boxes, coaches, staff on a shift, or rolls of wallpaper.
Strictly it rounds *away from zero*, so negative numbers get more negative.
=ROUNDUP(number, num_digits)
Arguments
- number
- The number, cell or calculation to round up.
- num_digits
- How many decimal places to keep. 0 rounds up to a whole number.
Try it
=ROUNDUP(B2/C2,0) in D2. 53 items at 12 a box is 4.42 boxes. You can't send part of a box, so ROUNDUP gives 5.
D2
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Order | Items | Per box | Boxes | |
| 2 | #1041 | 53 | 12 | 5 | |
| 3 | #1042 | 48 | 12 | ||
| 4 | #1043 | 7 | 6 | ||
| 5 | |||||
| 6 |
Edit the formula in D2, or change the data, and press Enter.
More examples
| Formula | Result | What it does |
|---|---|---|
| =ROUNDUP(B3/C3,0) | 4 | 48 ÷ 12 is exactly 4, so there's nothing to round up. |
| =ROUNDUP(B4/C4,0) | 2 | 7 items need a second box for the last one. |
| =ROUNDUP(3.141,2) | 3.15 | With 2 digits, any amount past the second decimal pushes it up a penny. |
| =ROUNDUP(-2.3,0) | -3 | Away from zero: a negative number goes down to -3. |
Tips
- For "how many do I need" questions, divide, then ROUNDUP to 0 digits.
- To round up to the next 5 or 10, use negative digits for tens (
=ROUNDUP(42,-1)is 50), or CEILING for other steps.
Common mistakes
- The order is one box short.ROUND was used instead of ROUNDUP, so 4.42 boxes became 4. Whenever a part still needs a whole one, use ROUNDUP.
- The result is 4.42, not a whole number of boxes.
num_digitswas set to 2. Use 0 to round up to a whole number. - Negative numbers come out more negative than expected.ROUNDUP moves away from zero. If you need the result nearer zero for negatives, use ROUNDDOWN.
Practise ROUNDUP with instant feedback
Type real formulas into a working spreadsheet and get told straight away whether they work.