+ Reply to Thread
Results 1 to 11 of 11

Partial Text Match with Index/Match

  1. #1
    Registered User
    Join Date
    03-22-2019
    Location
    WA
    MS-Off Ver
    2016
    Posts
    5

    Partial Text Match with Index/Match

    I'm trying to do a partial text lookup with Index and Match but it's only returning the value when there's an exact match. Here is the rundown:

    I have a list of transaction line items and each line item begins with a users ID (e.g. CDOLEZAL-TEAM LUNCH LA). I have a separate sheet with Column A being the users' full name and Column B with their corresponding user ID. What I want to accomplish is to do an INDEX/MATCH lookup on the user ID in the line item and return the user's full name. Here is what I currently have:

    {=INDEX(NTIDs!$A$2:$A$181,MATCH(Sheet8!A2"*"&,NTIDs!$B$2:$B$181,0))}

    Sample below:

    Name & ID Sheet
    Attachment 616863

    Transaction Data Sheet
    Attachment 616865
    *Essentially want to do the INDEX/MATCH under the Owner column
    Attached Files Attached Files
    Last edited by iammaximus; 03-22-2019 at 09:34 PM.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Partial Text Match with Index/Match

    The first problem I see is that the line items do not actually begin with the userid. There is no way to take CDOLEZAL and match it to CDole1, or match HArtiaga to HArti20.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Partial Text Match with Index/Match

    Hello & Welcome to the Forum,

    A picture does not really do anyone much help as we can't test with it.

    You could use the Fuzzy Matching macro from here. Post #2

    You would then apply it to your sheet as =FuzzyVLookup(A2,NTIDs!$A$2:$B$181,2,,1) in cell D2 and down
    HTH
    Regards, Jeff

  4. #4
    Registered User
    Join Date
    03-22-2019
    Location
    WA
    MS-Off Ver
    2016
    Posts
    5

    Re: Partial Text Match with Index/Match

    Quote Originally Posted by 6StringJazzer View Post
    The first problem I see is that the line items do not actually begin with the userid. There is no way to take CDOLEZAL and match it to CDole1, or match HArtiaga to HArti20.
    Isn't that the purpose of the partial match, though? Or am I understanding it wrong?

  5. #5
    Registered User
    Join Date
    03-22-2019
    Location
    WA
    MS-Off Ver
    2016
    Posts
    5

    Re: Partial Text Match with Index/Match

    Quote Originally Posted by jeffreybrown View Post
    Hello & Welcome to the Forum,

    A picture does not really do anyone much help as we can't test with it.
    Sorry! Uploaded a sample file to the OP.

    And thanks for that! I'll test it out and report back.

  6. #6
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Partial Text Match with Index/Match

    Try this...
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    03-22-2019
    Location
    WA
    MS-Off Ver
    2016
    Posts
    5

    Re: Partial Text Match with Index/Match

    Quote Originally Posted by jeffreybrown View Post
    Try this...
    Great! How do I have it show their full name instead?

  8. #8
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Partial Text Match with Index/Match

    Change the part in red...

    =FuzzyVLookup(A2,'Name.ID List'!$A$2:$B$181,1,,1)

  9. #9
    Registered User
    Join Date
    03-22-2019
    Location
    WA
    MS-Off Ver
    2016
    Posts
    5

    Re: Partial Text Match with Index/Match

    Quote Originally Posted by jeffreybrown View Post
    Change the part in red...

    =FuzzyVLookup(A2,'Name.ID List'!$A$2:$B$181,1,,1)
    Perfect! Thank you so much!

  10. #10
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Partial Text Match with Index/Match

    You are very welcome and thanks for the feedback.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

  11. #11
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Partial Text Match with Index/Match

    Quote Originally Posted by iammaximus View Post
    Isn't that the purpose of the partial match, though? Or am I understanding it wrong?
    Seeing the rest of the thread I see that I did not understand your description "each line item begins with a users ID". I thought by "partial match" you meant "match a cell that begins with the users ID".

+ 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. Index / match type problem, with partial string match
    By bkper087 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-05-2019, 02:42 AM
  2. [SOLVED] Index/Match combining with Search (partial text string)
    By iasinschi in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-29-2018, 05:08 PM
  3. [SOLVED] MATCH / INDEX partial text in a single column
    By millerjj22 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 04-26-2017, 09:57 AM
  4. finding partial text in an index match formula
    By garyaw in forum Excel Formulas & Functions
    Replies: 22
    Last Post: 09-30-2015, 04:27 PM
  5. Index match partial text in cell
    By ymcata in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-30-2015, 05:45 AM
  6. Replies: 2
    Last Post: 09-27-2014, 04:34 PM
  7. Index Match nesting w/ partial text string criteria
    By dohearn in forum Excel General
    Replies: 1
    Last Post: 10-25-2011, 03:42 PM

Tags for this Thread

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