How to generate unique sequential invoice numbers in Excel without VBA
Want to generate custom, duplicate-free invoice numbers in Excel that keep counting even after you close the file—without VBA? Select your cells, click Kutools ™ > Editing > Insert > Insert Sequence Number, set your format once, and click OK. Kutools for Excel remembers the next number automatically.
Issued invoice INV-2026-0055 last week, and now you're digging through old files to check which number comes next? Manual typing risks duplicates, dragging the fill handle forgets where you stopped, and formulas scramble past invoice IDs the moment you sort or delete a row. Without writing a single line of VBA, you can set your invoice format once—prefix, zero-padding, and start number—and fill the next batch (INV-2026-0056, 0057, 0058…) in one click, even after closing Excel or opening a new workbook.

Can Excel generate unique sequential invoice numbers on its own?
Yes—for basic one-off lists, Excel can generate sequential numbers with the fill handle or formulas like ROW and SEQUENCE. However, those built-in options fall short for real invoice tracking: the fill handle cannot remember where the last batch ended and fails on merged cells, while formulas recalculate and change historical invoice numbers if rows are sorted or deleted.
To automatically generate custom, static invoice numbers that keep counting across sessions or workbooks, Excel natively requires a VBA macro:
- You must save the workbook as a macro-enabled file (.xlsm).
- Teammates opening the file often hit macro warnings or IT blocks.
- VBA clears Excel's undo stack and cannot be undone with Ctrl + Z.
- Changing the prefix, start number, or digit count—or reusing the counter in another file—means editing or copying code.
How to generate unique sequential invoice numbers with Kutools for Excel
Kutools for Excel, an Excel add-in by ExtendOffice, includes Insert Sequence Number to define a custom format once, fill any range with static numbers, and continue right where you left off—no VBA or .xlsm required.
- Select the empty invoice number cells you want to fill, such as A2:A9 (excluding the header).
- Click Kutools ™ > Editing > Insert > Insert Sequence Number.

Insert Sequence Number on the Kutools tab under Editing > Insert - The first time, click New in Insert Sequence Number. In Create New Sequence Number, set your format (the numbers match the screenshot below) and click OK:

1 Name, 2 Start number / End number / Increment, 3 No. of digits, 4 Prefix and Suffix # Option What it does 1 Name: Names your sequence (for example, Invoices 2026) so you can reuse it later. 2 Start number: / End number: / Increment: Sets the starting number (48) and step (1). Check End number: only to loop numbers after a maximum value. 3 No. of digits: Pads numbers with leading zeros to a fixed width (4 turns 48 into 0048). 4 Prefix (optional): / Suffix (optional): Adds optional text before or after each number (such as INV-2026-), shown live under Preview. - Back in Insert Sequence Number, keep Fill order: on Fill vertically cell after cell and click OK. Cells A2:A9 fill immediately with INV-2026-0048 through INV-2026-0055:

First batch of eight invoices numbered INV-2026-0048 to INV-2026-0055
A few things to keep in mind:
- Insert Sequence Number inserts plain static values, so sorting or deleting rows never renumbers past invoices.
- To fill across rows instead of down columns, switch Fill order: to Fill horizontally cell after cell.
- You can undo a fill with Ctrl + Z; if you also want to roll back the saved counter before refilling, use Reset or Edit in the toolbar.
- Click Apply instead of OK to fill cells while keeping the dialog open.
Continue numbering in later batches without duplicates
When three new invoices arrive a week later in A11:A13, select those cells and reopen Kutools ™ > Editing > Insert > Insert Sequence Number. Kutools for Excel remembers Invoices 2026: Previous shows INV-2026-0055, and Next is already set to INV-2026-0056:

Click OK to fill INV-2026-0056 through INV-2026-0058 seamlessly—even if you closed Excel or switched workbooks in between:

Excel (VBA) vs Kutools for Excel
| Excel with a VBA macro | Kutools for Excel | |
|---|---|---|
| Setup | Write and maintain VBA code | Click Kutools ™ > Editing > Insert > Insert Sequence Number once |
| File format | Must be saved as .xlsm | Standard .xlsx files |
| Remembers next number | Requires custom storage in cells, files, or registry | Built-in Previous / Next tracking across sessions |
| Prefix, suffix & digits | Hand-coded string formatting | Built-in Prefix (optional):, Suffix (optional):, and No. of digits: |
| Fill direction & merged cells | Separate loop logic required | Vertical or horizontal via Fill order:; supports merged cells |
| Undo support | Cannot undo with Ctrl + Z | Supports Ctrl + Z |
| Opened without Kutools | Triggers macro prompts | Plain static values anyone can view and edit |
FAQ
Does Insert Sequence Number keep counting after closing Excel or switching workbooks?
Yes. Kutools for Excel saves your sequences and their Next counters locally on your PC, so closing Excel or opening another workbook still continues cleanly from the next number. Counters are stored per computer rather than synced across separate machines.
Can I create a repeating sequence instead of a continuous counter?
Yes. In Create New Sequence Number, check End number: and enter an upper limit (such as 1 to 3). Once Kutools for Excel reaches that limit, it loops back to the start number automatically.
How do I edit, reset, or remove a saved sequence?
Select the sequence under Sequence number list and use the toolbar buttons: Edit updates the prefix, digits, or start number; Reset restarts the counter; and Remove or Remove All deletes saved sequences.
Can Insert Sequence Number fill merged cells?
Yes. Unlike Excel's fill handle—which fails across differently sized merged cells—Insert Sequence Number in Kutools for Excel numbers selected merged cells sequentially in one click.
What happens if someone without Kutools for Excel opens the workbook?
They view, edit, and print all invoice numbers normally with no add-in or macros required, because Insert Sequence Number writes plain static values.
Does Kutools for Excel offer a free trial and refund policy?
Yes. Kutools for Excel offers a 30-day free trial with full access to all features and a 60-day money-back guarantee, so you can test Insert Sequence Number on your own invoice registers risk-free.
Summary
Excel cannot track and continue custom sequential invoice numbers across sessions or workbooks without VBA macros in .xlsm files, while formulas risk shifting past records. With Kutools for Excel, Insert Sequence Number creates zero-padded invoice IDs in four steps and remembers the next number automatically.
Download Kutools for ExcelFree to reuse
All content in this article (including images and videos) may be used freely for commercial or non-commercial purposes without our permission.
Best Office Productivity Tools
Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time. Click Here to Get The Feature You Need The Most...
Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier
- Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
- Open and create multiple documents in new tabs of the same window, rather than in new windows.
- Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
All Kutools add-ins. One installer
Kutools for Office suite bundles add-ins for Excel, Word, Outlook & PowerPoint plus Office Tab Pro, which is ideal for teams working across Office apps.
- All-in-one suite — Excel, Word, Outlook & PowerPoint add-ins + Office Tab Pro
- One installer, one license — set up in minutes (MSI-ready)
- Works better together — streamlined productivity across Office apps
- 30-day full-featured trial — no registration, no credit card
- Best value — save vs buying individual add-in


