Dynamic arrays
SEQUENCE
A sequence of numbers.
Syntax
SEQUENCE(rows, [columns], [start], [step])Example: =SEQUENCE(10)
Available in: Excel 2021+, Microsoft 365
Try it
A tiny spreadsheet with example data. Edit the formula or any number and see the result.
Formula in F2: =SEQUENCE(4,3)
| A | B | C | D | E | F | G | H | |
|---|---|---|---|---|---|---|---|---|
| 1 | Region | Product | Units | Price | Result | |||
| 2 | East | Pen | 120 | 2.5 | 1 | 2 | 3 | |
| 3 | West | Pen | 80 | 2.5 | 4 | 5 | 6 | |
| 4 | East | Book | 45 | 12 | 7 | 8 | 9 | |
| 5 | North | Book | 60 | 12 | 10 | 11 | 12 | |
| 6 | West | Lamp | 30 | 25 | ||||
| 7 | East | Lamp | 15 | 25 |
Result in F2: 1