Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Countif or counta to avoid counting "" cells

Posted on 2015-02-05
2
Medium Priority
?
134 Views
Last Modified: 2015-02-05
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
Comment
Question by:ResourcefulDB
2 Comments
 
LVL 23

Assisted Solution

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

Accepted Solution

by:
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.

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

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

Join & Ask a Question