# How to Use Excel COLUMNS Function?

COLUMNS Function in Excel: Most people use Microsoft Excel for managing and handling huge data. With the help of this software, we can do many mathematical calculations in a few seconds. It offers various built-in functions and formulas to do that. If you want to count the columns easily, you can use the COLUMNS function.

Here, we will explore the basic syntax and usage of the COLUMNS function in Microsoft Excel with some examples. Get the official version of MS Excel from the following link:

https://www.microsoft.com/en-in/microsoft-365/excel

## Explanation of the COLUMNS Function

• It is one of the built-in functions in Microsoft Excel.
• The Excel COLUMNS function returns the count of columns in a given reference.
• For instance, COLUMNS(A2:C2) returns 3 as a result.

## Syntax

• Here, you will see the syntax of the COLUMNS function.
• To apply this function on your spreadsheet, you have to select a cell and enter the formula in the following format.
• Once you enter the formula, just click on the button to get the result.

=COLUMNS(array)

Argument Explanation

• Array: A reference to a range of cells or single cells.

## Practical Examples

Now let’s grasp some examples of the COLUMNS function and explore how it works in Microsoft Excel.

• Initially, you have to open your Excel workbook on your PC and launch the worksheet that has data.
• For instance, we have entered the formula in cell B3, where we have given the reference of the columns as A1:D1.
• After entering the formula, you need to click the button to get the output, as shown below.
• In the following screenshot, you can see the applied formulas and their corresponding results.