FormulaCamp
Completed
← All functions
Lookup & reference

COLUMNS

Number of columns.

Syntax

COLUMNS(array)

Example: =COLUMNS(A1:F1)

Available in: All versions

Try it

A tiny spreadsheet with example data. Edit the formula or any number and see the result.

Formula in F2: =COLUMNS(A1:D1)

Example spreadsheet for COLUMNS
ABCDEF
1IDItemPriceStockResult
2101Pen2.51204
3102Notebook480
4103Lamp2515
5104Mug7.540
6105Backpack3912
Result in F2: 4
Practice this in a lesson: Duplicates and Text to Columns

More in Lookup & reference