+ Reply to Thread
Results 1 to 4 of 4

Help with VLOOKUP - lookup value is a part of a string

  1. #1
    Registered User
    Join Date
    05-18-2020
    Location
    Vietnam
    MS-Off Ver
    2010
    Posts
    27

    Help with VLOOKUP - lookup value is a part of a string

    Hello everyone,

    I need help with this situation:

    In the Sample file, the lookup value in D2 (ITDC81200372) is only a part of multiple codes in one cell in column 1 (A3:GBQRF0705817,ITDC81200372,USA560633118,USA560702350,USMC16046323,USNPD0801644,USSM16400141,USX7N0915346,USXTH0602170)

    Is there any way that i can vlookup a value contained in column 1 and give results in column 2?

    Thank you!
    Attached Files Attached Files

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

    Re: Help with VLOOKUP - lookup value is a part of a string

    This formula return the last occurence that D2 found in column A (if there were duplicate D2):

    Please Login or Register  to view this content.
    or, more neater:
    Please Login or Register  to view this content.
    Quang PT

  3. #3
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Help with VLOOKUP - lookup value is a part of a string

    Return the first occurrence.

    =VLOOKUP("*"&D2&"*",A2:B81,2,)

  4. #4
    Registered User
    Join Date
    05-18-2020
    Location
    Vietnam
    MS-Off Ver
    2010
    Posts
    27

    Re: Help with VLOOKUP - lookup value is a part of a string

    Thank you very much! Your formula works perfectly!

+ 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. Find if string is a part from lookup list
    By jaryszek in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 07-23-2020, 03:22 AM
  2. [SOLVED] Recognising part numbers from within a text string and lookup prices
    By aglawrence in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 12-17-2018, 04:25 AM
  3. [SOLVED] Multiple lookup to return value based on part of a text string
    By Cleric82 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-06-2017, 09:40 AM
  4. Lookup to reference part of a string of text.
    By Cleric82 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-04-2017, 10:34 AM
  5. [SOLVED] Lookup formula to find part of a text string
    By A440 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-30-2015, 08:21 AM
  6. [SOLVED] LOOKUP using only part of a string?
    By KiwiLad in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-08-2012, 01:26 AM
  7. [SOLVED] Help with a lookup that looks for part of a string
    By Ainsley in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-02-2012, 06:02 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