Skip to content

Freelance Invoice Template Excel: The Penny That Breaks It

Every line on Dev Shah's invoice was right to the penny, and the total still didn't match the client's adding up. The third decimal is where it starts.

Tideoo Team6 min readInvoicing
A freelancer checking invoice totals on a laptop at a desk with a notebook beside it
Photo: Engin_Akyurt

Dev Shah's invoice template has done the same job for two years: three project lines, a subtotal, a total, sent. Then a client's bookkeeper wrote back to say the total was a penny out against her own adding up. Each line was right to the penny, and the arithmetic between them was right too, which is the part that takes a while to accept.

It covers how the line items, subtotal and total in an Excel freelance invoice template stop agreeing, and where to put the fix. It doesn't cover the rest of the document, such as which dates and references the invoice needs, or whether the layout is right for the client; that belongs in what to change before you send. The arithmetic is a separate problem with a separate answer.

The total that comes out a penny wrong

Where the third decimal comes from

Laptop screen showing a spreadsheet with invoice line items, a subtotal and a total in currency cells

Dev bills by the hour at a rate with pence in it. Seven and a half hours at £42.35 comes to £317.625. A second line at £38.90 for 3.25 hours comes to £126.425, and a third at £51.20 for 2.75 hours comes to £140.80. Two of those three extended amounts land exactly halfway between two pennies, which is what happens whenever a rate with pence meets a fractional number of hours.

The downloaded template doesn't round the line. It multiplies rate by hours, shows the result to two decimal places because the cell is formatted for currency, and adds the unrounded values underneath. Formatting only changes what's on screen. The stored figure is still £317.625, and it stays that way all the way down to the subtotal.

There's a second layer underneath that one. Excel follows the IEEE 754 specification to store and calculate floating-point numbers, and Microsoft's own documentation notes this can affect the results of some numbers or formulas through rounding or data truncation. Binary can't hold most decimal fractions exactly, so the value you typed as 38.90 is stored as something extremely close to it but not quite it. On an ordinary number that makes no difference. On a number already sitting on a half penny, the stored value Excel calculates with may differ slightly from the decimal shown, which can shift a rounding decision.

So two people can produce two different totals from the same invoice. One rounds every line to the penny and then adds; the other adds the raw values and rounds only the total. Add Dev's three amounts as they are and round once, and the total is £584.85. Round each line first and add, and it can come out at £584.86. Both routes are defensible. Only one matches whatever the client's clerk arrives at by hand, and you won't find out which until the query lands.

The checkbox that fixes the symptom and keeps the error

Search long enough and you find the setting: File, then Options, then Advanced, then Set precision as displayed. It forces every number in the workbook to the precision shown on screen, so the three lines become £317.63, £126.43 and £140.80 and the pennies line up immediately. It's a satisfying click. It's also the one thing Microsoft attaches a warning to on the page that documents it.

The warning is specific. Microsoft says the option can have cumulative calculation effects that make data increasingly inaccurate over time, and recommends using it only when you're certain the displayed precision keeps the data accurate. The reason is that it changes the stored value rather than the display. A rate you entered as 42.3549 becomes 42.35 for good, and every calculation from that point starts from the shortened figure. A tip typed into a shared template is one thing; an hours log quietly flattened to two decimal places is another.

There's a scope problem as well. The setting covers the whole workbook, not just the three invoice lines that worried you. If an hours log, an expenses sheet and last year's summary sit together in the same file, they all lose precision when you tick the box. Microsoft's documented alternative is the ROUND function, which changes only the cell you apply it to.

That difference in scope is the whole argument. The precision toggle is a workbook-wide lever pulled to correct three cells.

Round the line, then round the total

On each line of the template, wrap the extended amount in a rounding function: ROUND(rate*hours,2). ROUND takes a number and a digit count, and a digit count of 2 rounds to two decimal places. The subtotal is then a plain sum of those rounded line amounts, and the total gets wrapped in ROUND once more so that a discount, a retainer adjustment or a tax line can't reintroduce a third decimal on the way out.

ROUNDUP, ROUNDDOWN and MROUND cover other rounding behaviours, and if your terms round differently you should use them. Whichever you pick, put it in the template rather than deciding line by line at the end of the month, because consistency is the property the client is checking for. Rounding the line first is also the version that survives contact with a client: the extended amount they can see on the page is the amount that went into the subtotal, so adding the column by hand gives them the same figure.

Dev's template needed one more change to be worth keeping: a clean master copy, saved separately, with the formulas locked in. Start each month from that file instead of editing last month's invoice. Building the template to reuse rather than to send once is what stops the rounding work being redone every time.

A check cell that catches it before the client does

Person comparing a printed spreadsheet of figures against a screen, pen in hand

One cell below the totals can compare the sum of the line amounts against the subtotal and show a flag when they differ, using something like IF(ROUND(SUM(line range),2)<>subtotal,"Check",""). It takes a minute to build and earns that minute the first time a figure has been typed over a formula. The invoice still looks fine; the check cell disagrees before you attach the file to an email.

A cell typed over by hand is the other way the pennies go missing, and a check cell catches it because it compares what's actually on the page rather than what should be. Keep the check visible rather than hidden in a column nobody scrolls to. Anything that only works when someone remembers to look isn't really a control.

What to do next

The ROUND formulas and the check cell are a one-off job, and after that the template behaves. Re-check the totals whenever a rate, a currency or a tax line changes, since that's when a third decimal reappears. Two minutes before the invoice goes out is cheaper than the email that follows it.

The recommendation past a handful of invoices a month is to move the invoice itself into a system that keeps the record, because a spreadsheet holds a copy of one document and not the running answer to what's been billed and what's been paid. When the invoice no longer reconciles with what arrived in the bank, matching the invoice to the money gets harder every month you leave it. The record matters more than the PDF, which is the point at which the spreadsheet stops being the right place for it. Tideoo's invoicing that keeps the record is one option if you'd rather not maintain the formulas at all.

Sources

Questions

Frequently asked

Because the line amounts aren't rounded. Currency formatting only changes what's on screen, so the unrounded values carry a third decimal into the subtotal, and floating-point storage can decide which way a half penny falls.

Microsoft documents that it changes stored values across the whole workbook, that the effects are cumulative, and that you should use it only when the displayed precision keeps the data accurate. ROUND changes only the cell you apply it to.

Wrap each line's extended amount as ROUND(rate*hours,2), make the subtotal a plain sum of those rounded amounts, and wrap the total in ROUND once more so a discount, retainer adjustment or tax line can't reintroduce a third decimal.

Add a visible check cell such as IF(ROUND(SUM(line range),2)<>subtotal,"Check",""). It compares the line amounts on the page against the subtotal and flags a figure typed over a formula.

Keep reading

Related articles

All posts

Your next invoice

Ready to turn finished work into paid invoices — and closed books?

Set up your first invoice in under two minutes. Turn on accounting when you want the books to keep themselves.

Free plan available 14-day trial for $3 Cancel anytime 60-day money-back guarantee