Solved

Countif or counta to avoid counting "" cells

Posted on 2015-02-05
2
122 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 100 total points
ID: 40592114
=rows(A2:A200)-COUNTBLANK(A2:A200)
 - should do it...
0
 
LVL 50

Accepted Solution

by:
barry houdini earned 400 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Drop Down List with Unique/Distinct Values (Part II - ComboBox or ListBox and Data Validation List Bonus!) David Miller (dlmille) Intro This article focuses on delivering unique, sorted lists to list objects (e.g., ComboBox, ListBox) and Dat…
When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…

839 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