Sometimes “nearest” is wrong: you need to always round up (how many boxes to order) or always down (how many whole units you can afford). ROUNDUP and ROUNDDOWN force the direction; CEILING and FLOOR do it to a multiple.
The example
Items per box = 12. How many boxes are needed for the order quantity?
| A | B | C | |
|---|---|---|---|
| 1 | Order qty | Boxes (÷12) | Round up |
| 2 | 50 | 4.17 | 5 |
| 3 | 24 | 2.00 | 2 |
| 4 | 25 | 2.08 | 3 |
The formula
Boxes needed always rounds up — you can’t ship a partial box:
How it works
The direction is guaranteed regardless of the decimal:
A2/12gives the exact number of boxes —4.17for 50 items.ROUNDUP(…, 0)forces it up to the next whole number,5, because even 0.17 of a box needs a 5th box.- Use
ROUNDDOWNfor the opposite — e.g. how many whole boxes a budget covers. CEILING(A2, 10)andFLOOR(A2, 10)do the same up/down forcing but to a multiple (next 10, previous 10).
Try it: interactive demo
Enter a value; compare nearest, up, and down.
Variations
Round money up to the next cent
Two decimals, always up:
Round time up to the next 15 minutes
Billing in quarter-hour blocks:
Always round down to a whole unit
How many whole items a budget buys:
Pitfalls & errors
ROUNDUP/ROUNDDOWN vs CEILING/FLOOR. The first pair rounds to decimal places; the second to a multiple. Pick by whether you’re snapping to digits or to a step like 5, 10, 25.
CEILING/FLOOR sign rules. In older Excel, the value and significance must share a sign or you get #NUM!. CEILING.MATH and FLOOR.MATH remove that restriction.
“Round up” isn’t “round half up.” ROUNDUP pushes everything up, even 4.01. If you want normal rounding where only .5+ goes up, use ROUND.
Practice workbook
Frequently asked questions
How do I always round up in Excel?
What's the difference between ROUNDUP and CEILING?
How do I round down to whole units?
Stop fighting formulas. Learn them in a day.
This recipe is one of hundreds of real-world formulas we teach. Our Excel Formulas & Functions class covers lookups, logic, text, and dynamic arrays hands-on — live in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.
See the Formulas & Functions Class