deepcalc
DocsSEQUENCE

SEQUENCE

Generates a sequence of numbers as an array.

  • Excel: Verified match
  • Google Sheets: Verified match
  • Returns: Array

Examples

=SEQUENCE(5)
Result 1
=SEQUENCE(2, 3, 10, 10)
Result 10

Syntax

SEQUENCE(rows, [columns], [start], [step])
rows
number required
columns
number optional defaults to 1
start
number optional defaults to 1
step
number optional defaults to 1

Errors

#ERROR!
=SEQUENCE(1000,1001)
#CALC!
=SEQUENCE(0)
#VALUE!
=SEQUENCE(1,16385)