Round unit prices to whole numbers (ROUND)

Easy Math
Description
Hints 0/4
Solutions 1
–
Test case
1
2
3
Reset
Submit
fx
A
B
C
D
E
F
G
1
2
3
4
5
6
7
8
9
10
Loading interactive spreadsheet...
Preparing grid cells and formula calculation engine
○ Ready Enter formula in highlighted cells, then click Submit.

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)
The exercise data, as a table
AB
1 Unit priceRounded
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.

  1. Target cells are B2:B5 — start in B2, then fill down
  2. The price to round is A2
  3. ROUND needs two arguments: the number and how many decimal places
  4. 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

Related practice

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.