Free Invoice Template with Product Lookup (Excel, Sheets)
Invoice template for Excel and Google Sheets: type a product code to fill description and price, tax only taxable lines, and see the due date and balance.
On this page
This invoice fills itself in from a product list. You type a code and a quantity; the description, unit price and taxable flag come from the Products sheet, each line is rounded to the cent, and tax is charged only on the lines that are taxable. The sample invoice totals 770.32 with a balance due of 570.32 after a 200 deposit.
Download invoice-template.xlsx. The description in B10 is looked up with INDEX and MATCH:
=IF(A10="","",IFERROR(INDEX(Products!$B$2:$B$40,MATCH(TRIM(A10),Products!$A$2:$A$40,0)),"Code not found"))
Unit price (D10) and Taxable (E10) use the same MATCH against columns C and D of Products. INDEX/MATCH is used instead of XLOOKUP so the file also works in Excel 2016 and 2019; see XLOOKUP vs INDEX/MATCH vs VLOOKUP if you’d rather switch.
Before the first invoice: the Products sheet
Every code you bill needs a row on Products: code, description, unit price, and Y or N for taxable. The sample is a small print shop with ten items, from BC-500 (business cards, 48.00) to RUSH-48 (a 35.00 rush fee). Codes must be unique. MATCH stops at the first hit, so a duplicated code always bills the upper row’s price.
Design time and delivery are set to N in the sample only to show how the switch works. Which items you charge tax on depends on where you sell, so set each flag by your local rules.
Filling in the header
The yellow cells at the top are yours: your business details in A3:A6, the customer in C4:C7, and the invoice number, date and payment terms in F3:F5. Due date in F6 is the invoice date plus the terms:
=IF(OR(F4="",F5=""),"",F4+F5)
17 November 2026 with 30-day terms gives 17 December 2026. Type the invoice date as a real date so F6 and the status line can do arithmetic with it; dates stored as text shows how to check a date that came from an email or an export.
The line items, and why each one is rounded
| Code | Qty | Unit price | Taxable | Line total |
|---|---|---|---|---|
| BC-500 | 2 | 48.00 | Y | 96.00 |
| FL-A5-1K | 1 | 129.50 | Y | 129.50 |
| MN-A4 | 40 | 6.40 | Y | 256.00 |
| DS-HR | 3.5 | 65.00 | N | 227.50 |
| PR-PROOF | 2 | 5.00 | Y | 10.00 |
| DL-LOCAL | 1 | 12.00 | N | 12.00 |
The line total in F10 is:
=IF(OR(C10="",NOT(ISNUMBER(D10))),"",ROUND(C10*D10,2))
Rounding each line is deliberate. If a unit price has more than two decimals, unrounded lines can add up to a subtotal one cent away from the lines printed on the invoice, and the customer will ask why. Rounded total off by a cent shows the effect with numbers.
The lookup forgives two common typing slips. MATCH isn’t case-sensitive, so bc-500 found the business cards in the test file. TRIM strips spaces around the code, so BC-500 with a trailing space found them too. A code that isn’t on Products at all, such as BC500 without the hyphen, shows “Code not found” and leaves the line total empty, so it can’t slip into the subtotal at a price of zero.
Totals: tax on the taxable lines only
The subtotal in F23 is a plain SUM of the line totals, 731.00. Tax in F25 adds up only the lines marked Y and applies the rate in F24:
=ROUND(SUMIFS(F10:F21,E10:E21,"Y")*F24,2)
The taxable lines come to 491.50, so 8% tax is 39.32. Multiplying the whole subtotal by 8% would have charged 58.48, taxing the design hours and the delivery. Total (F26) is 770.32, and Balance due (F28) subtracts the 200 in Paid (F27) for 570.32. A Y typed with a space after it won’t match the SUMIFS criterion; SUMIF returns 0 lists the other reasons a criterion silently misses.
The status line
A24 compares the due date with the date in B23:
=IF(OR(F6="",B23=""),"",IF(F28<=0,"Paid",IF(B23>F6,"Overdue by "&(B23-F6)&" days","Due in "&(F6-B23)&" days")))
On 17 November it reads “Due in 30 days”. With B23 set to 20 December the test file read “Overdue by 3 days”. It’s there for your copy of the invoice. Delete row 24 or hide it before you send a PDF, or the customer sees “Due in 30 days” on a document they’ll read next week.
Things that break the totals
Typing a price straight into a green cell replaces the formula on that row only. The invoice still adds up, but the next time you change Products that row won’t follow. For a one-off charge, add it to Products first.
Lines go down to row 21. For more, insert rows between row 10 and row 21 so SUM and SUMIFS expand with them, then copy the formulas in B, D, E and F down into the new rows. Rows added below row 21 aren’t counted.
Keep one file per invoice (File > Save a copy, or Make a copy in Google Sheets). If you reuse a single file and later raise a price on Products, every old invoice you reopen shows the new price.