
You don't need to drag a cell down to number a list from 1 to 500 or to type every date of a month. The SEQUENCE function generates a series of numbers of any size with one formula, and the result spills into neighboring cells on its own. It is available in Microsoft 365 and Excel 2021 and later.
Syntax
SEQUENCE(rows, [columns], [start], [step])
| Argument | Meaning | Default |
|---|---|---|
| rows | How many rows to produce | Required |
| columns | How many columns to produce | 1 |
| start | The first number | 1 |
| step | The increase per number | 1 |
Practical examples
- Row numbers: SEQUENCE(100) gives a vertical list from 1 to 100.
- Even numbers: SEQUENCE(10,1,2,2) gives 2, 4, 6 ... 20.
- Countdown: set the step to -1 for a decreasing series.
- Numbers as long as a table: SEQUENCE(ROWS(Table1)) gives numbers that grow with the table. See our auto-numbering guide.
- Date list: with a start date, SEQUENCE(30,1,date,1) gives a month of days; format the cells as dates.
- 1
Type the first day of the month in a cell
- 2
Work out the Monday the calendar should start on
- 3
Build a 6x7 date grid with SEQUENCE(6,7,start,1)
- 4
Format the cells to show only the day number
- 5
Fade days from other months with conditional formatting
With other functions
| Used with | Purpose |
|---|---|
| INDEX | Pull values from a list at set intervals |
| TEXT | Produce a list of month names |
| RANDBETWEEN | Random ordering and sampling |
| FILTER and SORT | Build dynamic reports |
For the logic of dynamic arrays see our dynamic arrays guide, and for color rules our conditional formatting guide.
Common mistakes
- A target area that isn't empty. The formula returns a #SPILL! error.
- Not formatting a date series. The result shows as serial numbers.
- Trying to edit one cell in the result area. A spilled array behaves as one block.
- Using it in older Excel versions. The function isn't recognized.
Frequently asked questions
How do I turn the result into fixed values? Copy the area and use Paste Special to paste values only.
Can I produce a horizontal series? Yes; put 1 for rows and the number you want for columns.
Summary
SEQUENCE reduces numbering and date work done by dragging to a single formula. Combine it with other functions for calendars and dynamic reports.
Serkan Akyürek is the founder and author of toolrota; he writes step-by-step guides on Excel, AI, the cloud, personal finance and digital security.