COLUMNS function

Category: Lookup and reference
Introduced: Excel 2003

Summary

Returns the number of columns in a reference

Syntax

COLUMNS(array) The COLUMNS function syntax has the following argument:
• Array Required. An array or array formula, or a reference to a range of cells for which you want the number of columns.

Example

=COLUMNS(C1:E4)
=COLUMNS({1,2,3;4,5,6})

Microsoft Support Page

https://support.microsoft.com/en-us/office/columns-function-4e8e7b4e-e603-43e8-b177-956088fa48ca

Back to Functions