KutoolsforOffice — One Suite. Five Tools. Get More Done.

How to generate unique sequential invoice numbers in Excel without VBA

AuthorAmanda LiLast modified
Quick Answer

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.

Before and after overview showing Kutools for Excel Insert Sequence Number remembering last invoice INV-2026-0055 and filling the next week's batch starting at INV-2026-0056 in one click
Set your invoice format once—when new bills arrive a week later, one click continues right from INV-2026-0056

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.

  1. Select the empty invoice number cells you want to fill, such as A2:A9 (excluding the header).
  2. Click Kutools ™ > Editing > Insert > Insert Sequence Number.
    Insert Sequence Number menu item under Kutools tab Editing group Insert menu in Kutools for Excel
    Insert Sequence Number on the Kutools tab under Editing > Insert
  3. 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:
    Kutools for Excel Create New Sequence Number dialog configured for Invoices 2026 starting at 48 with 4 digits and prefix INV-2026-
    1 Name, 2 Start number / End number / Increment, 3 No. of digits, 4 Prefix and Suffix
    #OptionWhat it does
    1Name:Names your sequence (for example, Invoices 2026) so you can reuse it later.
    2Start number: / End number: / Increment:Sets the starting number (48) and step (1). Check End number: only to loop numbers after a maximum value.
    3No. of digits:Pads numbers with leading zeros to a fixed width (4 turns 48 into 0048).
    4Prefix (optional): / Suffix (optional):Adds optional text before or after each number (such as INV-2026-), shown live under Preview.
  4. 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:
    Excel Invoices worksheet after Kutools for Excel Insert Sequence Number filled A2:A9 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:

Kutools for Excel Insert Sequence Number dialog showing Invoices 2026 with Previous INV-2026-0055 and Next INV-2026-0056
Previous and Next automatically updated for the next batch of invoices

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

Excel Invoices worksheet showing second batch A11:A13 filled continuously with INV-2026-0056 through INV-2026-0058 by Kutools for Excel Insert Sequence Number
Second batch automatically numbered INV-2026-0056 through INV-2026-0058

Excel (VBA) vs Kutools for Excel

Excel with a VBA macroKutools for Excel
SetupWrite and maintain VBA codeClick Kutools ™ > Editing > Insert > Insert Sequence Number once
File formatMust be saved as .xlsmStandard .xlsx files
Remembers next numberRequires custom storage in cells, files, or registryBuilt-in Previous / Next tracking across sessions
Prefix, suffix & digitsHand-coded string formattingBuilt-in Prefix (optional):, Suffix (optional):, and No. of digits:
Fill direction & merged cellsSeparate loop logic requiredVertical or horizontal via Fill order:; supports merged cells
Undo supportCannot undo with Ctrl + ZSupports Ctrl + Z
Opened without KutoolsTriggers macro promptsPlain 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 Excel

Free 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

🤖Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions…
Popular Features: Find, Highlight or Identify Duplicates   |  Delete Blank Rows   |  Combine Columns or Cells without Losing Data   |  Round without Formula ...
Super Lookup: Multiple Criteria VLookup  |   Multiple Value VLookup  |   VLookup Across Multiple Sheets   |   Fuzzy Lookup ....
Advanced Drop-down List: Quickly Create Drop Down List   |  Dependent Drop Down List   |  Multi-select Drop Down List ....
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  |  Compare Ranges & Columns ...
Featured Features: Grid Focus   |  Design View   |  Big Formula Bar   |  Workbook & Sheet Manager   |  Resource Library (Auto Text)   |  Date Picker   |  Combine Worksheets   |  Encrypt/Decrypt Cells   |  Send Emails by List   |  Super Filter   |   Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets:  12 Text Tools (Add Text, Remove Characters, ...)   |   50+ Chart Types (Gantt Chart, ...)   |   40+ Practical Formulas (Calculate age based on birthday, ...)   |   19 Insertion Tools (Insert QR Code, Insert Picture from Path, ...)   |   12 Conversion Tools (Numbers to Words, Currency Conversion, ...)   |   7 Merge & Split Tools (Advanced Combine Rows, Split Cells, ...)   |   ... and more
Use Kutools in your preferred language – supports English, Spanish, German, French, Chinese, and 40+ others!

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.

ExcelWordOutlookTabsPowerPoint
  • 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