Google Sheets SEQUENCE function

Generates a list of consecutive numbers that spills downward. In Spanish Sheets it is called SECUENCIA.

Syntax

English Sheets

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

Spanish Sheets (Mexico locale)

=SECUENCIA(filas, [columnas], [inicio], [incremento])

Spanish Sheets (Spain, Latin America)

=SECUENCIA(filas; [columnas]; [inicio]; [incremento])

ArgumentWhat it is
rowsHow many rows.
columnsoptionalHow many columns; 1 by default.
startoptionalThe first number; 1 by default.
stepoptionalThe step; 1 by default.

Example

SEQUENCE(rows) generates the numbers 1, 2, 3… downward. Combined with COUNTA, it numbers a list that grows by itself: add a name and its number appears.

=SEQUENCE(COUNTA(B2:B9))

Common mistake

With COUNTA as the row count, the numbering grows by itself as you add data.

About Ads

This site uses Google AdSense to display ads. These ads help us keep WebHerramientas completely free. Ads are managed by Google and meet strict security and privacy standards.

Advertising
Loading ad...

Ads help us keep WebHerramientas free for everyone

Practice SEQUENCE

Type the formula in the sheet and check it instantly. Spanish or English function names both work. See all lessons

SEQUENCE

SEQUENCE(rows) generates the numbers 1, 2, 3… downward. Combined with COUNTA, it numbers a list that grows by itself: add a name and its number appears.

Example=SEQUENCE(COUNTA(B2:B9))SECUENCIA = SEQUENCECONTARA = COUNTA

In A2, number the salespeople from 1 up with a single formula that counts how many there are in B2:B9.

A2
ABCD
1No.SalespersonSales
2Carmen48200
3Jorge35900
4Lucía61750
5Andrés29400
6Paola52300
7Ricardo44100
8Elena38650
9Mateo57900
10

The dotted outline shows how far the result should spill.

Frequently asked questions

What is SEQUENCE called in Spanish?
In Spanish Google Sheets it is SECUENCIA. The formula =SEQUENCE(COUNTA(B2:B9)) is written =SECUENCIA(CONTARA(B2:B9)) (or with commas under a Mexico locale).
Why does SEQUENCE use semicolons in some spreadsheets?
It depends on each spreadsheet's locale, under File > Settings. Where the comma is the decimal mark (Spain, much of South America), arguments are separated by semicolons. Mexico and United States locales use commas.
What is the most common SEQUENCE mistake?
With COUNTA as the row count, the numbering grows by itself as you add data.