This post will guide you how to use Excel COLUMNS function with syntax and examples in Microsoft excel.
The Excel COLUMNS function returns the number of columns in an Array or a reference.
The COLUMNS function is a build-in function in Microsoft Excel and it is categorized as a Lookup and Reference Function.
The COLUMNS function is available in Excel 2016, Excel 2013, Excel 2010, Excel 2007, Excel 2003, Excel XP, Excel 2000, Excel 2011 for Mac.
The syntax of the COLUMNS function is as below:
Where the COLUMNS function arguments is:
Array -This is a required argument. A reference to a cell or a range of cells.
The below examples will show you how to use Excel COLUMNS Lookup and Reference Function to return the number of columns in a given range.
#1 To get the number of columns in the reference D1:F5, just using the following excel formula: =CHOOSES(D1:F5)