The Excel SEQUENCE function generates a list of sequential numbers that spills into a row, a column, or a grid — with control over the count, start value, and step.
Syntax
| Argument | Description | |
|---|---|---|
rows | Required | The number of rows in the result. |
columns | Optional | The number of columns (default 1). |
start | Optional | The first number in the sequence (default 1). |
step | Optional | The amount to increment each value by (default 1). |
How to use it
SEQUENCE returns a dynamic array of evenly spaced numbers. With just one argument it makes a vertical list; add columns to make a grid.
It shines for building dates, numbered lists, and inputs to other dynamic-array functions. Combine it with LAMBDA, BYROW, or MMULT to drive calculations without helper columns.
Excel 365 only. SEQUENCE is a dynamic-array function and spills automatically. Make sure the cells below and to the right are empty, or you will get a #SPILL! error.
Try it: interactive demo
Pick a SEQUENCE example to see the formula and its result.
Practice workbook
Frequently asked questions
What do the four arguments of SEQUENCE do?
rows sets how many rows, columns how many columns (default 1), start the first value (default 1), and step the increment (default 1). So =SEQUENCE(4,1,10,5) gives {10;15;20;25}.How do I make a horizontal sequence?
=SEQUENCE(1,5) spills 1 through 5 across a row.Why do I get a #SPILL! error?
Which Excel versions support SEQUENCE?
Master functions like this in one day
This page covers one function. Our Excel Formulas and Functions class covers the 30 that matter most — live, hands-on, taught by professionals in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.
See the Formulas & Functions Class