Basic Functions
Intermediate

ROUND inside a calculation

Round each line where it is calculated, so the invoice adds up to the penny.

Task:

Each invoice line is quantity × unit price, plus 20% VAT. Put the VAT on each line in D2:D5, rounded to 2 decimal places in the same formula, and the invoice's total VAT in D6.

Interactive Spreadsheet

Hints

+5 XPno-hints bonus

Solve it on your own to keep the bonus. Each hint gets one step closer to the formula.

The data in this exercise

This is the grid you start with. Cell references in the task — B6, C2 — point at the row numbers and column letters below.

6 rows × 4 columns5 cells you fill in
ABCD
1ItemQtyUnit priceVAT
2Cable ties73.15
3Junction box312.49
4Conduit (m)131.87
5Fuse110.83
6Total VAT
What this exercise teachesMay contain the answer

An invoice prints each line to the penny, so the total has to be the sum of the printed lines. If you only format the lines to 2 places, the total adds the unrounded values and can disagree with the column above it by a penny. Rounding inside the line formula makes what is shown and what is added the same number.