Excel 2007, Sort data by no. similar entries?

A

Andrew Staley

Is it possible with Excel 2007 to sort data by the number of similar entries
within a column?

I.E

Row1 Row2
1977 Andrew
1980 Andrew
1960 Rachel
1950 Rachel
1940 Rachel
1965 John

What I want to be able to do is sort data in Row2 so that Rachel shows 1st
as she has 3 entries, then Andrew and finally John as he only has a single
instance, is this possible?

Thanks, Andrew.
 
K

keiji kounoike

How about using a helper column? I read your row1 as column1 and row2 as
column2, and put the formula like "=COUNTIF(B$1:B$6,B1)" into C1 and
copy it down to C6. then , sort the table by column3(first key) and
column1(second key).

Keiji
 
R

Ron Rosenfeld

Is it possible with Excel 2007 to sort data by the number of similar entries
within a column?

I.E

Row1 Row2
1977 Andrew
1980 Andrew
1960 Rachel
1950 Rachel
1940 Rachel
1965 John

What I want to be able to do is sort data in Row2 so that Rachel shows 1st
as she has 3 entries, then Andrew and finally John as he only has a single
instance, is this possible?

Thanks, Andrew.

Add a 3rd column. I guess in your context you would label it "Row3".

If your original table is in A1:Bn, then

C2: =COUNTIF($B$2:$B$7,B2)

Fill down to Cn.

Data/Sort
First by Row3 "Descending"
then (perhaps) by Row1 "Ascending"

Result:

1940 Rachel
1950 Rachel
1960 Rachel
1977 Andrew
1980 Andrew
1965 John
--ron
 
D

Dave Peterson

This data is really in columns, right?

If yes, then you could add a helper column (column C??) and use a formula like:

=countif(b:b,b1)
Then drag down as far as you have data

Then sort your data by this field.
 

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