MisaNeco Works Blog

2026-10-21・Invoicing / Small business / Excel

How to number your invoices (a simple system, plus a formula that does it for you)

If you started invoicing without deciding on a numbering system, you probably have invoices called "1", "Invoice-Oct", "ACME 2" and so on. That's fine until you need to find one, or match a payment to the right invoice.

In this article:

The simple system: year + running number

2026-001
2026-002
2026-003

If you send more than a few hundred invoices a year, use four digits (2026-0001).

Other common variations: year and month (202610-01) if you invoice monthly, or a client or department prefix (ACME-2026-001). Whatever you choose, pick one format and stick to it.

Are invoice numbers required?

It depends on where you are. In the UK, GOV.UK lists "a unique identification number" first among the things an invoice must include, along with your details, the customer's details, a description, the supply date, the invoice date, the amounts, VAT if applicable and the total. If you and your customer are VAT registered, you need a VAT invoice, which has more requirements.

Other countries have their own rules, so check your tax authority's guidance. Even where a number isn't strictly required, it makes payments much easier to match.

A formula that numbers invoices for you

Put the invoice date in column A and the invoice number in column B. Rows should be in date order.

A (Invoice date) B (Invoice number)
1 Invoice date Invoice number
2 2026-10-05 2026-001
3 2026-10-31 2026-002
4 2027-01-10 2027-001

In B2, enter this formula and copy it down:

=YEAR(A2)&"-"&TEXT(COUNTIFS($A$2:A2,">="&DATE(YEAR(A2),1,1),$A$2:A2,"<="&DATE(YEAR(A2),12,31)),"000")

The count restarts at 001 when the year changes. The same formula works in Excel and Google Sheets.

If your financial year doesn't start in January, you can use your own year label instead of YEAR(A2), but the simplest option is often to number by calendar year and let your accounting software handle the financial year.

Lock the numbers once sent

The formula recalculates if you sort the sheet or insert a row in the middle, so numbers can shift. Once an invoice has been sent, copy column B and paste it back as values so the number can't change. Never renumber an invoice a customer already has.

Cancelled and corrected invoices

Summary

Source: GOV.UK: Invoicing and taking payment from customers, what invoices must include

General information, not tax advice. This article was drafted with the help of AI and checked against GOV.UK on 2026-10-21.

Free tools you can useRecord Retention Calculator (US/UK/CA/AU)
Related articlesHow to work out the business-use share of home costs in a spreadsheet (US and UK)
Track unpaid invoices in Google Sheets (with overdue days and red rows)
Build a weekly staff shift schedule in Google Sheets (hours per person, gaps highlighted)