Excel Sorting

F

fallngod

I have an excel sheet with 3 columns, and about 2000 rows. Column A
contains the name of several companies. The company names appear
several times. How can I create a function that goes through all the
names and Sorts the most reoccurying name.

Example:

Walmart
Fila
Nike
Walmart
Fila
Bank of America
Fila
Walmart
Nike
Walmart

List should then look like:
Walmart
Walmart
Walmart
Walmart
Fila
Fila
Fila
Nike
Nike
Bank of America
 
C

Casey

fallngod,
I would add a helper column to the left of your column of company
names. In that column place the following formula: =COUNTIF(B:B,B2)
where column B is where your company names are and B2 is the first
company name. Then copy this formula down your helper column, in this
case column A. Then sort "Descending " on the helper column.

HTH
 

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

Similar Threads

Web Query 0
fuzzy match 5
Partial match lookup question 5
Excel --> Word 4
Merging from an Excel file with graphics 1
Sum select values from a list 4
Using Vlookup worksheet function in VBA 1
making a time series 0

Top