ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Is there a way to sort text by frequency within Excel? (https://www.excelbanter.com/excel-discussion-misc-queries/40037-there-way-sort-text-frequency-within-excel.html)

jellis1919

Is there a way to sort text by frequency within Excel?
 
Let's say I have a thousand branch offices, each with a unique alpha
identifier. I start with a list, sorted by date range, of which offices have
placed orders. There is an entry in the spreadsheet for every instance an
office has placed an order. As on order comes in, it's added to the
spreadsheet, but not grouped by office. If office "AAA" placed 3 orders that
month, it's entries might appear in rows 8, 25, and 334. By sorting the
office column by alpha, I can now see see that office "AAA" placed 3 orders
(rows 2-4) , and that office "AAB" placed 5 orders (rows 5-9). But which of
the 1,000 offices placed the most orders? The least?

CLR

One way would be to use a helper column..........assuming your list is in
column A, in B1 put
=COUNTIF(A:A,A1)
Then sort on column B as the first key and column A as the second
key.........

Vaya con Dios,
Chuck, CABGx3




"jellis1919" wrote in message
...
Let's say I have a thousand branch offices, each with a unique alpha
identifier. I start with a list, sorted by date range, of which offices

have
placed orders. There is an entry in the spreadsheet for every instance an
office has placed an order. As on order comes in, it's added to the
spreadsheet, but not grouped by office. If office "AAA" placed 3 orders

that
month, it's entries might appear in rows 8, 25, and 334. By sorting the
office column by alpha, I can now see see that office "AAA" placed 3

orders
(rows 2-4) , and that office "AAB" placed 5 orders (rows 5-9). But which

of
the 1,000 offices placed the most orders? The least?





All times are GMT +1. The time now is 05:02 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com