+ Reply to Thread
Results 1 to 7 of 7

Sort from a certain point in a cell?

  1. #1
    Registered User
    Join Date
    11-06-2007
    Posts
    3

    Sort from a certain point in a cell?

    Hi all,

    Just looking for some advice and this looked like a good place!

    I have a spreadsheet full of email addresses and wanted to sort by the address, but only from the address after the @ symbol.

    Does anyone know if this can be done? Hope you know what I mean

    Thanks in advance,
    Kirsten

  2. #2
    Registered User
    Join Date
    10-30-2007
    Posts
    51
    I'd suggest adding another column to extract the text you want to sort by.

    Assuming the addresses are in column A, use the following:

    =RIGHT(A1,LEN(A1)-SEARCH("@",A1))

  3. #3
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    You could use a formula to extract the portion of the email address after the @

    e.g. if A1 contains

    [email protected]

    use this formula in B1 to get just domain.com

    =REPLACE(A1,1,FIND("@",A1),"")

    copy formula down column, then sort by column B

  4. #4
    Registered User
    Join Date
    11-06-2007
    Posts
    3
    Hi Mickey and daddy,

    Thanks for the fast replies :-) this works, however, I'm then left with a column of aol.com or tiscali.co.uk which means I can't sort the whole email addresses.

    Anything else I can do?

    Thanks v much

  5. #5
    Registered User
    Join Date
    10-30-2007
    Posts
    51
    I'm not sure what you are asking then. Can you give us an example?

  6. #6
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    Once you have the formula filled in column B select both columns A and B and sort by column B

    Column A will now contain your email addresses as before but now sorted by whatever comes after the @

  7. #7
    Registered User
    Join Date
    11-06-2007
    Posts
    3
    Ah of course!! Thank you so much for your help guys, MUCH appreciated! :-)

+ 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