Round unit prices to whole numbers (ROUND)
The problem
Problem statement
A price list stores messy decimals in A2:A5. Finance wants whole-number amounts for the invoice. Fill Rounded in B2:B5 by rounding each price to 0 decimal places — half goes away from zero, same as Excel ROUND.
Use ROUND to 0 decimals, not TRUNC — case 2 rounds down and case 3 is a different number entirely.
Problem data
Show the sheet as a table (selectable, copyable)
| A | B | |
|---|---|---|
| 1 | Unit price | Rounded |
| 2 | 12.6 | |
| 3 | 12.4 | |
| 4 | 99.7 | |
| 5 | 0.4 |
Notes
ROUND(number, num_digits) rounds half away from zero. ROUND(12.6, 0) is 13; ROUND(12.4, 0) is 12. ROUNDUP always rounds away from zero; ROUNDDOWN toward zero — they are not interchangeable with ROUND on these values.
How to approach
Your answer goes in B2:B5. On submit we re-run your formula against 3 different sets of input, so a hardcoded number will fail — the formula has to follow the cells.
- Target cells are B2:B5 — start in B2, then fill down
- The price to round is A2
ROUNDneeds two arguments: the number and how many decimal places- Use 0 for whole numbers (no decimals)
Official solutions
Show 1 solution — try it yourself first
Approach 1: ROUND to 0 decimal places
=ROUND(A2,0)
Rounds A2 to the nearest whole number. 12.6 becomes 13; 12.4 becomes 12. Fill down through B5 so each price is rounded on its own row.
Function guide
FAQ
How do I round to a whole number in Excel?
Use =ROUND(A2,0). The second argument is the number of decimal places; 0 means no decimals.
What is the difference between ROUND, ROUNDUP, and ROUNDDOWN?
ROUND uses half-away-from-zero rules. ROUNDUP always rounds away from zero. ROUNDDOWN always toward zero. For 12.4, ROUND and ROUNDDOWN both return 12, but ROUNDUP returns 13.
How do I round to two decimal places?
Use =ROUND(A2,2). Change the second argument to keep that many digits after the decimal point.