View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.misc
Mike H Mike H is offline
external usenet poster
 
Posts: 11,501
Default Frequency of text values

Hi,

Select your range of date then

data|Filter|Advanced filter
select copy to another location and 'Check' Unique value only
Enter a location to copy to in the 'Copy to' box and click ok. I copied mine
to E1
Put this formula in F1 and drag down to the length of your copied data
=COUNTIF($A$1:$A$13,E1)

An you should now have the required output.

Mike
"PSmith" wrote:

Can anyone tell me if there is a formula that will produce a list of all the
unique text values in a range, and what their corresponding counts are? I am
already familiar with the COUNTIF formula, but it can only be used if one
already knows what all of the possible values are in the data range. If the
list of possible values is long, it would take too many individual formulas
to do them one at a time. So, if my data range is something like:

Col A.
blue
red
green
yellow
red
black
yellow
blue
red
brown
brown
orange

I am hoping I can use one formula that will produce a result that will look
like
blue 2
green 1
yellow 2
red 3
black 1
brown 2
orange 1

Any suggestions would be greatly appreciated! Thanks