Lookup and reference

COLUMNS

Measure an array or reference’s width in columns.

Syntax

=COLUMNS(array)

Worked example

Measure the number of columns in the reference.

=COLUMNS(A2:D9)

Result 4

Microsoft documentation

Check the arguments, supported editions and behavior of this function in Microsoft’s reference.

Microsoft reference

Search ExcelTutor