Skip to main content
Dynamic ArraysAdvanced LevelAdvanced Excel (Dynamic Arrays & Automation)

How to Use SEQUENCE in Excel

Generates a series of numbers in one formula — build calendars, month numbers and test data instantly.

Direct Answer (Quick Summary)

What is SEQUENCE in Microsoft Excel?

SEQUENCE produces a rectangular array of numbers starting wherever you like and stepping by any amount. It replaces dragging a fill handle down thousands of rows. Combined with DATE and EDATE it becomes a date generator; combined with RANDARRAY it builds sample datasets.

Pro Tip: SEQUENCE can produce a full calendar: =SEQUENCE(6,7,DATE(2026,11,1)-WEEKDAY(DATE(2026,11,1),2)+1) lays out six weeks starting on a Monday.

Formula Syntax

=SEQUENCE(rows, columns, start, step)

Arguments Breakdown

ArgumentRequirementPurpose & Details
rowsRequiredHow many rows the sequence should span.
columnsOptionalHow many columns. Defaults to 1.
startOptionalThe first number. Defaults to 1.
stepOptionalThe increment between values. Defaults to 1.

When to Use SEQUENCE (Real-World Business Scenarios)

  • 1

    Generating month numbers 1 to 12 for a report skeleton.

  • 2

    Building a list of dates with =SEQUENCE(30,1,DATE(2026,11,1),1).

  • 3

    Creating numbered rows for a helper column without dragging.

Step-by-Step Practical Business Example

Suppose you have the following dataset in Excel cells A1:D4:

Month NoMonth NamePeriod Start
1Jan2026-01-01
2Feb2026-02-01
3Mar2026-03-01
Applied Formula:Result: Spills Jan through Dec in 12 rows
=TEXT(EDATE(DATE(2026,1,1),SEQUENCE(12)-1),"mmm")

How it works: SEQUENCE(12) generates 1 to 12, EDATE shifts the base date by that many months, and TEXT formats each result as a short month name.

Common Errors & How to Fix Them

#SPILL!

Why it happens: The output area is blocked by existing values.

Fix: Clear the cells below the formula, or reduce the rows argument.

#VALUE!

Why it happens: rows or columns was set to 0 or a negative number.

Fix: Both dimensions must be at least 1.

Interactive Formula Lab

Try SEQUENCE Live in Your Browser

No need to launch desktop Excel. Practice formulas with real-time feedback in our HyperFormula sandbox.

Open Practice Lab

Frequently Asked Questions (SEQUENCE)

What does the SEQUENCE formula do in Excel?

SEQUENCE produces a rectangular array of numbers starting wherever you like and stepping by any amount. It replaces dragging a fill handle down thousands of rows. Combined with DATE and EDATE it becomes a date generator; combined with RANDARRAY it builds sample datasets.

What is the syntax for SEQUENCE?
=SEQUENCE(rows, columns, start, step)
What are common mistakes when using SEQUENCE?

#SPILL!: The output area is blocked by existing values. (Clear the cells below the formula, or reduce the rows argument.) #VALUE!: rows or columns was set to 0 or a negative number. (Both dimensions must be at least 1.)

Keep building your formula toolkit with these dynamic arrays functions.

Browse all 41 Excel formulas
Ready to Master Microsoft Excel?

Master SEQUENCE in Advanced Excel

Learn SEQUENCE along with our formula library, practice files, and verifiable certificates in our complete curriculum.

Strictly necessary