COLUMNS

Rational

Count all columns of a cell range.

Description

The Excel COLUMNS function returns a count of all columns of a cell range or array formula.
For example, =COLUMNS(E10:F100) returns 2 (two columns in the range i.e. E & F).

=COLUMNS (array)

Parameters

array – A reference to a cell range

Return Value

An integer representing a total number of columns.

Key Notes

• The COLUMNS function returns the count of all columns in the specific cell range, unlike COLUMN function that returns column number of the first cell in reference.
• The function accepts an array or array formula, or a reference to a range of cells.

AREAS

The AREAS function returns a number of areas or region. I.e., =AREAS((B2:C4,D8:F9)) returns 2 (number of areas), include extra sets of parentheses.

COLUMN

The COLUMN function returns the column number of a first reference cell. For example, =COLUMN(E10:F10) returns 5 (5th column, a sequence of E in alphabets).

The ADDRESS function returns cell address from given row and column numbers of a worksheet. For example, if you pass ADDRESS(5,6) the function returns \$F\$5.

ROW

The ROW function returns the row number of a reference cell. For example, =ROW(E9:E10) returns 9 (9th from top to bottom, only the first cell).

ROWS

The ROWS function returns the number of rows of a cell range or array formula, =ROWS(E10:F100) returns 91 (91 rows in the cell range i.e. 10 to 100).