Invoice template in Excel: items, tax and totals that add up
Most invoice templates are a nice layout with numbers typed in by hand. This one looks up prices and tax rates from a product list, totals the tax for each rate, numbers itself and keeps its formulas locked. Below you also learn how to build it.
In short: pick each line item from a drop-down list fed by a Products sheet, and VLOOKUP fills in unit, price and tax rate. SUMIF adds up the net amount per tax rate and ROUND works out the tax to the cent. The invoice number and due date come from the invoice date and your settings. Tax rates are inputs, so the file works for UK VAT, US sales tax or no tax at all.
You should know: SUMIF, VLOOKUP and ROUND. Joining text with & is explained in the invoice number exercise.
Try it now
When an invoice has items at different tax rates, the net amount and the tax should be shown for each rate. That is what this exercise calculates.
Task Split the invoice by tax rate. H2: the net total of all items with the rate in G2 (20%). I2: the VAT on it, rounded to the penny. H3 and I3: the same for the rate in G3 (0%). I5: the total due from all four cells.
| A | B | C | D | E | F | G | H | I | J | |
|---|---|---|---|---|---|---|---|---|---|---|
| 1 | Item | Qty | Unit price | Tax | Amount | Rate | Net | VAT | ||
| 2 | Website design, home page | 1 | 850 | 0.2 | 850 | 0.2 | ||||
| 3 | Consulting | 3 | 95 | 0.2 | 285 | 0 | ||||
| 4 | Printed booklet | 2 | 39.9 | 0 | 79.8 | |||||
| 5 | Flyer printing, 500 copies | 1 | 60 | 0.2 | 60 | Total due | ||||
| 6 | Hosting and maintenance | 3 | 29 | 0.2 | 87 | |||||
| 7 | ||||||||||
| 8 |
Download the invoice template
The workbook has four sheets: the invoice, set up to print on one Letter page; a Products sheet for 50 items; Settings with your business details and tax rates; and Instructions. Only the yellow cells on the invoice can be edited, and all formulas are protected without a password. It includes 15 line items, net and tax per rate, a warning when an item has a rate that is not in your settings, and a footer with your tax ID and bank details. Amounts have no currency symbol, so it works in dollars, pounds or any other currency.
Enlarge previewDownload the finished template
The finished Excel file invoice-template.xlsx, with sample rows and instructions, is free. All you need is a free account: no subscription, no payment details.
Figures, rates and sample data in the templates are as of 13 November 2026, without guarantee. Check that they still apply to you. The templates are mainly meant to show how to build this in Excel.
Create a free account and download the template Already have an account? Log in
How the invoice is laid out
| Column | Content | Formula in row 16 |
|---|---|---|
| A | Line number | =IF(B16="","",COUNTA(B$16:B16)) |
| B | Item or service | Drop-down from the Products sheet |
| C | Quantity | Input |
| D, E, F | Unit, unit price, tax rate | =IFERROR(VLOOKUP(B16,Products!$A$5:$D$54,3,FALSE),"") (columns 2, 3 and 4) |
| G | Amount | =ROUND(C16*E16,2) |
The drop-down is data validation with the list =Products!$A$5:$A$54, as in the lesson on drop-down lists. Nothing can end up on the invoice that is not on the list, so every price has one source.
Prices with VLOOKUP from the product list
You never type a price on the invoice. VLOOKUP finds the item in the first column of the product list and returns the price from the third column. The list is not sorted, so the formula ends with FALSE for an exact match.
Task In C2, look up the unit price of the item in A2 in the product list F2:H7. The formula is then filled down to C5 and must be right in every row.
| A | B | C | D | E | F | G | H | |
|---|---|---|---|---|---|---|---|---|
| 1 | Item | Qty | Unit price | Item | Unit | Unit price | ||
| 2 | Consulting | 3 | Website design, home page | fixed fee | 850 | |||
| 3 | Printed booklet | 2 | Extra page design | each | 240 | |||
| 4 | Website design, home page | 1 | Consulting | hour | 95 | |||
| 5 | Hosting and maintenance | 12 | Hosting and maintenance | month | 29 | |||
| 6 | Flyer printing, 500 copies | pack | 60 | |||||
| 7 | Printed booklet | each | 39.9 |
This exercise is part of Premium.
Premium unlocks every exercise in every lesson, unlimited practice with fresh tasks and the final test with certificate.
See Premium Already Premium? Log in
The first exercise in this lesson is free.
Net and tax for each rate
Below the items there is one line per tax rate. The net amount is =SUMIF($F$16:$F$30,Settings!$B$21,$G$16:$G$30), the total of all items at that rate, and the tax is =ROUND(E33*Settings!$B$21,2). Lines for rates that no item uses stay blank. If an item has a rate that is not on the Settings sheet, the tax lines no longer add up to the subtotal: the subtotal turns red and a note appears. More on the functions: SUMIF and ROUND.
Invoice number and due date
The invoice number is prefix, year and sequence number: ="INV-"&YEAR(G7)&"-"&RIGHT("000"&B16,3) gives INV-2027-001. The due date is the invoice date plus your payment terms in days. Try both:
Task In B5, calculate the due date (invoice date plus payment terms). In B6, build the invoice number: INV-, the year of the invoice date, a hyphen and the sequence number with three digits, so INV-2027-007.
| A | B | C | |
|---|---|---|---|
| 1 | Invoice | ||
| 2 | Invoice date | 15 Jan 2027 | |
| 3 | Sequence number | 7 | |
| 4 | Payment terms (days) | 30 | |
| 5 | Due date | ||
| 6 | Invoice number | ||
| 7 | |||
| 8 |
This exercise is part of Premium.
Premium unlocks every exercise in every lesson, unlimited practice with fresh tasks and the final test with certificate.
See Premium Already Premium? Log in
The first exercise in this lesson is free.
After each invoice, add 1 to the sequence number on the Settings sheet and save the finished invoice as its own file or PDF, so every number is used once.
UK VAT and US sales tax
UK: the VAT rates are 20% standard, 5% reduced and 0% zero rate (gov.uk/vat-rates), and they are the sample rates in the template. If you and your customer are both VAT registered, you issue a VAT invoice. According to VAT Notice 700, section 16.3.1, a full VAT invoice shows a unique sequential number, the time of supply, the date of issue, your name, address and VAT registration number, the customer's name and address, and for each item the description, quantity, unit price, VAT rate and amount excluding VAT, plus the total VAT. The template has a field for each of these; put your VAT number on the Settings sheet. The sample booklet is zero rated, as printed booklets are under VAT Notice 701/10. What any invoice must include is listed on gov.uk.
US: there is no national sales tax. States and local governments set sales tax, and which goods and services are taxable differs from state to state; many services are not taxed at all. The SBA lists the state revenue departments to check with (sba.gov). On the Settings sheet, change the tax name to Sales tax and enter the rate that applies to you, or 0. This page is not tax advice.
Common mistakes
Rounding the tax on every line
Rounding each line and then adding can leave the total a few cents off. The template works out the tax per rate from the net total and rounds once.
Typing over prices on the invoice
A typed price drifts away from your price list. Change prices on the Products sheet and every future invoice uses the new price.
Reusing an invoice number
Copying last month's invoice without changing the sequence number creates a duplicate. Increase the number before you start the next invoice.
TODAY() as the invoice date
With =TODAY() the date changes every time the file opens. Type a fixed date; Ctrl+; enters today's date as a value.
Invoice formulas in German Excel
In German the template is called Rechnungsvorlage. It splits German VAT (Umsatzsteuer) into 19% and 7% and has a switch for small businesses that do not charge VAT.
| English | German |
|---|---|
| SUMIF | SUMMEWENN |
| VLOOKUP, IFERROR | SVERWEIS, WENNFEHLER |
| ROUND, RIGHT, YEAR | RUNDEN, RECHTS, JAHR |
| COUNTA | ANZAHL2 |
German Excel separates arguments with a semicolon: =SUMMEWENN(D2:D6;G2;E2:E6).
Which Excel versions support this?
SUMIF, VLOOKUP, IFERROR, ROUND, RIGHT, drop-down lists and sheet protection work in all current Excel versions, including Excel for Mac and Excel for the web. The template needs no Microsoft 365 functions. See protect a sheet to unlock it and print setup for page settings.
FAQ
Is the invoice template free?
Yes. Download the Excel file with a free account, with no subscription and no payment details.
Can I use it without charging tax?
Yes. Set every product's tax rate to 0, or enter 0 as your only rate on the Settings sheet. The tax lines then show nothing and the total equals the subtotal.
Does it work on A4 paper?
The English file is set to Letter and fits on one page. For A4, choose A4 under Page Layout > Size; the scaling to one page stays.
Can I add more than 15 line items?
Unprotect the sheet (Review > Unprotect Sheet), insert rows inside the item area and the SUMIF ranges grow with them.
How do I send it as a PDF?
File > Export > Create PDF/XPS, or print to Microsoft Print to PDF. The sheet already fits on one page.
To track what comes in and goes out after invoicing, see accounting in Excel.