Solved

# Countif or counta to avoid counting "" cells

Posted on 2015-02-05
Medium Priority
140 Views
Experts,

Here is a quick count question for text. I want to count the number of cells that has any text in it from A2 to A200. The twist is that some of the cells appear to be empty but actually are just result of "".

So, first try is countif(A2:A200, "*"). It did not work. It count those cells with "".

Second try is counta(A2:A200), still not working. And I see in excel help that counta actually count everything including "".

So, what is best way to do it? or there is a way to make  a "" cell to become a really empty cell?

Thanks,
RDB
0
Question by:ResourcefulDB

LVL 23

Assisted Solution

Danny Child earned 400 total points
ID: 40592114
=rows(A2:A200)-COUNTBLANK(A2:A200)
- should do it...
0

LVL 50

Accepted Solution

barry houdini earned 1600 total points
ID: 40592154
Try this version to count text with 1 or more characters. It won't count "formula blanks" or numbers

=COUNTIF(A2:A200, "?*")

regards, barry
0

## Featured Post

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

## Join & Write a Comment Already a member? Login.

Microsoft's Excel has many features that most people will never need nor take advantage of.  Conditional formatting is one feature that you may find a necessity once you start using it.
This article describes how you can use Custom Document Properties to store settings and other information in your workbook so that they will be available the next time you open the workbook.
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calculâ€¦
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.
###### Suggested Courses
Course of the Month6 days, 23 hours left to enroll

#### 590 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.