tech on the net
Home About Us Feedback Site Map


Access Excel Word


SQL Oracle / PLSQL SQL Server MySQL MariaDB PostgreSQL

Web Development

HTML CSS Color Picker


C Language


ASCII Table Linux UNIX Java Clipart Joke of the Moment

Excel Functions

(Scroll to see more)

Share this page:

MS Excel: COUNTA Function (WS)

Learn how to use the Excel COUNTA function with syntax and examples.


The Microsoft Excel COUNTA function counts the number of cells that are not empty as well as the number of arguments that contain values.


The syntax for the Microsoft Excel COUNTA function is:

COUNTA( argument1, [argument2, ... argument_n] )

Parameters or Arguments

argument1, argument2, ... argument_n are either ranges of cells or values. There can be up to 30 arguments.

Applies To

The COUNTA function can be used in the following versions of Microsoft Excel:

  • Excel 2013, Excel 2011 for Mac, Excel 2010, Excel 2007, Excel 2003, Excel XP, Excel 2000

Type of Excel Function

The COUNTA function can be used in Microsoft Excel as the following type of function:

  • Worksheet function (WS)

Example (as Worksheet Function)

Let's look at some Excel COUNTA function examples and explore how to use the COUNTA function as a worksheet function in Microsoft Excel:

Microsoft Excel

Based on the spreadsheet above, the following Excel COUNTA examples would return:

=COUNTA(A1:A6) would return 5
=COUNTA(A1:A6, 129) would return 6
=COUNTA(A1:A6, 129, "techonthenet") would return 7
=COUNTA(A1:A6, 129, "techonthenet", -2) would return 8