ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   How to sort, based upon the length of the data ? (https://www.excelbanter.com/excel-discussion-misc-queries/177702-how-sort-based-upon-length-data.html)

Mark246

How to sort, based upon the length of the data ?
 
I LOVE This Forum. You people are Terrific !

In Excel 2007,
How can I sort the data in a column,
so that the SHORTEST pieces of data come out on top? Like...
a
k
z
aa
dd
ccccc
bbbbbbbb

Thanks very much, people.

Mark246

Jim Cone

How to sort, based upon the length of the data ?
 

You will need a helper column (a blank column adjacent to the data).
In the top cell enter = Len(A2) and fill down.
(assumes your data starts in cell A2)
Sort using the new column as the key column and the original column as
the secondary sort column.
--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware
(Excel Add-ins... two dozen ways to sort with Special Sort)



"Mark246" wrote in message
I LOVE This Forum. You people are Terrific !

In Excel 2007,
How can I sort the data in a column,
so that the SHORTEST pieces of data come out on top? Like...
a
k
z
aa
dd
ccccc
bbbbbbbb

Thanks very much, people.

Mark246


All times are GMT +1. The time now is 04:23 AM.

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