EDUCBA

EDUCBA

MENUMENU
  • Free Tutorials
  • Certification Courses
  • 120+ Courses All in One Bundle
  • Login
Home Excel Excel Resources Statistical Functions in Excel COUNTA Function in Excel
Secondary Sidebar
Excel Functions
  • Statistical Functions in Excel
    • COUNTIF Formula in Excel
    • COUNTIF Multiple Conditions
    • COUNTIFS with Multiple Criteria
    • Statistics in Excel
    • Confidence Interval in Excel
    • Interpolate in Excel
    • Linear Programming in Excel
    • COUNTIFS in Excel
    • Excel Variance
    • Normal Distribution Formula in Excel
    • Count Cells with Text in Excel
    • Excel Formula For Rank
    • Linear Regression in Excel
    • COUNTA Function in Excel
    • MAX Formula in Excel
    • Excel NORMSINV
    • Count Names in Excel
    • FORECAST Formula in Excel
    • NPER in Excel
    • Excel Median Formula
    • Lognormal Distribution in Excel
    • Excel Chi Square Test
    • Count Formula in Excel
    • COUNTIF Examples in Excel
    • Excel P-Value
    • COUNTIF Not Blank in Excel
    • Excel Standard Deviation Formula
    • Excel GROWTH Formula
    • Excel Percentile Formula
    • Excel Frequency Formula
    • Excel Average Formula
    • Excel Correlation Matrix
    • Excel Z Score
    • Excel MAX IF Function
    • Z TEST in Excel
    • Excel Trendline
    • Excel F-Test
    • Excel STDEV Function
    • Excel Frequency Distribution
    • DCOUNT Function in Excel
    • Excel MIN Function
    • Excel Forecast Function
    • FREQUENCY Excel Function
    • COUNTIF with Multiple Criteria
    • Standard Deviation in Excel
    • MAX Excel Function
    • Excel QUARTILE Function
    • Excel T.Test Function
    • Excel PERCENTILE Function
    • MODE Excel Function
    • SLOPE Excel Function
    • Excel Median Function
    • Excel TREND Function
    • Excel Count Function
    • Excel LARGE Function
    • SMALL Excel Function
    • COUNTIF Excel Function
    • Excel AVERAGE Function
    • Excel CORREL Function
  • Excel Functions (12+)
  • Excel Tools (114+)
  • Financial Functions in Excel (17+)
  • Logical Functions in Excel (14+)
  • Lookup and Reference Functions in Excel (35+)
  • Maths Function in Excel (47+)
  • TEXT and String Functions in Excel (26+)
  • Date and Time Function in Excel (24+)
  • Information Functions in Excel (4+)
  • Excel Charts (56+)
  • Excel Tips (222+)
  • Workplace Productivity (4+)
  • Microsoft Office Tools (15+)
  • Excel Formula and Functions (22+)
  • MS Excel Shortcuts (4+)
Excel Functions Courses
  • EXCEL ADVANCED Training Certification
  • Online Excel for Marketing Course

COUNTA Function in Excel

By Madhuri ThakurMadhuri Thakur

COUNTA Function in Excel

COUNTA Function in Excel (Table of Contents)

  • What is Excel COUNTA Function?
  • Examples of COUNTA Function in Excel
  • How to Use the COUNTA Function in Excel?

What is Excel COUNTA Function?

COUNTA function is an important function under the group of “count” functions. It counts all the non-empty cells. It counts any type of data that includes:-

  1. Numeric value
  2. Texts
  3. Alphanumeric values
  4. Logical values
  5. Error-values
  6. Date/Time
  7. Empty text strings(“ ”) and
  8. Space in a cell
Note: Space in the cell looks like a blank cell, but actually, it is not.

COUNTA syntax
The “COUNTA”  function  syntax has the following arguments:

  • Value1: An item, cell reference, or a range that we want to count.
  • Value2: [Optional] item, cell reference, or a range that we want to count up to a maximum of 255 arguments.

CountA() function counts all the non empty cells. 

Start Your Free Excel Course

Excel functions, formula, charts, formatting creating excel dashboard & others

Examples of COUNTA Function in Excel

