+ Reply to Thread
Results 1 to 4 of 4

how to sort two LARGE columns

  1. #1
    Registered User
    Join Date
    10-11-2013
    Location
    claremore, oklahoma
    MS-Off Ver
    Excel 2003
    Posts
    2

    how to sort two LARGE columns

    I have a list of domains (about 200,000) that looks like this:
    http://cat.com
    http://dog.com
    etc..

    I have a list of urls (about 1 million) that looks like this:
    http://cat.com/catsrule
    http://cat.com/catsareawesome
    http://dog.com/dogsaregreat
    http://frog.com/frogsrock

    I want my results to only show this (since this is the only thing in the second file that does not contain anything from the first file):
    http://frog.com/frogsrock

    I have tried programs designed to do this but they either (a) shorten everything down to the domain or (b) wont remove anything since the domains are part of a longer url in the second file. Thank you for any help that you all can provide!

  2. #2
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: how to sort two LARGE columns

    Hi,

    "...this is the only thing in the second file that does not contain anything from the first file"

    I think you're going to need to be a bit more specific so that a meaningful solution can be found. For example, can you refine your statement to something along the lines of:

    "I want to return only URLs for which the substring obtained between "http://" and "." is not found in any of the domains."

    If this is not the case, could you rephrase it so that we have a logical rule governing which part(s) of the strings are to be compared?

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  3. #3
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: how to sort two LARGE columns

    In Column-A
    http://cat.com
    http://dog.com
    etc..

    In Column-B
    http://cat.com/catsrule
    http://cat.com/catsareawesome
    http://dog.com/dogsaregreat
    http://frog.com/frogsrock

    In C1 Cell

    =IF(COUNTIF(A:A,"*"&LEFT(SUBSTITUTE(B1,"http://",""),FIND("/",SUBSTITUTE(B1,"http://",""))-1)&"*"),"",B1)

    Drag it down..

    Use a filter in Column-C and select nonblank or use pivot table by keeping Column C as source.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  4. #4
    Registered User
    Join Date
    10-11-2013
    Location
    claremore, oklahoma
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: how to sort two LARGE columns

    Quote Originally Posted by XOR LX View Post
    Hi,

    "...this is the only thing in the second file that does not contain anything from the first file"

    I think you're going to need to be a bit more specific so that a meaningful solution can be found. For example, can you refine your statement to something along the lines of:

    "I want to return only URLs for which the substring obtained between "http://" and "." is not found in any of the domains."

    If this is not the case, could you rephrase it so that we have a logical rule governing which part(s) of the strings are to be compared?

    Regards
    I apologize and thank you for your help. I want to return only urls from column b that do not contain any of the string of text(s) in column a.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Excel 2007 : Sort 2 Columns using Large Formula
    By MarvinP in forum Excel General
    Replies: 15
    Last Post: 06-14-2013, 05:13 AM
  2. sort button - how to sort large range in boxes
    By jw01 in forum Excel General
    Replies: 2
    Last Post: 03-06-2012, 09:35 PM
  3. [SOLVED] Sort a large file then sum like values...
    By jgray in forum Excel General
    Replies: 2
    Last Post: 08-01-2005, 05:05 PM
  4. Fastest way to sort large 2-D arrays?
    By RB Smissaert in forum Excel Programming / VBA / Macros
    Replies: 22
    Last Post: 02-07-2005, 08:08 PM
  5. [SOLVED] Bin and sort a large list of data
    By bsears in forum Excel General
    Replies: 4
    Last Post: 01-25-2005, 05:06 PM

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