ReferenceFunctionsLookup Functions
SEQUENCE
SEQUENCE: Generates a sequential numeric array with configurable size, start, and step.
Summary
SEQUENCE fills values row-by-row and returns a dynamic spill.
Remarks
- Defaults:
columns=1,start=1,step=1. rowsandcolumnsmust be positive; otherwise returns#VALUE!.- Values are emitted as integers when integral, otherwise as floating-point numbers.
- Result spills to the requested dimensions.
Examples
Simple vertical sequence
Grid
| Cell | Value | |
|---|---|---|
| No inputs on Sheet1. | ||
Formula
=
Result
Not evaluated yet.
Expected
[[1],[2],[3],[4],[5]]
2x3 sequence with custom start and step
Grid
| Cell | Value | |
|---|---|---|
| No inputs on Sheet1. | ||
Formula
=
Result
Not evaluated yet.
Expected
[[10,15,20],[25,30,35]]
Related functions
FAQ
What input values are invalid for SEQUENCE?
rows and columns must be positive numbers; zero or negative sizes return #VALUE!.
Does SEQUENCE fill by rows or by columns first?
SEQUENCE fills row-by-row across columns, then continues on the next row using the same step increment.
Runtime metadata
Category
Lookup
Signature
SEQUENCE(arg1: Number, arg2?: Number, arg3?: Number, arg4?…: Number)Arity
min 1, max variadic
Arguments
arg1Number · Scalar · coercion NumberLenientText
arg2optionaldefaultNumber · Scalar · coercion NumberLenientText
arg3optionaldefaultNumber · Scalar · coercion NumberLenientText
arg4optionaldefaultNumber · Scalar · coercion NumberLenientText
Caps
PURE
Source