If we need to count the number of cells that are not empty within a range or several non-adjacent ranges, then the COUNTA function is used. Now let us look at a few examples.

You can download this COUNTA Function Excel Template here – COUNTA Function Excel Template

Example #1 – Using Numeric Value in COUNTA()

This function is used to count numeric values.

COUNTA function in Excel 1-1

After applying the COUNTA function, the result is shown below.

All in One Excel VBA Bundle(120+ Courses, 30+ Projects)
Basic ExcelAdvanced ExcelVBA & MacrosExcel Dashboards
Pivot TablesStatistical FunctionsFinancial FunctionsCharts & Graphs
Price
View Courses
120+ Online Courses | 30+ Projects | 500+ Hours | Verifiable Certificates | Lifetime Access
4.9 (64,768 ratings)

COUNTA Function in Excel 1-2

Example #2 – Using Texts in COUNTA()

This function is used to count text values.

COUNTA Function in Excel 2-1

After applying the COUNTA function, the result is shown below.

COUNTA Function in Excel 2-2

Example #3 – Using Alphanumeric Values in COUNTA()

This function is used to count alphanumeric values.

COUNTA Function in Excel 3-1

After applying the COUNTA function, the result is shown below.

COUNTA Function in Excel 3-2

Example #4 – Using Logical Values in COUNTA()

This function is used to count logical values.

COUNTA Function in Excel 4-1

After applying the COUNTA function, the result is shown below.

COUNTA Function in Excel 4-2

Example #5 – Using Error Values in COUNTA()

This function is used to count error values.

COUNTA Function in Excel 5-1

After applying the COUNTA function, the result is shown below.

COUNTA Function in Excel 5-2

Example #6 – Using Date/Time in COUNTA()

This function is used to count date/time.

COUNTA Function in Excel 6-1

After applying the COUNTA function, the result is shown below.

COUNTA Function in Excel 6-2

Example #7 – Using Empty Text Strings in COUNTA()

This function is used to count empty text Strings.

COUNTA Function in Excel 7-1

After applying the COUNTA function, the result is shown below.

COUNTA Function in Excel 7-2

Example #8 – Using Space in a Cell in COUNTA()

This function is used to count space in a cell.

Space in a Cell -1

After applying the COUNTA function, the result is shown below.

Space in a Cell -2

Example #9 – Count the Number of Cells

Number of Cells -1

The below-mentioned function counts the number of cells in column A, i.e., from A1 to A5.

Number of Cells - 2

After applying the COUNTA function, the answer is 4 because the COUNTA function does not count blank cells. Here, A5 is a blank cell.

Number of Cells -3

In the same example, the function shows the result as 5, whereas in the above case, it was showing as 4. The difference occurred due to the usage of the space bar in the second case in an empty cell. Both are apparently appearing as same, but actually, they are not. In the above case, A5 is a blank space, whereas in the second case, we have used a space bar and made the empty cell as a non-empty cell.

Number of Cells - 4

After applying the COUNTA function, the result is shown below.

Number of Cells -5

The above functions count the number of cells in column A, i.e. from A1 to A5 and in column B, it is from B1 to B5. The answer is 8 because the COUNTA function does not count blank cells. Here, A5 and B5 are blank cells.

Number of Cells -6

After applying the COUNTA function, the result is shown below.

Number of Cells -7

How to Use COUNTA() Function in Excel?

Let’s understand the working of the COUNTA() function with a few methods.

Method #1 – Writing the formula of CountA() function in the resulted cell

  • Select the cell where the result is to be displayed.
  • Write the syntax or the formula of COUNTA and then determine the range of cells that is to be counted.

method 1

  • Press the Enter Key.

method 1-1

Note: “CountA()” function will not count the blank or empty cell. But will count empty text string and space in a cell. To cross-check, also use “Countblank()” function.

method 1-2

  • Now you can press the Enter key to see the result.

method 1-3

Method #2 – Through Insert Function

  • Select the cell where the result is to be displayed.

Method 2

  • Go to the ‘File tab’ in the Excel Ribbon.
  •  Select ‘Insert function’ under ‘Function Library’.
  • ‘Insert function dialog box’ will appear and type ‘COUNTA’ in the input box corresponding to “Search for a function label”.

