ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Sort column by amount of same content cells (https://www.excelbanter.com/excel-discussion-misc-queries/155203-sort-column-amount-same-content-cells.html)

Mike M[_3_]

Sort column by amount of same content cells
 
I got data in column A, B C and D

I need to sort by column A based on the quantity of cells with same content.

I got this:

banana
banana
boat
tape
banana
boat

I need it sorted like this:
banana
banana
banana
boat
boat
tape

Is that possible?

Regards
Mike



Pete_UK

Sort column by amount of same content cells
 
Use column E as a helper column, with a formula like:

=COUNTIF(A$1:A$100,A1)

This assumes you have 100 rows of data - adjust to suit and copy this
down.

Then you can sort the range A1:E100, using column E as the sort key.
Afterwards, you can delete column E.

Hope this helps.

Pete


On Aug 21, 8:37 pm, "Mike M" wrote:
I got data in column A, B C and D

I need to sort by column A based on the quantity of cells with same content.

I got this:

banana
banana
boat
tape
banana
boat

I need it sorted like this:
banana
banana
banana
boat
boat
tape

Is that possible?

Regards
Mike





All times are GMT +1. The time now is 08:37 PM.

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