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

For example, COLUMN(C5) returns 3, since C is the third column in the spreadsheet.

When no reference is provided, COLUMN returns the column number of the cell which contains the formula.

Excel formula: Last row number in range

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.

COLUMNS Function

The Excel COLUMNS function returns the count of columns in a given reference.

Excel formula: First column number in range

Excel formula: Last column number in range

Excel formula: Get relative row numbers in range

Excel COLUMN function

Excel SEQUENCE function

Excel COLUMNS function