count and display unique values

G

Guest

I need to count and display unique values

a
a
b
b
b
cc
cc
cc
cc
the is a formula to count the number of unique times a value exists but I
also want to display the values in a column.

Thnaks
 
G

Guest

Here's one easy ways (assuming you have a column heading):

Use a Pivot Table
Set ROW to your_col_heading
Set DATA to Count of your_col_heading

Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro
 
B

Bob Phillips

Cell B1: =A1
Cell B2: =IF(ISERROR(MATCH(0,COUNTIF(B$1:B1,$A$1:$A$20&""),0)),"",
INDEX(IF(ISBLANK($A$1:$A$20),"",$A$1:$A$20),MATCH(0,COUNTIF(B$1:B1,$A$1:$A$2
0&""),0)))

enter as an array formula, commit with Ctrl-Shift-Enter, then copy down

Cell C1: =IF(B1<>"",COUNTIF(A:A,B1),"")

and copy down

--

HTH

RP
(remove nothere from the email address if mailing direct)
 

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