Round Excel line totals before adding an invoice subtotal
To add invoice lines that must each be expressed in cents, calculate each line with ROUND and then sum those rounded results. Formatting a cell to show two decimals changes its appearance, but it does not by itself replace the stored calculation with a rounded value. The difference matters when a customer adds the visible lines and expects the subtotal to agree. This exercise uses an imaginary stationery order and deliberately awkward prices so that the distinction is easy to see.
Set up a small reproducible order
Open a blank workbook and enter Item, Quantity, Unit price, Raw total, and Rounded total in cells A1 through E1. Enter Notebook, 3, and 1.335 in the first three cells of row 2. Enter Folder, 3, and 1.335 in row 3. Enter Pencil, 3, and 1.335 in row 4. These are invented numerical inputs for learning, rather than a recommendation for how a shop should set prices. Leave the last two columns empty initially.
In D2 enter =B2*C2 and copy the formula through D4. Each result is 4.005 before display formatting. In E2 enter =ROUND(B2*C2,2) and copy it through E4. The second argument tells Excel how many decimal places to retain. Here it is two, because this exercise treats each line as a cent amount. Select D2:E4 and apply a two decimal number format so that the two approaches can be compared on equal visual terms.
Compare two legitimate calculation rules
In D6 enter =ROUND(SUM(D2:D4),2). In E6 enter =SUM(E2:E4). Under the usual Excel ROUND behavior for these positive values, the first calculation gives 12.02 and the second gives 12.03. One rounds the combined underlying amount; the other adds three individually rounded lines. Neither formula can decide the business rule for you. Write that rule next to the subtotal so another person can understand the intended method without reverse engineering your spreadsheet.
For this learning invoice, the stated rule is that each line is finalized to two decimal places before the subtotal is calculated. E6 therefore matches the rule. The raw column remains useful as a teaching aid, but it should not be mistaken for the amount that the customer owes. If you are adapting a real billing process, confirm the required calculation method with the person responsible for that process, particularly when discounts, taxes, or currency conversions are involved.
Understand what ROUND changes
Microsoft documents ROUND as a function that returns a number rounded to a specified count of digits. A positive digit argument works to the right of the decimal point, zero rounds to a whole number, and a negative argument works to the left. Try =ROUND(126.47,0) and =ROUND(126.47,-1) in spare cells. Their results, 126 and 130, help separate decimal precision from the broader idea of rounding to a place value.
Keep the source quantity and unit price in their original cells. A formula in a separate result column is easier to inspect than manually typing the displayed answer over the original data. It also makes an input correction flow through the calculation. If you change B2 from 3 to 4, E2 should recalculate without any manual adjustment. A spreadsheet that requires you to repair every dependent total after an input change is harder to maintain reliably.
Check the references before copying
Click E3 and read the formula bar. It should refer to B3 and C3, rather than continuing to use row 2. Ordinary relative references move as the formula is copied down. Accidentally inserting dollar signs around the row references can lock them and repeat the wrong calculation. Check the first, middle, and last populated rows, especially after inserting another product between existing items. A correct-looking subtotal can hide two offsetting errors, so inspect the individual lines as well.
If Excel shows the formula as text, check whether the cell was formatted as Text before entry. Change it to General and re-enter the formula. If your installation uses semicolons as argument separators, use =ROUND(B2*C2;2). Regional settings can also change the decimal separator. Use numeric cells and the formula syntax accepted by your installation instead of pasting a whole sentence that contains a number and a currency symbol into the input.
Version and precision caveats
The ROUND function is documented for current Microsoft 365 and supported perpetual Excel versions, including the versions listed on the linked Microsoft page. Ribbon locations and number-format controls vary between Windows, Mac, and the web. This example depends on the function itself rather than a particular ribbon arrangement. Binary floating point can produce small representation effects in spreadsheet arithmetic; do not use a screenshot of a displayed number as proof of the exact stored value.
Avoid changing workbook-wide precision settings merely to make one invoice look consistent. An explicit rounding formula documents the calculation at the place where it matters. Also distinguish rounding from truncating: simply removing digits would produce a different result for many inputs. When checking someone else's workbook, read both the formula and the written calculation rule. Two decimals on the screen are insufficient evidence that all intermediate values were rounded at the intended stage.
Try a different order
Replace the three quantities with 2, 4, and 5 while keeping the same unit price. Calculate the raw totals on paper, round each line, and predict the rounded-line subtotal before reading E6. Then compare it with rounding the raw subtotal once. Explain any difference in a short note beneath the table. Which method would make the visible line amounts add up for your intended reader, and where would you record that choice so it survives the next workbook revision?














