InvoiceTemplateSUMVLOOKUPSmall Business

Excel Invoice Template

Build a working Excel invoice template with auto-calculating totals, VLOOKUP price lookups, and TEXT-formatted dates - a practical guide for small businesses.

Introduction

A good invoice template does the math for you. Instead of typing totals by hand, you can wire up SUM, VLOOKUP, and TEXT so every invoice you send is accurate and consistently formatted. This guide builds a reusable template from a blank sheet.

Prerequisites

  • A basic understanding of rows, columns, and cell references
  • Familiarity with = as the start of every formula

1What Belongs in an Invoice Template

Every invoice needs four zones: your details, the client's details, a line-item table, and a totals area. Keep the line items as a real Excel table so you can sum rows automatically and reuse the same sheet for every job. The totals area is where formulas earn their keep.

1

Issuer and client blocks

Enter your business details and the client's details at the top of the sheet.

2

Line-item table

Build columns for ID, Description, Qty, Unit Price, and Line Total (Qty x Unit Price).

3

Totals area

Add a Subtotal with SUM, then a Tax line and a Grand Total below it.

Put the unit-price lookup table on a separate 'Products' sheet to keep the invoice clean.

Use a table (Insert ▸ Table) so totals expand as you add rows.

2Totaling Line Items with SUM

Each row holds a quantity multiplied by a unit price. The invoice subtotal is the SUM of all line totals, with tax and shipping added on top. SUM ignores blank cells and text, so it stays safe even if some rows are empty.

1

Compute each line total

Multiply the quantity by the unit price on the same row.

=B2*C2
2

Sum the line totals

Add up the whole line-total column for the subtotal.

=SUM(D2:D10)

Example

=SUM(D2:D10)
Result: Returns the invoice subtotal (sum of all line totals)

SUM adds every numeric value in the range; blank or text cells are skipped automatically.

Wrap the total in ROUND(...,2) if you need exact two-decimal currency rounding.

3Fetching Unit Prices with VLOOKUP

Store your products in a price table and look up the unit price by product ID instead of typing it by hand. This prevents typos and keeps prices consistent across every invoice you issue.

Example

=VLOOKUP(A2, Products!A:C, 3, FALSE)
Result: Returns the unit price for the product ID in A2

The 4th argument FALSE forces an exact match - never use TRUE for price lookups, or you may bill the wrong tier.

Name your price range (Formulas ▸ Define Name) so the formula reads =VLOOKUP(A2, PriceTable, 3, FALSE).

4Conditional Totals with SUMIF

If you bill some items at a discounted rate, SUMIF can total only the rows that carry a given tag, so you can show a separate discount line without manual subtraction.

Example

=SUMIF(E2:E10, "Discount", D2:D10)
Result: Sums line totals in column D only where column E says Discount

SUMIF(range, criteria, sum_range) checks each row and adds the matching sum_range cell.

Use SUMIFS (plural S) when you need two or more conditions at once.

5Formatting Dates and Numbers with TEXT

Invoice numbers and dates often need a fixed format. TEXT turns a real date into a styled string so your 'Invoice #' and 'Issue Date' cells stay consistent no matter what the system date looks like.

Example

="INV-"&TEXT(TODAY(), "YYYY-MM-DD")
Result: Returns e.g. INV-2026-08-27

TEXT(TODAY(), ...) formats today's date as YYYY-MM-DD and concatenates it to the INV- prefix.

Keep the underlying date in a real date cell for sorting; TEXT only changes how it's displayed.

Functions Used

Related Guides

Summary

A solid Excel invoice template leans on four functions: SUM totals your line items, VLOOKUP pulls unit prices from a product table, SUMIF isolates discounted rows, and TEXT keeps dates and invoice numbers consistently formatted. Build the structure once, then reuse the sheet for every client.

Next Steps

  • Add a Products sheet and switch your price cells to VLOOKUP for error-free billing
  • Wrap subtotals in ROUND(...,2) so currency always shows two decimals
  • Save the finished sheet as a template (.xltx) so each new invoice starts blank