SheetRocks
Documentation/Formulas/SEQUENCE

SEQUENCE

Returns the list of generated sequential numbers in an array.

Syntax

SEQUENCE(rows, [cols], [start], [step])

Arguments

Argument Description Required
rows The number of rows to return. Required
cols Number of columns to return. Defaults to 1. Optional
start This is the starting value of the sequential numbers. Defaults to 1. Optional
step The step increment between numbers. Defaults to 1. Optional

Examples

Create sequence 1 to 5

=SEQUENCE(5)
Result ⇒ Array: [[1], [2], [3], [4], [5]]

Create 2x3 sequence starting at 10

=SEQUENCE(2, 3, 10)
Result ⇒ Array: [[10,11,12], [13,14,15]]

Sequence with step of 2

=SEQUENCE(4, 1, 1, 2)
Result ⇒ Array: [[1], [3], [5], [7]]

Related Functions

Other Data functions:


← Back to Formula Reference