Skip to main content
← All functions

SEQUENCE function

Generates a list of sequential numbers in an array, such as 1, 2, 3, 4

Syntax

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

Square brackets indicate optional arguments.

Arguments

ArgumentRequiredMeaning
rowsYesThe number of rows to return.4
columnsNoThe number of columns to return.5
startNoThe first number in the sequence.1
stepNoThe amount to increment each subsequent value in the array.1

Try SEQUENCE

Build a sequence across rows and columns

=SEQUENCE(3,2,10,5)

Build a sequence across rows and columns. The result is checked against a separately authored expected value for the supplied table. You can edit the data to explore the rule.

Inspect the current formula

Read its written arguments or observe actual operation values in a separate local calculation. This action neither applies a draft nor grades an answer.

Read the formula, one argument at a time

Explore the written function calls and their inputs. The calculation result belongs to the complete formula.

SEQUENCE · top-level call

=SEQUENCE(3,2,10,5)

1 / 4 · rows

The number of rows to return.

SEQUENCE reference ↗

Follow the cells behind a result

Read explicit local references and helper formulas using a separate calculation. Your draft stays in this field; the worksheet and practice checks do not change.

The worksheet runs locally. Published checks apply to the supplied example only. Native Excel and Google Sheets compatibility remain unverified.

Practice a complete task

Reference and compatibility

Univer 1.0.4 / Apache-2.0. Calculation checks cover the supplied examples only. The browser worksheet does not implement every Excel feature, external service or connected data type.