SEQUENCE(rows, columns, start, step)One free generation or explanation per browser, shared across Excel and Google Sheets. Account usage limits apply afterward.
rows:
The number of rows to return in the sequence.
columns:
The number of columns to return in the sequence.
start:
The starting value of the sequence. If omitted, the default is 1.
step:
The increment between each value in the sequence. If omitted, the default is 1.
The SEQUENCE function in Google Sheets is a handy tool that generates a list of sequential numbers in a specified range. This function is particularly useful for creating series of numbers, dates, or even for filling in data automatically without the need for manual entry. It allows users to create a dynamic array of numbers that can be easily adjusted based on the parameters provided.
In simpler terms, SEQUENCE allows you to quickly generate a series of numbers in a spreadsheet, making data entry and organization more efficient.
Imagine you are planning a schedule for a week and want to create a list of dates starting from today:
| Day | Date |
|---|---|
| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 |
You want to fill in the "Date" column with the dates for the upcoming week, starting from today.
To achieve this, you would use the SEQUENCE function as follows:
=SEQUENCE(7, 1, TODAY(), 1)In this formula:
7 is the number of rows to fill (one for each day of the week).1 is the number of columns to fill (we only need one column for the dates).TODAY() is the starting date from which the sequence will begin.1 is the increment, meaning each subsequent date will be one day later.When you apply the SEQUENCE formula to the Dates Table, the output would look like this:
| Day | Date |
|---|---|
| 1 | 2023-10-01 |
| 2 | 2023-10-02 |
| 3 | 2023-10-03 |
| 4 | 2023-10-04 |
| 5 | 2023-10-05 |
| 6 | 2023-10-06 |
| 7 | 2023-10-07 |
This will automatically fill in the dates for the next week, starting from today.
SEQUENCE is beneficial because it simplifies the process of generating lists of numbers or dates in Google Sheets. It eliminates the need for manual entry or dragging down cells to fill in a series. Additionally, because it creates a dynamic array, any changes to the starting date or the number of rows will automatically update the list, enhancing efficiency and accuracy.
SEQUENCE is an essential function for anyone working with data in Google Sheets, providing a powerful way to streamline data entry and organization.
Happy spreadsheeting!
You have a project timeline in a Google Sheet. Use the SEQUENCE formula to automatically generate a series of dates in Column A, starting from today, for the next 30 days. This simplifies planning and tracking daily tasks without manual entry.
Sign up for Better Analyst and get unlimited AI-powered formula generation, explanations, and advanced data analysis.
Browse our complete library of Google Sheets formula guides
Compare your options
Open a neutral research prompt in the AI tool you already use. Compare capabilities, limitations, and fit before you choose.
AI answers can be incomplete. Check source links, current pricing, and product documentation before deciding.