Method 2-1

  • Click on the ‘Go’ button. Select ’CountA’ option under “Select function” label.

Method 2-2

  • Click Ok. “Function Arguments” dialog box will appear. Under the ‘COUNTA’ section, input the range to be counted corresponding to the ‘Value1’ label.

Method 2-3

  • Click on OK.

Method 2-3

Method #3 – Through Auto Sum Function

  • Select the cell where the result is to be displayed.
  • Go to ‘File tab’ in Excel Ribbon.
  • Select ‘AutoSum’ under ‘Function Library’->Select “More Functions…” through a drop-down menu.

Method 3 

  • “Insert function” dialog box will appear, then type ‘COUNTA’ in the text box corresponding to “Search for a function label.”

Method 3-1

Things to Remember

  • COUNTA() function is used to count cells containing values.
  • It ignores “blank cells” from counting, but it considers empty text string and spaces in the cell while counting the number of cells.
  • Syntax of CountA() function, Count() function and Countblank() function are very similar.

Recommended Articles

This is a guide to COUNTA Function in Excel. Here we discuss How to use COUNTA Function in Excel along with practical examples and a downloadable excel template. You can also go through our other suggested articles –

  1. Excel Count Function
  2. Count Names in Excel
  3. COUNTIFS in Excel
  4. VBA COUNTA 
Popular Course in this category
MS Excel Training Bundle
  13 Online Courses |  100+ Hours |  Verifiable Certificates |  Lifetime Validity
4.5
Price

View Course

Related Courses

Excel Advanced Training (16 Courses, 23+ Projects)4.9
Excel for Marketing Training (8 Courses, 13+ Projects)4.8
1 Shares
Share
Tweet
Share
Primary Sidebar
Footer
About Us
  • Blog
  • Who is EDUCBA?
  • Sign Up
  • Live Classes
  • Corporate Training
  • Certificate from Top Institutions
  • Contact Us
  • Verifiable Certificate
  • Reviews
  • Terms and Conditions
  • Privacy Policy
  •  
Apps
  • iPhone & iPad
  • Android
Resources
  • Free Courses
  • Excel Charts
  • Excel Tips
  • All Tutorials
Certification Courses
  • All Courses
  • Excel VBA Course - All in One Bundle
  • VBA Course
  • Excel Data Analysis Course
  • Excel for Marketing Course
  • Excel for Finance Course
  • Excel for HR Training

ISO 10004:2018 & ISO 9001:2015 Certified

© 2022 - EDUCBA. ALL RIGHTS RESERVED. THE CERTIFICATION NAMES ARE THE TRADEMARKS OF THEIR RESPECTIVE OWNERS.

EDUCBA
Free Excel Course

Excel functions, formula, charts, formatting creating excel dashboard & others

*Please provide your correct email id. Login details for this Free course will be emailed to you

By signing up, you agree to our Terms of Use and Privacy Policy.

EDUCBA Login

Forgot Password?

By signing up, you agree to our Terms of Use and Privacy Policy.

EDUCBA
Free Excel Course

Excel functions, formula, charts, formatting creating excel dashboard & others

*Please provide your correct email id. Login details for this Free course will be emailed to you

By signing up, you agree to our Terms of Use and Privacy Policy.

EDUCBA

*Please provide your correct email id. Login details for this Free course will be emailed to you

By signing up, you agree to our Terms of Use and Privacy Policy.

Let’s Get Started

By signing up, you agree to our Terms of Use and Privacy Policy.

EDUCBA

Download COUNTA Function Excel Template

EDUCBA

Download COUNTA Function Excel Template

EDUCBA

डाउनलोड COUNTA Function Excel Template

This website or its third-party tools use cookies, which are necessary to its functioning and required to achieve the purposes illustrated in the cookie policy. By closing this banner, scrolling this page, clicking a link or continuing to browse otherwise, you agree to our Privacy Policy

Loading . . .
Quiz
Question:

Answer:

Quiz Result
Total QuestionsCorrect AnswersWrong AnswersPercentage

Explore 1000+ varieties of Mock tests View more