+ Reply to Thread
Results 1 to 5 of 5

VLOOKUP to find a substring exist in another column of list string

  1. #1
    Registered User
    Join Date
    02-21-2015
    Location
    HK
    MS-Off Ver
    2010
    Posts
    2

    VLOOKUP to find a substring exist in another column of list string

    Hi, I am trying to look for this solution:

    For example, I have two worksheets:
    In sheet A, Column A contains a list of "Full Name", e.g. "Peter Parker JC", "Daniel Jackson"
    In sheet B (namelist), Column A contains a list of "Family Name" like "Parker", "Jackson", etc.

    And now I wan to find in Sheet A column A, each cell (A1,A2,A3, ...) contains any family name of column A of sheet B? (which is case-insensitive)

    I want to show the result (TRUE/ FALSE) in Sheet A column B,

    I tried to do something like this: =ISNUMBER(LOOKUP(9.99999E+307,SEARCH(" " & namelist!A:A & " "," " & B2 & " ")))
    it works but the calculating speed is too slow, as I may have entries like >10000.

    Is there any optimized solution to achieve this?

    Really Thanks for your help!

  2. #2
    Forum Contributor
    Join Date
    09-18-2014
    Location
    Pakistan
    MS-Off Ver
    2013, 2016
    Posts
    283

    Re: VLOOKUP to find a substring exist in another column of list string

    Trye this
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    09-18-2014
    Location
    Pakistan
    MS-Off Ver
    2013, 2016
    Posts
    283

    Re: VLOOKUP to find a substring exist in another column of list string

    If this is not working then attach a sample file

  4. #4
    Registered User
    Join Date
    02-21-2015
    Location
    HK
    MS-Off Ver
    2010
    Posts
    2

    Re: VLOOKUP to find a substring exist in another column of list string

    Quote Originally Posted by AmirSoft View Post
    Trye this
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Thanks AmirSoft! Seems I know why the speed is so slow. It is because of the range I selected in sheet B column A is too large. After reference with your ans, I adjust it to a smaller range like 1000 rows, it is much faster now! (I guess x10 ~ x20 faster)

    Thanks a lot!

  5. #5
    Forum Contributor
    Join Date
    09-18-2014
    Location
    Pakistan
    MS-Off Ver
    2013, 2016
    Posts
    283

    Re: VLOOKUP to find a substring exist in another column of list string

    You Welcome.

    Now just mark this thread as solved from thread tools.

    If you think that I really helped you then
    <<<<<<<< Add reputation to this thread.

+ 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. Trying to find a substring in a list of words
    By Finley_77 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-21-2014, 01:23 PM
  2. [SOLVED] Find substring within a string, from a list
    By NotSwank in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-06-2014, 10:27 AM
  3. Vlookup Substring Value and Build String Function
    By Vlad999 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-25-2014, 07:36 AM
  4. [SOLVED] Find the position of a substring in a string
    By nemo66ro in forum Excel General
    Replies: 6
    Last Post: 10-22-2012, 01:21 AM
  5. Find the sub string in column and copy the cell next to the substring
    By shrujan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-16-2009, 11:00 AM

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