Skip to main content
SheetHub Docs
Google Sheets3 min read

Google Sheets SEQUENCE: Generate Numbers, Dates & Grids

Generate dynamic number sequences, custom date ranges, and 2D matrix grids in Google Sheets using the SEQUENCE function.

SheetHub3 min
Manually dragging the fill handle to create sequential numbers, monthly dates, or test grids is tedious and prone to accidental breaks when rows are inserted or deleted. Google Sheets SEQUENCE provides a dynamic formula solution, generating entire arrays of sequential numbers, dates, times, and matrix grids instantly from a single cell. This tutorial covers how to use =SEQUENCE() in Google Sheets, build auto-incrementing serial numbers, create custom date series, and avoid spill errors.

What is the SEQUENCE function and how does it work?

SEQUENCE is a dynamic array function that outputs a grid of sequential numbers based on specified dimensions, starting values, and step intervals.

Syntax

=SEQUENCE(rows, [columns], [start], [step])
  • rows: The number of rows to generate.
  • columns (optional): The number of columns to generate (default is 1).
  • start (optional): The starting number (default is 1).
  • step (optional): The increment between each number (default is 1).
For full array capabilities in Google Sheets, see our complete guide on Google Sheets dynamic ARRAYFORMULA patterns.

Pattern 1: Automatic row numbering that updates dynamically

Instead of hardcoding row numbers, generate an index that automatically expands with your data:
=SEQUENCE(COUNTA(B2:B))
If you add 20 new rows of customer names in Column B, the sequence in Column A extends automatically without manual dragging.

Pattern 2: Generate a list of dates (daily, weekly, or monthly)

In Google Sheets, dates are stored internally as serial numbers. You can use SEQUENCE to build entire project schedules: To generate 30 consecutive days starting from September 1, 2026:
=SEQUENCE(30, 1, DATE(2026, 9, 1), 1)
(Format the output cells as Format > Number > Date). To generate weekly meeting dates (stepping by 7 days):
=SEQUENCE(12, 1, DATE(2026, 9, 1), 7)
For complex dashboards that combine dynamic date grids with multi-criteria filters, see our Google Sheets filter optional criteria guide.

Pattern 3: Create a 2D matrix or multiplication table

To generate a 5-row by 5-column grid starting at 10 and counting by 10s:
=SEQUENCE(5, 5, 10, 10)
This immediately creates a 5x5 grid from 10 to 250. To reuse sequence indices inside advanced logic without cluttering your spreadsheet, combine your steps with Google Sheets LET formulas for clean, self-contained calculations.

Troubleshooting and common errors

Error / SymptomRoot CauseSolution
#REF! (Array not expanded)Existing content blocks the cells where SEQUENCE needs to spill.Delete all text or numbers in the target output area.
Numbers appear as integers instead of datesCells are formatted as standard numbers.Highlight the range and apply Format > Number > Date.
Negative sequence neededstep was left as default 1.Use negative step (e.g., =SEQUENCE(10, 1, 100, -10) to count down).

Summary

The SEQUENCE function eliminates manual number dragging in Google Sheets. By generating dynamic single-column indices, custom date calendars, and multi-column grids from a single formula, your spreadsheets become resilient and automated.

Recommended Next Reading

All Articles

Share this tutorial

Discussion & Community

Share questions, tips, or edge-cases about this spreadsheet formula.

Recommended Next Reading

All Articles