+ Reply to Thread
Results 1 to 10 of 10

How do you sort columns so that they match up with other columns with like data?

  1. #1
    Registered User
    Join Date
    07-02-2008
    Location
    Portland, Or.
    Posts
    13

    How do you sort columns so that they match up with other columns with like data?

    I have two columns one is web addresses and the other is email addresses but the rows do not line up. I was hoping that since the second half of the email address matches the web address I could somehow sort them so that the email address column and web address column match up. Here is an example but keep in mind that this list is about 9k long and this is just a sampling so you may not see any in this example that match. Also I may have more than one email address per website.

    Good luck and I hope somebody has an answer!


    Column A
    [email protected]
    [email protected]
    [email protected]
    [email protected]
    [email protected]
    [email protected]
    [email protected]
    [email protected]
    [email protected]
    [email protected]
    [email protected]
    [email protected]
    [email protected]
    [email protected]
    [email protected]
    [email protected]
    [email protected]
    [email protected]
    [email protected]
    [email protected]

    Column B
    www.courvelletoyota.com
    www.ajdohmann.com
    www.bonifacehiers.com
    www.bonifacehierschryslerdodge.net
    www.charliethomaschrysler.com
    www.silverstarauto.com
    www.tustinlexus.com
    www.weircanyonhonda.com
    www.lawsonchevy.com
    www.autonation.com
    www.northtownechevrolet.com
    www.poageautoplaza.com
    www.zimbrick.com
    www.zimbrick.com
    www.southcoastmitsubishi.com
    www.hallauto.com
    www.alsanchezauto.com
    www.atlantatoyota.com
    www.fernandezhonda.com
    www.fletcherauto.com
    Last edited by qj67; 07-02-2008 at 02:50 PM. Reason: Bad Title

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Please read our forum rules and then adjust your title according to Rule # 1.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Thanks for fixing the title....

    Possibly you can use a formula that aligns the matches and then you can copy|paste Special >> Values over the original...

    So if your websites are in column A and your emails are in column B, then in C1, formula would be:

    =INDEX($B$1:$B$20,MATCH(TRUE,ISNUMBER(SEARCH(MID(A1,FIND("@",A1)+1,255),$B$1:$B$20)),0))

    adjust ranges to suit.

    The formula is an array formula and so must be confirmed with CTRL+SHIFT+ENTER not just ENTER.. you will see { } brackets appear.

    Then copy down the whole list.

    See attached sample.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    07-02-2008
    Location
    Portland, Or.
    Posts
    13
    When I applied the formula it did work but for only about 50 of the 9k email addresses. I would attach the xls file but its to big.

    And sorry about the Title, I admit I just skimmed the rules but I just reread them all!

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Did you adjust the ranges to accomodate the 9k records?

    Did you confirm the formula with CTRL+SHIFT+ENTER?

  6. #6
    Registered User
    Join Date
    07-02-2008
    Location
    Portland, Or.
    Posts
    13
    I am using the formula

    =INDEX($B$1:$B$8997,MATCH(TRUE,ISNUMBER(SEARCH(MID(A4,FIND("@",A4)+1,255),$B$1:$B$8997)),0))

    When I press ctrl+shift+enter it works but when I go to paste it into the rest of the cells it doesnt work unless i go to each cell individually and press ctrl+shift+enter.

    Thank you for your help

  7. #7
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    You don't actually copy/paste the formula, you fill it down.

    After you successfully entered the first formula, click and hold the little black square at the bottom right corner of the cell, then drag it down as far as you want to fill in the formula.

    This should retain the curly brackets around the formula.

  8. #8
    Registered User
    Join Date
    07-02-2008
    Location
    Portland, Or.
    Posts
    13
    Success! Thank you! I always assumed copy and paste did the same thing, i was wrong. Thank you for your help NBVC

  9. #9
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Well...actually....if you copy the cell that the formula is in and then paste it to the cells underneath...it should work too. But you can't copy the formula itself and paste it in the cells or else you will have to reconfirm each one...

  10. #10
    Registered User
    Join Date
    07-02-2008
    Location
    Portland, Or.
    Posts
    13
    It did work when I copied and pasted I just didn't notice the progress indicator at the bottom, it just took some time. Thank you again, you got onto me then you helped me... what a nice person you are! lol

+ 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