+ Reply to Thread
Results 1 to 3 of 3

Searching for text

  1. #1
    strippier
    Guest

    Searching for text

    Hiya,

    I have a list of names (approx 110,000) which I need to search for specifc
    names (approx 1000).

    eg A = list of 110k names / C = search criteria 1000 names / B = found Y or N
    Column A Column B Column C
    Mr Smith Y Smith
    RC Jones N Trip
    S Abdul Y Abdu
    R Basil N
    etc

    It needs to use the C list of names and show where these exist in the column
    A list, putting the results in column B.

    I deally I would like a % match, i.e. smith contanied 100% within Mr Smith,
    but only 60% within Mr Smithson etc.

    Any ideas?

    Thanks for you time.

    Simon

  2. #2
    Ardus Petus
    Guest

    Re: Searching for text

    110k > 65536, so Excel will not hold your names list

    --
    AP

    "strippier" <[email protected]> a écrit dans le message de
    news: [email protected]...
    > Hiya,
    >
    > I have a list of names (approx 110,000) which I need to search for specifc
    > names (approx 1000).
    >
    > eg A = list of 110k names / C = search criteria 1000 names / B = found Y
    > or N
    > Column A Column B Column C
    > Mr Smith Y Smith
    > RC Jones N Trip
    > S Abdul Y Abdu
    > R Basil N
    > etc
    >
    > It needs to use the C list of names and show where these exist in the
    > column
    > A list, putting the results in column B.
    >
    > I deally I would like a % match, i.e. smith contanied 100% within Mr
    > Smith,
    > but only 60% within Mr Smithson etc.
    >
    > Any ideas?
    >
    > Thanks for you time.
    >
    > Simon




  3. #3
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Response

    I would suggest that you save your list of 110K names in a .txt file.

    Then put your 1000 names in Excel.

    Read in the text file line by line using something like

    open "C:\Myfile.txt" for input as #1
    Do while not EOF(1)
    Line input #1, FileLine
    For Each Cell in Range(Cells(1,1),Cells(1000,1))
    If Cell = FileLine then Cell.offset(0,1) = Cell.offset(0,1)+1
    Next Cell
    Loop
    Close #1

    It will probably take quite a while to run.
    Martin

+ 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