Excel tutorial
/

Functions

Advanced

Excel SEQUENCE function: generate numbers, dates and grids automatically

Use Excel SEQUENCE to create row numbers, stepped series and dates in one formula: rows, columns, start, step, auto-numbering and common traps.

A list needs a “No.” column, a loan schedule needs months 1 to 36, a course needs weekly lesson dates… Usually you drag the fill handle — and when the list grows or shrinks, you drag again.

SEQUENCE builds such a series with one formula: how many rows, how many columns, where to start and what step to use. The result spills into neighbouring cells and rebuilds instantly when an argument changes.

The function itself is simple, but combined with others it becomes powerful: auto-numbering, calendars, top-N reports. Available only in Excel 2021 and Microsoft 365.

Книга1 - Excel
—☐✕
A2fx=ПОСЛЕДОВ(5)
ABCD
1No.EmployeeDepartment
21AzizSales
32DilnozaAccounting
43JavohirSales
54MadinaWarehouse
65SardorLogistics
7
ГотовоСреднее: 3Количество: 5Сумма: 15
One formula in A2 — numbers 1 to 5 in A2:A6. The other cells hold no formula; they are spilled values

Syntax

=ПОСЛЕДОВ(rows; [columns]; [start]; [step])

  • rows — how many rows (required).
  • columns — how many columns. Omitted means 1.
  • start — the first number. Omitted means 1.
  • step — how much each next number grows. Omitted means 1. Negative counts down; decimals work too (0.5).

Examples: =ПОСЛЕДОВ(10) — 1…10 downwards; =ПОСЛЕДОВ(1;12) — 1…12 to the right; =ПОСЛЕДОВ(5;1;100;-10) — 100, 90, 80, 70, 60.

Adding row numbers

1

Select the cell where the numbers start (A2). A3:A6 below must be empty — the result spills into them.

2

Click Формулы → Математические → SEQUENCE.

Книга1 - Excel
—☐✕
ФайлГлавнаяВставкаРазметка страницыФормулыДанныеРецензированиеВидСправка
Вставить функциюАвтосуммаФинансовыеЛогическиеТекстовыеДата и времяСсылки и массивыМатематические
Библиотека функций
Диспетчер имён
Определённые имена
A2fx
ABCD
1No.Employee
2Aziz
3Dilnoza
4Javohir
5
Готово

3

Enter 5 in Rows, leave the rest empty and click OK. Or simply type =ПОСЛЕДОВ(5) in the cell and press Enter.

Книга1 - Excel
—☐✕
A2fx=ПОСЛЕДОВ(5)
ABCD
1No.Employee
21Aziz
32Dilnoza
43Javohir
54Madina
65Sardor
7
Готово

4

The result spilled into A2:A6. Select A4 and the formula bar shows the formula greyed out — it’s a spilled value and can’t be edited on its own.

Книга1 - Excel
—☐✕
A1fx=ПОСЛЕДОВ(3;4)
ABCDE
112341
252678
39101112
4
5
ГотовоСреднее: 6,5Количество: 12Сумма: 78
Example 1: 3 rows × 4 columns. Note the order: across the row first (1–4), then the next row (5–8)
Книга1 - Excel
—☐✕
B2fx=ПОСЛЕДОВ(6;1;500000;100000)
ABCD
1MonthSave
21500 000
32600 000
43700 000
54800 000
65900 000
761 000 000
8Total4 500 000
9
ГотовоСреднее: 750000Количество: 6Сумма: 4500000
Example 2: a savings plan with start and step — 500,000 to begin with and 100,000 more each month. The SUM in B8 adds the series without ever putting it on the sheet
Книга1 - Excel
—☐✕
B4fx=ПОСЛЕДОВ(5;1;B1;7)
ABCD
1Start:03.02.2025
2
3LessonDate
4103.02.2025
5210.02.2025
6317.02.2025
7424.02.2025
8503.03.2025
9
ГотовоСреднее: 45705Количество: 5Сумма: 228525
Example 3: a date is a number, so start = B1 and step = 7 gives a Monday lesson schedule. Change B1 and the whole schedule moves

Pro level: self-extending numbering and more tricks

  • Automatic No. =ПОСЛЕДОВ(СЧЁТЗ(B2:B100)) — as many numbers as there are names in column B. Add a name and a number appears; delete one and it disappears. Sorting or deleting rows never makes the numbers jump.
  • Month starts. =ДАТАМЕС(ДАТА(2025;1;1);ПОСЛЕДОВ(12;1;0)) — the 12 months of 2025; for a table header use =ДАТАМЕС(ДАТА(2025;1;1);ПОСЛЕДОВ(1;12;0)).
  • A calendar. =ПОСЛЕДОВ(6;7;B1-ДЕНЬНЕД(B1;2)+1) — a 6×7 calendar starting from the Monday of the week containing the date in B1 (with a date format).
  • Every n-th row. =ИНДЕКС(A2:A100;ПОСЛЕДОВ(10;1;1;2)) — values from rows 1, 3, 5…
  • Top N. =ИНДЕКС(СОРТ(A2:B100;2;-1);ПОСЛЕДОВ(5);{1;2}) — the best five.
  • Test data. Together with =RANDARRAY(10;1;100000;900000;ИСТИНА) you get a table of random amounts for practice.
Книга1 - Excel
—☐✕
A2fx=ПОСЛЕДОВ(СЧЁТЗ(B2:B7))
ABCD
1No.Customer
21Aziz
32Dilnoza
43Javohir
54Madina
61
7
8
ГотовоСреднее: 2,5Количество: 4Сумма: 10
The count of numbers follows the count of names: type a new customer in B6 and 5 appears in A6 by itself

Try it in the simulator

Type =ПОСЛЕДОВ(5) in A2 to number the employees. Then type =ПОСЛЕДОВ(3;3;10;10) in D2 and see in which order the result fills (10, 20, 30 in the first row).

Книга1 - Excel
—☐✕
Буфер обмена
Шрифт
Выравнивание
Число
Стили
Ячейки
Редактирование
✕✓fx
ABCDEFGHIJKLMNOPQRSTUVWX
1No.EmployeeGrid
2Aziz
3Dilnoza
4Javohir
5Madina
6Sardor
7
8
9
10
Лист1
Готово

Has ExcelLab been useful?

Support the project and help us release new lessons and exercises.

Support us
Previous

139 / 154