# How to Use Excel COUNTA Function?

Excel COUNTA Function: Microsoft Excel is a powerful data visualization and analysis program used all around the world. It uses spreadsheets to store, organize, or perform operations with formulas and functions. If you want to count the cells that contain numbers, text, logical values, error values, and empty text in a range, then you can use the COUNTA function.

In this article, we are going to see how to use the Excel COUNTA Function in Office 365 with its syntax, explanation, and examples. Get an official version of MS Excel from the following link:

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

## Explanation of COUNTA Function

• It is one of the built-in functions in Microsoft Excel.
• This function counts the number of cells that are non-empty and returns the output in numbers.
• It is just opposite to the COUNT Function in Excel.

## Syntax

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

=COUNTA(value1, [value2], …)

Argument Description:

Value1 – The first argument, it may be an input value, or cell reference, or range.

Value2 – It is an optional one. It is also the input value or reference or range of a cell.

Note:
1) COUNTA Function will count the cells that contain numbers, text, logical values, error values, and empty text(“”).
2) You can also give input like =COUNTA(“b”, 1, 2, 3, “”), and then it returns the count values as 5.

## Examples

Here we will show you an example to know how to apply the Excel COUNTA function in the spreadsheet.

• Initially, you have to open your Excel workbook on your PC and launch the worksheet with data.
• For instance, we have given the input values in the range B3:B9. And we will get the count of the number of cells that are non-empty using the COUNTA function.
• Then, you have to enter the formula in the cell as shown below to get the result.
• After entering the formula, you need to click the  button to get the output.
• You can also give input like =COUNTA(“b”, 1, 2, 3, “”), and then it returns the count values as 5.