Short answer: give every invoice a unique number that follows on from the last one, and never reuse or skip a number. The simplest system is a prefix plus a running number, such as INV-1001, INV-1002, INV-1003. If you want the number to show the year or the customer, add them in front, for example 2026-001 or ACME-001.
That is the whole rule. The rest of this guide shows six numbering formats with examples, explains which one suits which business, and gives you Excel and Google Sheets formulas that create the next invoice number for you so you never have to remember where you left off.
Why the Invoice Number Matters
An invoice number looks like a small detail, but it does three jobs:
- It makes payments easy to match. When a customer pays and quotes INV-1042, you know exactly which invoice is settled.
- It shows your records are complete. A clean sequence with no gaps tells your accountant, a lender or a tax inspector that nothing is missing.
- It may be a legal requirement. In the UK, for example, a VAT invoice must have a unique number that follows on from the previous one. Other countries have their own rules, so check what applies where you are registered.
In my bookkeeping work, the most common problem I see is not a bad format. It is two different invoices with the same number, usually because someone typed the number by hand from memory. The formulas later in this guide are there to prevent exactly that.
6 Invoice Number Examples
| Format | Example | Best for |
|---|---|---|
| Plain sequence | 1001, 1002, 1003 | Very small businesses that send a few invoices a month |
| Prefix + sequence | INV-1001, INV-1002 | Most small businesses; easy to read and search |
| Year + sequence | 2026-001, 2026-002 | Businesses that like each year to start fresh |
| Year-month + sequence | INV-2611-01, INV-2611-02 | High volume; the number shows when it was issued |
| Customer code + sequence | ACME-001, ACME-002 | Freelancers and agencies with a few regular clients |
| Project code + sequence | WEB24-01, WEB24-02 | Project-based work billed in stages |

A note on customer-based numbering: if you number per customer (ACME-001, BOLT-001), each customer’s sequence is unique, but your business as a whole will have several invoices ending in 001. Many accountants prefer a single running sequence across all customers. A good compromise is to put the customer code after a global number, such as 1045-ACME.
How to Choose a Numbering System in 4 Steps
- Decide whether you need the year in the number. If you send fewer than 100 invoices a year, a plain prefix sequence (INV-1001) is enough. If you send hundreds, adding the year or year-month makes old invoices easier to find.
- Pick a starting number. You do not have to start at 1. Starting at 1001 looks established and keeps numbers the same length for a long time.
- Fix the number of digits. Use leading zeros (001, 002) so files sort correctly. “INV-2” sorts after “INV-10” in most folders; “INV-002” does not.
- Write it down and stick to it. Changing format halfway through a year makes your records harder to follow. If you must change, do it at the start of a new financial year.
Excel Formulas That Create the Next Invoice Number
Assume your invoice log has invoice numbers in column A, starting in A2.
Method 1: Store a plain number and format it
The cleanest approach is to keep the number itself as a real number and let formatting add the prefix. Type your first number (for example 1001) in A2. In A3, with the invoice date in column B, enter this and copy it down:
=IF(B3="","",MAX(A$2:A2)+1)
A new number appears as soon as you type a date on that row, and empty rows stay blank.
Then select column A and apply a custom number format (Format Cells > Number > Custom):
"INV-"0000
The cell holds 1005, but shows INV-1005. Because it is still a number, MAX, sorting and lookups all work normally.
Method 2: Next number from text like INV-1004
If your log already contains text such as INV-1004, this formula finds the highest number and adds one:
="INV-"&TEXT(SUMPRODUCT(MAX(--(0&MID(A2:A500,5,10))))+1,"0000")
MID(A2:A500,5,10) takes everything after the first four characters (“INV-“). The 0& turns blank cells into zero, -- converts the text to numbers, and SUMPRODUCT lets MAX work across the range without a special array entry. TEXT(...,"0000") keeps the leading zeros. If your prefix is a different length, change the 5 to the position where the number starts.
Method 3: Year-based numbers that restart every year
=IF(B2="","",TEXT(B2,"yyyy")&"-"&TEXT(COUNTIF(A$1:A1,TEXT(B2,"yyyy")&"-*")+1,"000"))
Put this in A2 and copy it down, with the invoice date in column B. It counts how many invoices above it already start with that year, then adds one, giving 2026-001, 2026-002 and so on. On the first invoice dated in 2027 it restarts at 2027-001.
Catch duplicates automatically
Select column A, then add a conditional formatting rule using this formula:
=COUNTIF($A$2:$A$500,A2)>1
Set the fill to red. Any number used twice lights up immediately.
Common Mistakes and How to Fix Them
Leading zeros disappear. Typing 001 into a cell gives 1. Either use the custom format from Method 1 (000), or type an apostrophe first (‘001) to store it as text.
#VALUE! error in Method 2. One of the cells contains text that is not a number after the prefix, for example “INV-1004A” or a note. Remove the extra characters or keep notes in a separate column.
A gap in the sequence. If you cancel an invoice, do not delete its number. Keep the row, mark it “Void” and record why. A visible void is fine; a silent gap raises questions.
Reusing numbers after a template reset. If you start a new spreadsheet each year, make sure the first number continues from the last one (or restarts with the new year prefix). Never start again at INV-1001 in the same format.
Credit notes with invoice numbers. Give credit notes their own sequence, such as CN-001, and refer to the original invoice number on them.
Variations for Google Sheets
All the formulas above work in Google Sheets as written. For Method 1, use Format > Number > Custom number format and enter "INV-"0000. Google Sheets also accepts the ARRAYFORMULA version of Method 2, but the SUMPRODUCT version works in both programs, so it is the safer choice if you switch between them.
Use a Template That Numbers for You
If you would rather not build this yourself, our free simple invoice template includes an invoice log that tracks every number, due date and payment, with paid, open and overdue status. Pair it with the expense tracker and the profit and loss template and your basic bookkeeping is covered.
This guide is general information, not legal or tax advice. Invoice requirements depend on your country and tax registration, so check with a qualified accountant where you live. See our Disclaimer.
Frequently Asked Questions
What is an example of an invoice number?
INV-1001 is a typical example: a short prefix followed by a running number. Other common formats are 2026-001 (year plus sequence) and ACME-001 (customer code plus sequence).
Do invoice numbers have to be sequential?
They must always be unique. Many tax authorities, including HMRC for UK VAT invoices, also expect them to follow a sequence. Even where it is not required, a sequence makes your records much easier to check.
Can I start my invoice numbers at 1000?
Yes. You can start at any number. Starting at 1001 is common because it keeps every number four digits long.
Should the invoice number include the customer’s name?
You can include a short customer code, but keep a single running sequence across all customers if you can. That way every number in your business is unique.
What should I do with a cancelled invoice number?
Keep it in your log marked “Void” with a short reason. Do not reuse it and do not delete it.
Can I change my invoice numbering format?
Yes, but do it at the start of a new financial year and note the change, so the old and new sequences are easy to follow.
Related Templates and Guides
- Free Simple Invoice Template (Excel & Google Sheets)
- Free Small Business Expense Tracker (Excel & Google Sheets)
- Free Profit and Loss Statement Template (Excel & Google Sheets)
- Free 12-Month Cash Flow Forecast Template (Excel & Google Sheets)
- Payment Terms on an Invoice: 12 Examples You Can Copy
- Invoice Terms and Conditions: 15 Examples + Free Template
- Free Sales Tracker Template
New templates for invoicing, cash flow, budgets and reports are added every week. Browse them on the Sheetforma homepage, or tell us which template you need next.