COLUMNS function is a built-in function in Microsoft Excel. It falls under the category of Lookup Functions in Excel. COLUMNS Function returns the total number of columns in the given array or collection of references. The purpose of the COLUMNS formula in Excel is to know the number of columns in an array of references.
The COLUMNS function syntax has the following arguments:
- Array: Required. An array or array formula, or a reference to a range of cells for which you want the number of columns.
Example: Let’s look at some Excel COLUMNS function examples and explore how to use the COLUMNS function as a worksheet function in Microsoft Excel:
Based on the Excel spreadsheet above, the following COLUMNS examples would return:
- Array can be a range or a reference to a single contiguous group of cells.
- Array can be an array constant or an array created by another formula.