#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10
Default counting unique data

Hi all,

i have a table like this

Names
A, B, C
A,B
B
C
B, C
A, C
C
A
A

I want to count all the A or B or C that come up. In this example A=5,
B=4, C=5.

Hope the question is clear and many thanks for your help.

Brie

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default counting unique data

Try it like this:

=COUNTIF(A2:A10,"*A*")

Or, put "A" in a cell then refer to that cell:

C1 = A

=COUNTIF(A2:A10,"*"&C1&"*")

Both formulas will only count a cell once if it might contain more than one
isnatance of "A". For example:

A2 = A, A, A, B, C

A2 will count as 1.

--
Biff
Microsoft Excel MVP


"Brie" wrote in message
...
Hi all,

i have a table like this

Names
A, B, C
A,B
B
C
B, C
A, C
C
A
A

I want to count all the "A" or "B" or "C" that come up. In this example
A=5,
B=4, C=5.

Hope the question is clear and many thanks for your help.

Brie



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10
Default counting unique data

Got it!

many thanks, Biff!

"T. Valko" wrote:

Try it like this:

=COUNTIF(A2:A10,"*A*")

Or, put "A" in a cell then refer to that cell:

C1 = A

=COUNTIF(A2:A10,"*"&C1&"*")

Both formulas will only count a cell once if it might contain more than one
instance of "A". For example:

A2 = A, A, A, B, C

A2 will count as 1.

--
Biff
Microsoft Excel MVP


"Brie" wrote in message
...
Hi all,

i have a table like this

Names
A, B, C
A,B
B
C
B, C
A, C
C
A
A

I want to count all the "A" or "B" or "C" that come up. In this example
A=5,
B=4, C=5.

Hope the question is clear and many thanks for your help.

Brie




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default counting unique data

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"Brie" wrote in message
...
Got it!

many thanks, Biff!

"T. Valko" wrote:

Try it like this:

=COUNTIF(A2:A10,"*A*")

Or, put "A" in a cell then refer to that cell:

C1 = A

=COUNTIF(A2:A10,"*"&C1&"*")

Both formulas will only count a cell once if it might contain more than
one
instance of "A". For example:

A2 = A, A, A, B, C

A2 will count as 1.

--
Biff
Microsoft Excel MVP


"Brie" wrote in message
...
Hi all,

i have a table like this

Names
A, B, C
A,B
B
C
B, C
A, C
C
A
A

I want to count all the "A" or "B" or "C" that come up. In this example
A=5,
B=4, C=5.

Hope the question is clear and many thanks for your help.

Brie






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
Unique counting Michael Excel Discussion (Misc queries) 19 November 27th 06 09:28 AM
Counting unique values giantwolf Excel Discussion (Misc queries) 4 August 28th 06 01:31 PM
counting unique numbers in filtered data deb Excel Worksheet Functions 1 September 22nd 05 09:41 PM
counting unique items tjtjjtjt Excel Discussion (Misc queries) 3 September 14th 05 05:47 AM
Counting Unique Values carl Excel Worksheet Functions 9 July 25th 05 12:44 PM


All times are GMT +1. The time now is 10:04 PM.

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

About Us

"It's about Microsoft Excel"