Generate Number Sequences with One Formula
You need numbered rows — invoice lines, order IDs, a 12-week date column for a project plan — and typing 1, 2, 3 then dragging the fill handle breaks the moment rows are added or removed.
Excel & Google Sheets
This formula works in both Excel and Google Sheets.
How it works
=SEQUENCE(10) spills the numbers 1 through 10 into the cells below — one formula owns the whole list, so there's nothing to re-drag when the list changes; edit the formula and it rebuilds. The full form is =SEQUENCE(rows,columns,start,step): =SEQUENCE(10,1,1001,1) numbers invoices from 1001, and =SEQUENCE(12,1,DATE(2026,7,6),7) makes twelve weekly dates starting 6 July — format those cells as dates. Dates work because spreadsheets store them as numbers, so a step of 7 is exactly one week. SEQUENCE needs Excel 365 or 2021; Google Sheets has it with the same arguments.
When to use it
Use it to number invoice lines and order rows, build a weekly date column for a project schedule, generate month numbers for a forecast, or feed a series into another formula without helper columns.
Common mistakes
Did this formula help?
Engine-verified against the sample data aboveLast reviewed 2026-07-08