How to Use the COLUMNS Function in Excel

In this article, we will learn about how to use COLUMNS function in Excel.

The COLUMNS function returns the number of COLUMNS in an array or cell reference in Excel. Unlike the COLUMN function which returns the particular column number of the cell reference.
Syntax:

=COLUMNS(array)

Let’s run some tests on using the COLUMNS function Excel
05
As you can see, we selected 3 rows & 2 Columns in the array. So it returns 2 as number of columns in the array.
06
As you can see here the array has only 1 column. So it returns 1 the count of COLUMNS in the array.
Here we selected a little larger array to get the count the columns in the table.
07
Press Enter
08
As you can see the count of COLUMNS in the above array is 44.
You can use the COLUMNS function in Excel without using cell references.
09
Excel will read this like array has 2 rows and 3 columns. The values along the columns are separated using commas (,) and values of different rows separated using semicolon(;) like shown below.
10
You can use the COLUMNS function with other excel functions.

As you can see from the above examples that how to use COLUMNS function in Excel.

Hope you understood how to use the COLUMNS function in Excel. Explore more articles on Excel cell reference function here. Please state your queries in the comment box below.

Related Articles:

How to Use the COLUMN Function in Excel

Excel ROW function

How to use the ROWS function in Excel

Popular Articles:

The VLOOKUP Function in Excel

COUNTIF in Excel 2016

How to Use SUMIF Function in Excel

Leave a Reply

Your email address will not be published. Required fields are marked *

Terms and Conditions of use

The applications/code on this site are distributed as is and without warranties or liability. In no event shall the owner of the copyrights, or the authors of the applications/code be liable for any loss of profit, any problems or any damage resulting from the use or evaluation of the applications/code.

Visit Us On TwitterVisit Us On FacebookVisit Us On Google PlusVisit Us On Youtube