Steps of five
| A | |
|---|---|
| 1 |
Formula: A1: =SEQUENCE(4,1,10,5)
Result: Spills down: 10, 15, 20, 25
Four numbers start at 10 and rise by 5 each.
SEQUENCE fills a block of cells from one formula in Google Sheets with no ARRAYFORMULA wrapper.
SEQUENCE(rows, [columns], [start], [step])It is a tidy way to number rows: SEQUENCE(ROWS(A2:A20)) matches the length of a data range.
For a fuller explanation of the arguments and common errors, see the SEQUENCE Excel guide.
| A | |
|---|---|
| 1 |
Formula: A1: =SEQUENCE(4,1,10,5)
Result: Spills down: 10, 15, 20, 25
Four numbers start at 10 and rise by 5 each.
| A | |
|---|---|
| 1 |
Formula: A1: =SUM(SEQUENCE(10))
Result: 55
The default start and step give 1 to 10, which add up to 55.
| A | |
|---|---|
| 1 |
Formula: A1: =INDEX(SEQUENCE(3,4),2,3)
Result: 7
A 3-by-4 grid counts across each row first, so row 2, column 3 holds 7.
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 |
Google Sheets is used here only as a descriptive product name. FormulaCamp is not affiliated with Google.
Enter — commit · F2 — edit · F4 — $ in a reference · Ctrl+C/Ctrl+V — copy and paste · Ctrl+Z — undo
Esc or F6 — leave the sheet for the «Check» button · Shift+Tab in the first cell — back to the page