+ Reply to Thread
Results 1 to 4 of 4

Is there a way to sort items by the number of characters?

  1. #1
    Registered User
    Join Date
    11-01-2006
    Posts
    15

    Is there a way to sort items by the number of characters?

    I would like to list items by the link of the words

    I have names in a column

    thomas
    peter
    lawrence
    jay

    and I would like to bulk sort them

    jay
    peter
    thomas
    lawrence

    I have several thousand names and need them sorted this way, please help

    Thank you

  2. #2
    Forum Contributor
    Join Date
    07-05-2006
    Location
    Canada
    MS-Off Ver
    2003, 2007
    Posts
    581
    This is generally done with helper columns.

    Stick a column beside the column with the words. (I'll assume your words are in column A, and the column you inserted is column B)

    Put the following formula in B2 (assuming your words start in A2):
    =LEN(A2)

    And copy down.

    Now sort based on column B, which has the lengths of each cell in A. (You may also want to make the second criteria of the sort column A, so that it is first sorted by length, and then sorted alphabetically.)

    HTH,
    Scott

  3. #3
    Registered User
    Join Date
    11-01-2006
    Posts
    15

    thanks for the help but....

    Once I get the lenght of the words

    Like

    5
    6
    8
    5
    3

    Then I use the sort a-z function and it does not work

    Can you help me with how to sort?

  4. #4
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Select both columns in your range in columns A and B, and sort by column B
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1