Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Sort text list by character length - how?

Hi!
I am an excel newbie.
I have a text list of last names that I need to sort by character
length. Not alphabetically, I know how to do that, but by number of
letters in the name.
Example, if I have the following list
LAW
OROZCO
MCALLISTER
LUGO
DAVIES
SHOEMAKER
MADISON
RUTHERFORD
NEWSOME
MAGEE

I would need it sorted to

LAW
LUGO
MAGEE
DAVIES
OROZCO
MADISON
NEWSOME
SHOEMAKER
MCALLISTER
RUTHERFORD

I have roughly 75,000 names I am working with, in bunches of 200, so
being able to sort by character length will help me tremendously and
speed things up.
Any help with this is appreciated greatly!
chris

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default Sort text list by character length - how?

Maybe you could use a helper column with a bunch of formulas that return the
length of the string. Then sort your data by that column.

=len(a1)

will return the number of characters in a1.



masterdiablo13 wrote:

Hi!
I am an excel newbie.
I have a text list of last names that I need to sort by character
length. Not alphabetically, I know how to do that, but by number of
letters in the name.
Example, if I have the following list
LAW
OROZCO
MCALLISTER
LUGO
DAVIES
SHOEMAKER
MADISON
RUTHERFORD
NEWSOME
MAGEE

I would need it sorted to

LAW
LUGO
MAGEE
DAVIES
OROZCO
MADISON
NEWSOME
SHOEMAKER
MCALLISTER
RUTHERFORD

I have roughly 75,000 names I am working with, in bunches of 200, so
being able to sort by character length will help me tremendously and
speed things up.
Any help with this is appreciated greatly!
chris


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
CLR CLR is offline
external usenet poster
 
Posts: 594
Default Sort text list by character length - how?

If this si something you have to do frequently and don't want to use a
helper column, you might consider Jim Cone's fine commercial Add in called
"SpecialSort". It's available at

http://www.realezsites.com/bus/primi...e/products.php

Vaya con Dios,
Chuck, CABGx3


"masterdiablo13" wrote in message
. 97.131...
Hi!
I am an excel newbie.
I have a text list of last names that I need to sort by character
length. Not alphabetically, I know how to do that, but by number of
letters in the name.
Example, if I have the following list
LAW
OROZCO
MCALLISTER
LUGO
DAVIES
SHOEMAKER
MADISON
RUTHERFORD
NEWSOME
MAGEE

I would need it sorted to

LAW
LUGO
MAGEE
DAVIES
OROZCO
MADISON
NEWSOME
SHOEMAKER
MCALLISTER
RUTHERFORD

I have roughly 75,000 names I am working with, in bunches of 200, so
being able to sort by character length will help me tremendously and
speed things up.
Any help with this is appreciated greatly!
chris



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cells within a list to display a certain text but have different v GEM Excel Discussion (Misc queries) 1 June 9th 06 06:10 AM
Vlookup of list with text and number robertjtucker Excel Discussion (Misc queries) 2 February 8th 06 05:23 PM
Macro or Function to make text size to suite text Length? lbbss Excel Discussion (Misc queries) 4 December 14th 04 07:53 PM
Counting Repeated text or duplicates in a list Repeatdude Excel Discussion (Misc queries) 5 November 26th 04 07:10 PM
list box length Larry M Excel Worksheet Functions 2 November 24th 04 12:17 AM


All times are GMT +1. The time now is 09:11 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"