Row IDs
=SEQUENCE(COUNTA(A2:A)) assigns 1 through n beside a variable-length list in column A.
SEQUENCE returns a grid of sequential numbers. You set how many rows and columns, the starting value, and the step between values. It replaces manual 1, 2, 3 fill patterns and pairs well with MAP, LAMBDA, and date math for generated row labels.
Use SEQUENCE for row numbers, week indexes, amortization period counters, or any template that needs a fixed count of ascending values.
Skip SEQUENCE when values are irregular or come from another table. Reference the real source column instead.
Choose row count as the first argument, for example 12 for twelve months.
Set column count to 1 for a single column list or more for a matrix.
Pass start value and step, such as SEQUENCE(10, 1, 100, 10) for 100, 110, ...
Place the formula where the spill will not overwrite data.
Combine with EDATE or DATE to turn index columns into month series.
Use MAKEARRAY when you need custom logic per cell instead of simple increments.
=SEQUENCE(COUNTA(A2:A)) assigns 1 through n beside a variable-length list in column A.
=SEQUENCE(11, 1, 0, 0.1) builds 0, 0.1, 0.2, through 1 for a sensitivity table header.
=EDATE(DATE(2024,1,1), SEQUENCE(12)-1) generates twelve month-start dates in one column.
Build this without starting from a blank cell
Use a Better Sheets tool for SEQUENCE, then watch a walkthrough when you want the full pattern.
Watch how SEQUENCE works
Guides that explain SEQUENCE in more depth.
Master Google Sheets from simple text input to complex operations with our FREE tutorials, templates, and tools! Unleash the full power of spreadsheets now!
Read post →Discover how to figure out the frequency of numbers, product IDs, text, emails and much more! Essential tips and tricks revealed.
Read post →Five increasingly difficult ways of explaining spreadsheets in Google Sheets: The basics of Google Sheets text Menu items in Google Sheets Math inside Google Sheets Using Formulas in Google Sheets Apps Script in Google Sheets
Read post →SORTN sorts a range and returns only the first N rows. You choose how many rows, which column drives the sort, and ascending or descending order. Leaderboards and best-seller reports use SORTN instead of manual sorting that goes stale.
Read guide →MAKEARRAY creates a grid of specified height and width, computing each cell with a LAMBDA that receives row and column indexes. It builds lookup tables, sensitivity matrices, and coordinate-driven templates without manual fill.
Read guide →LAMBDA defines an anonymous function inside a formula. You name parameters, write the calculation, then pass arguments when you call it. Combined with MAP, BYROW, or a named LAMBDA in the Name manager, it replaces fragile copy-paste logic across big tables.
Read guide →MAP walks aligned arrays element by element and applies a LAMBDA to each position. Pass one array for unary transforms or several arrays for element-wise combinations. It is the modern replacement for many ARRAYFORMULA column operations.
Read guide →Done reading about SEQUENCE?
Membership unlocks 636+ tutorials, unlimited generators, and every template. Practical lessons. Zero fluff.
Need this once
Jump to a free tool or a single tutorial for this topic.
Learning Sheets for real
Unlock the full library, generators, and templates with membership.