Category: FUNCTION | Updated: 2026-11-22

How to Use the SEQUENCE Function in Google Sheets

Syntax

=SEQUENCE(rows, [columns], [start], [step])
  • rows: The number of rows in the generated array.
  • columns (Optional): The number of columns in the generated array. Defaults to 1 if omitted.
  • start (Optional): The first number in the sequence. Defaults to 1 if omitted.
  • step (Optional): The increment between each number. Defaults to 1 if omitted.

Example

When you enter the formula in cell A1, sequential numbers spill automatically into the specified dimensions.

Column A Column B Column C
Row 1 =SEQUENCE(3, 3, 10, 5) (Auto-spilled) (Auto-spilled)
Result (Row 1) 10 15 20
Result (Row 2) 25 30 35
Result (Row 3) 40 45 50

Common Errors and Notes

  • #REF! Error (Spill Range Conflict): The SEQUENCE function automatically spills results across multiple cells. If any cell in the target range already contains a value or formula, a #REF! error occurs, so make sure the spill range is empty.
  • #VALUE! Error: Specifying 0, a negative number, or text for rows or columns results in an error.

Frequently Asked Questions

Q. Can I use SEQUENCE to generate a sequence of dates?

A. Yes. By specifying a date such as "2026/11/01" as the start value and formatting the cells as dates, you can generate consecutive dates.

Q. Can I create a descending (countdown) sequence with SEQUENCE?

A. Yes. By specifying a negative number (e.g., -1) for the fourth argument, step, you can create a sequence that counts down from the starting number.