How to Generate a Sequential List of Numbers or Dates in Excel?
Creating a sequence of numbers or dates in Excel can simplify data entry and organization. This guide shows you how to do it easily.
Formula Genius can generate a draft from a plain-English prompt. Supported formulas can be checked with sample cases; review the coverage on the result.
The formula
"Generate a sequential list of numbers from 1 to 100, or generate dates for each day of a month"
=SEQUENCE(100, 1, 1, 1)
This formula generates a vertical array of sequential numbers starting from 1 up to 100.
Step-by-step breakdown
- SEQUENCE is the function used to create a list of sequential numbers.
- The first argument (100) specifies the total number of rows to generate.
- The second argument (1) specifies the number of columns.
- The third argument (1) is the starting number of the sequence.
- The fourth argument (1) indicates the increment between each number.
Edge cases & warnings
- Generating a sequence with a starting number greater than the ending number.
- Using a negative increment which results in an empty array.
- Specifying a zero for the number of rows, which returns an empty array.
- Trying to generate a sequence beyond Excel's row limit.
Examples
"Generate numbers from 1 to 10"
1, 2, 3, 4, 5, 6, 7, 8, 9, 10
"Generate dates for each day of March 2023"
03/01/2023, 03/02/2023, ..., 03/31/2023
Frequently asked questions
Can I change the starting number?
Yes, modify the third argument in the SEQUENCE function.
How do I generate a sequence of dates?
Use the SEQUENCE function with a date increment.
What happens if I exceed the row limit?
Excel will return an error if the sequence exceeds available rows.
Can't find what you need?
Describe a formula in plain English. Formula Genius drafts and explains it, and can check supported formulas on sample cases.