+ Reply to Thread
Results 1 to 11 of 11

Index,Offest, Match, Wildcard?

  1. #1
    Registered User
    Join Date
    01-18-2014
    Location
    Chicago
    MS-Off Ver
    Excel 2013
    Posts
    88

    Index,Offest, Match, Wildcard?

    Looking to be able to search column A for a persons name and return the value stored in the cell next to it The name I want to find is in this format "Robert Kukulka"

    Challenge is the names in column A also includes numerical data I need to ignor.


    Column A Column B
    1098676 - Kukulka, Robert 45
    1098856 - Lewellen, Stan 22
    1098904 - Big, Edward 30


    Cant seem to find anything that works reliably. Any suggestions would be most appreciated!

  2. #2
    Registered User
    Join Date
    01-18-2014
    Location
    Chicago
    MS-Off Ver
    Excel 2013
    Posts
    88

    Re: Index,Offest, Match, Wildcard?

    Here is a sample data sheet
    Attached Files Attached Files

  3. #3
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: Index,Offest, Match, Wildcard?

    You mean search column B for name then return coresponding in column A?
    Try:
    =LOOKUP(2,1/ISNUMBER(SEARCH("Robert",$B$2:$B$6)*SEARCH("Kukulka",$B$2:$B$6)),$A$2:$A$6)
    Quang PT

  4. #4
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,368

    Re: Index,Offest, Match, Wildcard?

    Put in H3:

    =INDEX(B3:B5,MATCH(H2,MID(A3:A5,FIND(",",A3:A5)+2,50)&" "&MID(A3:A5,SEARCH("-",A3:A5,1)+1,SEARCH(",",A3:A5,1)-SEARCH("-",A3:A5,1)-1)))

    Array Formula (You need to confirm press CTRL-SHIFT-ENTER button together)

  5. #5
    Registered User
    Join Date
    01-18-2014
    Location
    Chicago
    MS-Off Ver
    Excel 2013
    Posts
    88

    Re: Index,Offest, Match, Wildcard?

    In the attached sample, I want to search column A for the value in H2, then return the value from Column B

    Thank you!!

  6. #6
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,368

    Re: Index,Offest, Match, Wildcard?

    see the file
    Attached Files Attached Files

  7. #7
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Index,Offest, Match, Wildcard?

    try this

    =VLOOKUP("*"&RIGHT(H2,LEN(H2)-FIND(" ",H2))&", "&LEFT(H2,FIND(" ",H2)-1),$A$3:$B$5,2,0)
    Last edited by AlKey; 02-18-2014 at 11:30 PM.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  8. #8
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: Index,Offest, Match, Wildcard?

    So update the formula to adapt with your attachment
    Please Login or Register  to view this content.

  9. #9
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,368

    Re: Index,Offest, Match, Wildcard?

    Missed something

    =INDEX(B3:B5,MATCH(H2,TRIM(MID(A3:A5,FIND(",",A3:A5)+2,50)&" "&TRIM(MID(A3:A5,SEARCH("-",A3:A5,1)+1,SEARCH(",",A3:A5,1)-SEARCH("-",A3:A5,1)-1))),0))
    Attached Files Attached Files
    Last edited by azumi; 02-18-2014 at 11:21 PM.

  10. #10
    Registered User
    Join Date
    01-18-2014
    Location
    Chicago
    MS-Off Ver
    Excel 2013
    Posts
    88

    Re: Index,Offest, Match, Wildcard?

    Thanks guys...

    azumi's

    =INDEX(B3:B5,MATCH(H2,TRIM(MID(A3:A5,FIND(",",A3:A5)+2,50)&" "&TRIM(MID(A3:A5,SEARCH("-",A3:A5,1)+1,SEARCH(",",A3:A5,1)-SEARCH("-",A3:A5,1)-1))),0))


    Works great for my application!

  11. #11
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: Index,Offest, Match, Wildcard?

    Update formula for name in H2:
    Please Login or Register  to view this content.

+ 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. Replies: 6
    Last Post: 04-30-2014, 02:42 AM
  2. Replies: 6
    Last Post: 11-08-2013, 10:29 PM
  3. [SOLVED] Wildcard text match using INDEX and MATCH
    By mmayna03 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-12-2012, 03:02 PM
  4. Replies: 4
    Last Post: 04-02-2012, 01:19 AM
  5. value in offest cell to match
    By short_n_curly in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-23-2010, 04:02 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