+ Reply to Thread
Results 1 to 5 of 5

Searching for partial text using search function with lookup array?

  1. #1
    Registered User
    Join Date
    06-01-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    38

    Searching for partial text using search function with lookup array?

    I have to 2 spreadsheets

    1st spreadsheet
    ----------------

    Column(Name)
    ------
    Alice
    Ryan
    Charles
    Peter
    David

    2nd spreadsheet
    ----------------

    Col(Name) Col(ID)
    ----- ------
    McAlice 123
    Ryan Lee 456
    Charles Rock 789
    Peterson 012
    Davids 345

    How do I set up a Search function with a lookup array?

    A1 = alice

    A1:A5 = McAlice,Ryan Lee, Charles Rock, Peterson, Davids

    =Search(A1,A1:A5) <-- how do I create something like that to match 1st spread's values and tag the ID on them?

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,852

    Re: Searching for partial text using search function with lookup array?

    Try this in B1 of Sheet1:

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


    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    06-01-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    38

    Re: Searching for partial text using search function with lookup array?

    Thanks.

    What if there are more than 1 match? How do I display all the matches, eg: Charles

    Col(Name) Col(ID)
    ----- ------
    McAlice 123
    Ryan Lee 456
    Charles Rock 789
    Peterson 012
    Davids 345
    Charles Robert 333
    De Franco Charles 111
    Charles.jr 222
    Last edited by Dwexdwex; 07-26-2013 at 10:09 PM.

  4. #4
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,064

    Re: Searching for partial text using search function with lookup array?

    Try this,

    B2
    Please Login or Register  to view this content.
    Committed with Ctrl+Shift+Enter.

    See attached.
    HTH,
    WindKnife
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    06-01-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    38

    Re: Searching for partial text using search function with lookup array?

    Nice! Thanks.

    seriously, how on earth did you come up with a long code like that?

    care to explain the thought process to coming with this?

    also for these, =IF(C1="","",C1+D1) & =IFERROR(INDEX(C:C,IF(ROW()>SUM($C$1:$C$10),"",LOOKUP(ROW(),$D$1:$D$10,ROW($D$1:$D$10)))),"")
    Last edited by Dwexdwex; 07-27-2013 at 07:40 AM.

+ 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. LOOKUP Array & Index Function (Search data across multiple sheets)
    By dizzle in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-02-2013, 09:26 AM
  2. Search for Partial Text
    By grkchakri in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-18-2012, 06:47 AM
  3. Search lookup array to find lookup value contained within text string
    By Cookstein2 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-02-2011, 09:42 AM
  4. Replies: 13
    Last Post: 12-03-2010, 10:39 PM
  5. Extended If+Search, aka Partial Lookup
    By .plaid in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-21-2006, 03:14 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