SEQUENCE Function in Microsoft Excel: Syntax, Examples & Compatibility
Learn how to generate an automatically expanding numbered sequence for rows, dates or IDs in Microsoft Excel. Includes syntax, two verified-by-reasoning results, troubleshooting and portability notes.
Verification status: See the evidence and test scope described in this guide. How formula examples are checked
Quick answer: generate an automatically expanding numbered sequence for rows, dates or IDs in Microsoft Excel. The reproducible examples below use explicit values so the formula’s meaning is testable without a large workbook.
Evidence: The function name and syntax are documented in the linked vendor function reference. Expected outputs were independently reasoned or checked outside the application. These are not native Microsoft Excel test results. A guide being published here does not certify every software release or file-import scenario.
Availability and version history
- Introduced: Documented by Excel 2021; the original Microsoft 365 rollout date is not established. Version marker.
- Availability: Official help lists Excel for Microsoft 365, Excel for Microsoft 365 for Mac, Excel 2024, Excel 2024 for Mac, Excel 2021, Excel 2021 for Mac, Excel for iPad, Excel for iPhone, Excel for Android tablets, Excel for Android phones.
- Checked: October 14, 2026; official SEQUENCE reference. Documentation check, not a new native test; existing example-verification notes retain their scope.
Syntax and arguments
=SEQUENCE(rows, [columns], [start], [step])
rows sets the height. Optional columns, start, and step control width, first value and increment, defaulting to 1. Although the syntax table labels rows required, Microsoft explicitly permits omitting it when at least one other argument is supplied.
Best use case: Generate an automatically expanding numbered sequence for rows, dates or IDs.
Set up the example sheet
Start in an empty portion of a sheet and leave the cells below and to the right empty, because the sequence returns an array rather than one number.
Enter the formula in an unused cell. For a formula returning several values, leave an unobstructed area where those values can expand. These formulas use comma argument separators in a typical English-language locale; commas or semicolons inside quoted text are data, not argument separators. Adapt the separator if your regional settings require it.
Worked example 1: SEQUENCE with known input
=SEQUENCE(3,2,10,5)
Expected output: 3 rows × 2 columns: 10, 15 / 20, 25 / 30, 35.
Six values begin at 10 and increase by five in row-major order.
Worked example 2: a second SEQUENCE case
=SEQUENCE(1,4)
Expected output: one row containing 1, 2, 3, 4.
The omitted starting value and step use 1.
Compare both results before replacing literal values or short sample ranges with your own workbook data. For a spilling formula, compare every output cell, not only the top-left result.
Omitting rows and generating a descending sequence
This formula leaves the first position empty and supplies the number of columns:
=SEQUENCE(,4)
Expected output is one row containing 1, 2, 3, 4. Keep the leading comma: the supplied 4 belongs to columns, not rows. This is the omission exception documented in Microsoft’s SEQUENCE help.
For a descending five-row sequence:
=SEQUENCE(5,1,10,-2)
Expected vertical values are 10, 8, 6, 4, 2. The step is applied between consecutive values; it is not the number of values returned. Five rows and one column still produce five cells.
The worked values and shapes are independently calculated. A linked dynamic-array formula also has a workbook-availability restriction: Microsoft documents #REF! on refresh when its source workbook is closed.
Practical advice and troubleshooting
When this formula helps: To make rolling test data, combine SEQUENCE with a date serial or simple arithmetic, rather than manually copying a series.
Important edge case: A blocked spill area causes an array expansion error. Very large requested dimensions can consume substantial sheet space.
If the result differs, first verify the text-versus-number types of the input cells, the argument separators for your locale, and the range size. For dynamic arrays, inspect occupied cells in the output area. An error that looks like a missing function may reflect a software version rather than incorrect data.
Compatibility and version considerations
SEQUENCE is a dynamic-array function in modern Excel, and is also listed by Google Sheets. It is not available in every older Excel release.
Microsoft documents SEQUENCE for Excel 365/2021/2024; Google Sheets supports SEQUENCE in its current function catalogue.
Function availability and parameter behavior must be judged for the specific application and release; a function documented in one spreadsheet does not automatically work in another.
Related guides and official documentation
-
Microsoft Excel documentation for SEQUENCE — function syntax and current vendor information.
Editorial verification: Vendor catalogue referenced as of 2026-10-12. The two example outputs are independently reasoned; no native application run, screenshot, or version-specific output is claimed. Review the editorial testing standards if you require stronger proof before importing a workbook.