How to Set Up an Invoice Template in Excel
In this article
To set up an invoice template in Excel, open a blank workbook and add these sections from top to bottom: your business details, the invoice number and dates, the customer's details, a line-item table with columns for description, quantity, unit price and amount, and a totals area with tax and a grand total. Format the table, add formulas for the amounts and totals, then save the file as an Excel Template (.xltx) so every new invoice starts from a clean copy. No special software is needed beyond Excel itself.
What You'll Need
- Excel for Windows, Mac or the web (the desktop versions support saving as .xltx; the web version can still be used as a template by saving a copy).
- Your business name, address, phone, email and any tax or registration number you normally show on invoices.
- A sample customer and a few sample line items to test the formulas.
Step-by-Step
- Start a blank workbook. Open Excel and choose Blank workbook. Leave row 1 empty as a margin; you will start content in row 2 or 3.
- Add your business details. In cells A2 to A5, type your business name, address, phone and email, one per row. You can merge A2:D2 for the name and make it bold and larger. If you show a tax ID, put it in A6.
- Add the invoice title and number. In F2 type INVOICE in a large bold font. In F3 type Invoice # and in G3 type a starting number such as 1001. In F4 type Invoice Date and in G4 enter a date. In F5 type Due Date and in G5 enter a date or a formula such as
=G4+30for 30-day terms. - Add the customer block. In A8 type Bill To in bold. In A9 to A12 add placeholders for customer name, address, city/state/ZIP and email. Keep these as empty cells you fill in each time.
- Build the line-item table. In row 14, add these headers across columns A to E: Description, Quantity, Unit Price, Amount. In E15 enter the formula
=B15*C15and copy it down through E24 (ten rows is a practical starting size). Format C15:E24 as Currency or Accounting. - Add the totals area. Below the table, in D26 type Subtotal and in E26 enter
=SUM(E15:E24). In D27 type Tax Rate and in E27 enter a rate such as 0.08 formatted as Percentage. In D28 type Tax and in E28 enter=E26*E27. In D29 type Total in bold and in E29 enter=E26+E28. - Add payment terms and a thank-you line. In A31 type Payment Terms and in A32 write your terms, for example Due within 30 days. Add your payment method details (bank name, account name, reference) in A33 to A35. Add a short thank-you note in A37.
- Format for readability. Select the header row of the table and apply a fill colour and bold text. Add borders around the table and totals. Set column widths so descriptions fit. Turn off gridlines via View > Gridlines if you want a cleaner printed page.
- Set the print area and page layout. Select the used range, then go to Page Layout > Print Area > Set Print Area. Choose Portrait or Landscape, set margins, and use Page Layout > Print Titles if you want the table header to repeat on multi-page invoices.
- Save as a template. Go to File > Save As, choose Excel Template (*.xltx) from the file type list, name it something like Invoice Template, and save it to your Templates folder. In Excel for the web, use File > Save a Copy and keep a master file you duplicate each time.
- Test it. Open the template, fill in a sample invoice, check that Amount, Subtotal, Tax and Total calculate correctly, then close without saving. Reopen to confirm the template itself is unchanged.
Common Mistakes
- Saving as .xlsx instead of .xltx. A normal workbook opens with the last invoice's data still in it. The template format always opens a fresh copy.
- Typing totals instead of formulas. Manual totals break as soon as a quantity changes. Use SUM and multiplication formulas throughout.
- Leaving the tax rate as text. Enter 0.08 and format the cell as Percentage; typing "8%" as text can stop the tax formula working.
- Forgetting to clear sample data. Delete the test customer and line items before saving the template, or every invoice will start with them.
- No print area. Without a set print area, blank columns and rows can spill onto extra printed pages.
Tips
- Use Data Validation on the Quantity column to allow only whole numbers, which prevents text creeping into calculations.
- Add a second sheet called Products with your common items and prices, then use a lookup formula in the Description column to fill them in faster.
- Freeze panes below the header row on long invoices so the column labels stay visible while scrolling.
- Keep the invoice number in a cell you update manually each time, or use a simple formula that adds 1 to the previous number if you save each invoice as a separate file.
- Protect the formula cells (Review > Protect Sheet) so they cannot be overwritten by accident while you type invoice data.
Troubleshooting
- Formulas show as text. The cell is likely formatted as Text. Select it, set the format to General or Number, then re-enter the formula.
- Totals show #VALUE!. A quantity or price cell contains text such as a currency symbol typed manually. Clear it and enter the number only, using cell formatting for the symbol.
- The template opens with old data. You saved it as .xlsx. Save a clean copy as .xltx and use that file from then on.
- Printing cuts off columns. Reduce column widths, switch to Landscape, or use Fit to Page under Page Layout > Scale to Fit.
- The template is missing from the New screen. Save it to the Templates folder Excel uses by default, or open the .xltx file directly and use Save As for each new invoice.
Frequently Asked Questions
Can I use the same template for different currencies?
Yes. Change the cell format for the price and total cells to the currency you need, or keep separate template files for each currency to avoid reformatting each time.
Does an Excel invoice need to be a PDF?
Not legally, but PDFs are harder for a customer to alter accidentally. Use File > Export > Create PDF/XPS to send a fixed copy while keeping the Excel file for your records.
How do I add more line items?
Insert rows above the totals area and copy the Amount formula down into the new rows. Then re-check that the Subtotal formula range includes the new rows.
Can I make the invoice number increase automatically?
Excel cannot reliably track a counter across separate files without a macro or an external list. The simplest safe method is to type the next number manually, or keep a running list on a separate sheet and reference it.
Will the template work in Excel for the web?
Yes, the formulas and layout work, but saving as .xltx is a desktop feature. In the web version, keep a master file and use Save a Copy for each invoice.
How do I stop someone editing the formulas?
Select the cells you want to keep editable, unlock them in Format Cells > Protection, then use Review > Protect Sheet. The formula cells stay locked while data entry cells remain open.