WorkbookLogic
FunctionDynamic arraysadvancedSEQUENCEIFAND

SEQUENCE Function

By WorkbookLogic

SEQUENCE generates an ordered series of numbers as a dynamic array. It replaces manually filled counters and supports configurable dimensions, starting values, and steps.

ExcelLast reviewed Sep 11, 2026
sequence-function-v1.0.0.xlsx
Excel SEQUENCE Function
SEQUENCE generates a dynamic numeric list or grid from editable dimensions and steps.
Parameters, editableDynamic results
ParameterValueExampleFormula syntaxOutput 1Output 2
Rows5Basic list=SEQUENCE(B12)1
Columns22
Start103
Step54
Negative step-25
2-column series=SEQUENCE(3,B13,B14,B15)1015
2025
3035
Descending=SEQUENCE(5,1,B14,B16)10
8
6
4
2
Reliability checks
Basic sequence runs from one through fiveOK
Descending sequence ends at twoOK

Overview

SEQUENCE creates a numeric series that spills into the requested rows and columns.

Quick reference

Syntax: =SEQUENCE(rows, [columns], [start], [step])

Returns: A spilling array containing an arithmetic sequence. (dynamic array)

Arguments:

  • rows (required) — Number of rows to return.
  • columns (optional) — Number of columns to return.
  • start (optional) — First number in the series; defaults to 1.
  • step (optional) — Increment between values; defaults to 1.

Only rows is required. columns, start, and step are optional; omitted dimensions produce one column, while omitted start and step values both default to 1.

Common uses

  • Generating period, month, or scenario indices
  • Creating pagination or ranking helpers
  • Supplying arrays to date and lookup formulas

When not to use it

Use stored source data when the identifiers or periods must remain fixed after recalculation. SEQUENCE is designed to regenerate a mathematical series, not preserve manually assigned records.

Calculations

Excel creates values row by row from start, adding step for every new element. The result spills into a range whose size is controlled by rows and columns. Negative steps produce descending series.

Function behavior

Situation

Behavior

Omitted optional arguments

Columns, start, and step default to 1.

Negative step

Values descend.

Blocked output

Excel returns #SPILL!.

Invalid dimensions

Zero or negative dimensions produce an error.

Common errors

Confusing dimensions with ending value

What happens: rows controls how many values appear, not the final number.
Better approach: Calculate the required row count from the desired start, end, and step.

Blocking the spill range

What happens: Existing content causes #SPILL!.
Better approach: Keep the destination area empty.

Example

Example 1 — Basic list

=SEQUENCE(B12)

With B12 equal to 5, the workbook returns 1 through 5 vertically.

Example 2 — Two-column grid

=SEQUENCE(3,B13,B14,B15)

Using 2 columns, start 10, and step 5 returns 10, 15, 20, 25, 30, and 35.

Example 3 — Descending sequence

=SEQUENCE(5,1,B14,B16)

With a start of 10 and step of -2, the result is 10, 8, 6, 4, 2.

Example workbook

The workbook demonstrates a basic vertical list, a two-column grid, a negative step, and validation checks.

Key takeaway

SEQUENCE is the dependable way to create formula-driven counters and numeric grids without fill operations.