+ Reply to Thread
Results 1 to 4 of 4

sorting a concatenated cell

  1. #1
    Registered User
    Join Date
    08-21-2006
    Posts
    4

    sorting a concatenated cell

    I have a cell that is entered FIRSTNAME, LAST NAME. What I have done is using TRIM LEFT MID and Finally Concatenate, switched the First name with the last name in a different column. Now all I want to be able to do is to sort the cells alphabetically. I am sure that I need to use another approach to this.

  2. #2
    Forum Contributor
    Join Date
    12-12-2005
    Posts
    667
    It seems to me that you should have sorted the data before concatenating them!
    Best regards,

    Ray

  3. #3
    Registered User
    Join Date
    08-21-2006
    Posts
    4
    well I can sort the data by the first name, but i want to sort it by the last name. I have 3 years worth of data, so just changing the entry method in not an option. Sorting a list of Dr's by first name is only so useful....

  4. #4
    Dave Peterson
    Guest

    Re: sorting a concatenated cell

    Use =Trim(), =Left(), and =Mid() to separate the names into parts once more.

    But this time, don't delete those pieces. Just hide the columns if you want.

    Then you can sort by each piece.

    In fact, you can use a formula to concatenate the pieces into the full name.
    But I'd do the data entry using those idividual fields.

    wmack wrote:
    >
    > I have a cell that is entered FIRSTNAME, LAST NAME. What I have done is
    > using TRIM LEFT MID and Finally Concatenate, switched the First name
    > with the last name in a different column. Now all I want to be able to
    > do is to sort the cells alphabetically. I am sure that I need to use
    > another approach to this.
    >
    > --
    > wmack
    > ------------------------------------------------------------------------
    > wmack's Profile: http://www.excelforum.com/member.php...o&userid=37801
    > View this thread: http://www.excelforum.com/showthread...hreadid=573649


    --

    Dave Peterson

+ 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