SEQUENCE then builds an array of numbers, starting with the number 1.

For example, ROW(C5) returns 5, since C5 is the fifth row in the spreadsheet.

When no reference is provided, ROW returns the row number of the cell which contains the formula.

Excel formula: Automatic row numbers

SEQUENCE Function

The Excel SEQUENCE function generates a list of sequential numbers in an array.

The array can be one dimensional, or two-dimensional, determined byrowsandcolumnsarguments.

ROWS Function

The Excel ROWS function returns the count of rows in a given reference.

Excel formula: Last row number in range

Excel formula: First column number in range

Excel formula: Last column number in range

Excel formula: Get relative column numbers in range

Excel formula: Get nth match with INDEX / MATCH

Excel formula: Create array of numbers

Excel formula: INDEX and MATCH all partial matches

Excel ROW function

Excel SEQUENCE function

Excel ROWS function