#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 155
Default CountA

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

--
carlee
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 25
Default CountA

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

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...excel/201001/1

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default CountA

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")
--
Gary''s Student - gsnu200909


"carlee" wrote:

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

--
carlee

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
counta and or if MB Excel Worksheet Functions 6 September 17th 08 07:23 AM
counta Teri Excel Worksheet Functions 2 July 22nd 08 08:53 PM
COUNTA() Michell Major Excel Discussion (Misc queries) 5 October 17th 06 03:34 PM
COUNTA Karen Excel Worksheet Functions 3 January 10th 06 09:48 PM
COUNTA Function not working =COUNTA(C3:C69,"NH") MikeinNH Excel Worksheet Functions 2 November 8th 04 01:19 AM


All times are GMT +1. The time now is 02:57 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"