Exceljet

Quick, clean, and to the point

Excel COLUMNS Function

Excel COLUMNS function
Summary 

The Excel COLUMNS function returns the count of columns in a given reference. For example, COLUMNS(A1:C3) returns 3, since the range A1:C3 contains 3 columns.

Purpose 
Get the number of columns in an array or reference.
Return value 
A number representing column count.
Syntax 
=COLUMNS (array)
Arguments 
  • array - A reference to a range of cells.
Usage notes 

Use the COLUMNS function to get the number of columns in a reference. For example, the formula =COLUMNS(A1:F1) returns the number 6.

Array can be an array, an array formula, or a reference to a single contiguous group of cells.

Excel Formula Training

Formulas are the key to getting things done in Excel. In this accelerated training, you'll learn how to use formulas to manipulate text, work with dates and times, lookup values with VLOOKUP and INDEX & MATCH, count and sum with criteria, dynamically rank values, and create dynamic ranges. You'll also learn how to troubleshoot, trace errors, and fix problems. Instant access. See details here.