SEQUENCE function
Generates a spilled list or grid of sequential numbers with a chosen start and step.
Available in Microsoft 365, Excel 2021 and later, Excel for the web
Excel 2021 and laterWorks in Google Sheets
Syntax
SEQUENCE(rows, [columns], [start], [step])| Argument | What it means | |
|---|---|---|
rows | Required | Number of rows to return. |
columns | Optional | Number of columns. Default 1. |
start | Optional | First number. Default 1. |
step | Optional | Amount added each time. Default 1; can be negative or a decimal. |
Returns: An array of numbers that spills into the neighbouring cells, filled row by row.
How SEQUENCE works
SEQUENCE writes a series of numbers for you: =SEQUENCE(10) spills 1 to 10 down a column, replacing the old habit of typing two numbers and dragging the fill handle. Because it is a formula, the list grows or shrinks automatically when the size argument comes from a calculation, such as =SEQUENCE(COUNTA(A:A)-1) for row numbers that follow a changing list.
With more arguments it builds grids and custom series. =SEQUENCE(3, 4) fills 3 rows × 4 columns with 1–12, going across each row before moving down. start and step control the values, so dates (which are numbers), invoice numbers, times or countdowns are all possible. Wrap it in other functions for calendars, schedules and repeated labels.
As a dynamic-array function it spills; the target cells must be empty or you get #SPILL!. Refer to the whole result with the spill operator, e.g. A2#.
Examples
1Numbers 1 to 5
| A | |
|---|---|
| 1 | |
| 2 | 1 |
| 3 | 2 |
| 4 | 3 |
| 5 | 4 |
| 6 | 5 |
Five rows, one column, starting at 1 with step 1.
2A 3 × 4 grid
| A | B | C | D | |
|---|---|---|---|---|
| 1 | 1 | 2 | 3 | 4 |
| 2 | 5 | 6 | 7 | 8 |
| 3 | 9 | 10 | 11 | 12 |
The numbers run across each row first, then continue on the next row.
3Weekly meeting dates
| A | |
|---|---|
| 1 | |
| 2 | 2026-01-05 |
| 3 | 2026-01-12 |
| 4 | 2026-01-19 |
| 5 | 2026-01-26 |
Start on Monday 5 January 2026 and add 7 days each time. Format the spill range as dates, otherwise you see serial numbers (46027…).
4Invoice numbers with a prefix
| A | |
|---|---|
| 1 | |
| 2 | INV-1001 |
| 3 | INV-1002 |
| 4 | INV-1003 |
| 5 | INV-1004 |
SEQUENCE creates 1001–1004 and the & joins the prefix to each number, giving text labels.
Common errors and how to fix them
| Error | Why it happens | Fix |
|---|---|---|
#SPILL! | Something already occupies the spill area. | Clear the cells or move the formula. |
#VALUE! | rows or columns is 0 or negative. | Use positive sizes; wrap in IF to handle empty lists. |
#NAME? | Excel 2019 or older. | Use ROW(A1:A5) style formulas or the fill handle. |
Tips
- Countdown:
=SEQUENCE(5, 1, 5, -1)gives 5, 4, 3, 2, 1. - Fill down instead of across in a grid:
=TRANSPOSE(SEQUENCE(4, 3)). - First day of each month:
=DATE(2026, SEQUENCE(12), 1). - Every other row of a list:
=INDEX(A2:A21, SEQUENCE(10, 1, 1, 2)).
Questions
How do I make SEQUENCE grow with my data?
Base rows on a count: =SEQUENCE(COUNTA(B2:B1000)). When names are added, the numbering extends automatically.
Can SEQUENCE return dates?
Yes. Use a date as start and days as step, then apply a date format to the spill range.
Can SEQUENCE create decimals?
Yes, a decimal step works: =SEQUENCE(5, 1, 0, 0.25) gives 0, 0.25, 0.5, 0.75, 1.
Google Sheets
SEQUENCE also exists in Google Sheets and works the same way for everyday use, so the examples above work there too.
SEQUENCE in other languages
In a non-English version of Excel the function has a local name. Excel translates formulas automatically when a file is opened in another language.
| Language | Function name |
|---|---|
| Danish | SEKVENS |
| Dutch | REEKS |
| Finnish | JONO |
| German | SEQUENZ |
| Hungarian | SORSZÁMLISTA |
| Italian | SEQUENZA |
| Norwegian (Bokmål) | SEKVENS |
| Polish | SEKWENCJA |
| Portuguese (Brazil) | SEQUÊNCIA |
| Portuguese (Portugal) | SEQUÊNCIA |
| Russian | ПОСЛЕДОВ |
| Spanish | SECUENCIA |
| Swedish | SEKVENS |
| Turkish | SIRALI |
Recipes that use SEQUENCE
- How to count working days between two dates in Excel
- How to create a loan payment schedule in Excel
- How to extract numbers from text in Excel
- How to get the first and last day of the month in Excel
- How to make a Gantt chart with conditional formatting in Excel
- How to reverse a list in Excel
- How to unpivot data in Excel with Power Query