toolrota

Excel SEQUENCE function: automatic number series, date lists and calendars

You can generate numbers from 1 to 100 or every day of a month with one formula, without dragging. We explain SEQUENCE with examples.

Serkan Akyürek··3 min read
Excel SEQUENCE function: automatic number series, date lists and calendars – Excel

You don't need to drag a cell down to number a list from 1 to 500 or to type every date of a month. The SEQUENCE function generates a series of numbers of any size with one formula, and the result spills into neighboring cells on its own. It is available in Microsoft 365 and Excel 2021 and later.

Syntax

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

ArgumentMeaningDefault
rowsHow many rows to produceRequired
columnsHow many columns to produce1
startThe first number1
stepThe increase per number1

Practical examples

  • Row numbers: SEQUENCE(100) gives a vertical list from 1 to 100.
  • Even numbers: SEQUENCE(10,1,2,2) gives 2, 4, 6 ... 20.
  • Countdown: set the step to -1 for a decreasing series.
  • Numbers as long as a table: SEQUENCE(ROWS(Table1)) gives numbers that grow with the table. See our auto-numbering guide.
  • Date list: with a start date, SEQUENCE(30,1,date,1) gives a month of days; format the cells as dates.
A simple monthly calendar with SEQUENCE
  1. 1

    Type the first day of the month in a cell

  2. 2

    Work out the Monday the calendar should start on

  3. 3

    Build a 6x7 date grid with SEQUENCE(6,7,start,1)

  4. 4

    Format the cells to show only the day number

  5. 5

    Fade days from other months with conditional formatting

With other functions

Used withPurpose
INDEXPull values from a list at set intervals
TEXTProduce a list of month names
RANDBETWEENRandom ordering and sampling
FILTER and SORTBuild dynamic reports

For the logic of dynamic arrays see our dynamic arrays guide, and for color rules our conditional formatting guide.

Common mistakes

  1. A target area that isn't empty. The formula returns a #SPILL! error.
  2. Not formatting a date series. The result shows as serial numbers.
  3. Trying to edit one cell in the result area. A spilled array behaves as one block.
  4. Using it in older Excel versions. The function isn't recognized.

Frequently asked questions

How do I turn the result into fixed values? Copy the area and use Paste Special to paste values only.

Can I produce a horizontal series? Yes; put 1 for rows and the number you want for columns.

Summary

SEQUENCE reduces numbering and date work done by dragging to a single formula. Combine it with other functions for calendars and dynamic reports.

Share
Published:
Author
Serkan Akyürek

Serkan Akyürek is the founder and author of toolrota; he writes step-by-step guides on Excel, AI, the cloud, personal finance and digital security.