CountA

C

carlee

I am trying to use CountA to count non blank cells. But all the cells have
embedded metadata (user name and author) in it and therefore the countA will
return total number of rows in the range. How could I could get rid of the
embedded data?.
Please see example


B C E F I J K
1 S R* R S*
2 S R* R S*
3 S S S* S
4 S S S* S
5 S* S* S* S*
6 S* S* S* S*
7 S* S* R* S*
8 S* S* R* S*
9 S* S* R* S*
10 S* S* S* S*
11 S* S* S* S*
12 I* R* R* S*
13 R* R* R* S*
14 S S S* S
15 S
16 S S* S
17 S* S* R* S*
18 S
19 S S* S
20 S* S* R* S*
21 S S S* S
22 S* S* S S*
23 S* S* S S*
24 S S S* S
CountA: 24 24 24 25 24 24 24
 
A

Alan McQuaid via OfficeKB.com

Hi,

You could try using COUNTIF. Looking at your example your COUNTA function is
used in cell B25, enter the following in that cell =COUNTIF(B1:B24,">""")

Alan
 
G

Gary''s Student

Just subtract out the cells containing unwanted data. Say we want to count
non-blank cells in A1 thru Z100, but not include "junk".

=COUNTA(A1:Z100)-COUNTIF(A1:Z100,"junk")
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top