+ Reply to Thread
Results 1 to 8 of 8

VLOOKUP Reverse Partial match question

  1. #1
    Registered User
    Join Date
    08-29-2019
    Location
    Houston, Texas
    MS-Off Ver
    15.41
    Posts
    13

    VLOOKUP Reverse Partial match question

    Hi!

    I need help with a vlookup formula. I can do a partial match i.e. "=VLOOKUP("*"&A2&"*",$B$2:$B$10,1,FALSE)", but I need to do the opposite of this because I am comparing the column with extra characters against the column with unique id's.

    Simply, I need to search for a serial number within a string in a different column. I've attached an example worksheet that should make this more clear.

    Thank you!

    Blake
    Attached Files Attached Files
    Last edited by blakeaces; 10-04-2019 at 12:45 PM.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: VLOOKUP Reverse Partial match question

    ... and what is supposed to happen in C2 to C10, where there is no 10-digit number in the corresponding cell in column B?

    What do you expect to see in C1??
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

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

    Re: VLOOKUP Reverse Partial match question

    What are you wanting to return if you can find the unique ID, and what if you can't?

    Pete

  4. #4
    Registered User
    Join Date
    08-29-2019
    Location
    Houston, Texas
    MS-Off Ver
    15.41
    Posts
    13

    Re: VLOOKUP Reverse Partial match question

    Anything, I just want to know if the 10-digit number exists in column A.

    If there is a match, return the serial number in column c1. If there is no match, return false or error.
    Last edited by blakeaces; 10-04-2019 at 12:08 PM.

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

    Re: VLOOKUP Reverse Partial match question

    Try this in C1:

    =IF(COUNTIF($B$1:$B$10,"*"&A1&"*"),"yes","no")

    then copy down to C10. The results relate to the code in that row.

    Hope this helps.

    Pete

  6. #6
    Registered User
    Join Date
    08-29-2019
    Location
    Houston, Texas
    MS-Off Ver
    15.41
    Posts
    13

    Re: VLOOKUP Reverse Partial match question

    Sorry Pete,

    I'm not really sure how to explain this concisely. The problem is that the range I need to check is column A, not column B. I need the formula to look at each entry in column A and see if exists in column B.

    I've attached a new version of the example sheet to this comment. Hopefully it is more clear. I've also manually done what I want the formula to do.

    Thank you for your patience,

    Blake
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    08-29-2019
    Location
    Houston, Texas
    MS-Off Ver
    15.41
    Posts
    13

    Re: VLOOKUP Reverse Partial match question

    Wait, I think I figured it out. I just switched the range in your formula.

    Thank you!

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: VLOOKUP Reverse Partial match question

    or....

    =IF(SUMPRODUCT(--(ISNUMBER(SEARCH(A1,$C$1:$C$10))))>0,"Yes","No")

+ 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. [SOLVED] assistance on partial match question with advanced filter
    By JEAN1972 in forum Excel General
    Replies: 3
    Last Post: 03-28-2019, 02:27 PM
  2. VLOOKUP with a Partial Match
    By pluto_ljd in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 07-17-2018, 01:28 PM
  3. Reverse Vlookup Partial String Match
    By Premmadaan in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-22-2018, 08:38 PM
  4. reverse vlookup and match formula
    By sp1974 in forum Excel General
    Replies: 8
    Last Post: 07-24-2014, 03:13 PM
  5. VLOOKUP partial string question
    By sneaders in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-11-2013, 11:42 PM
  6. Reverse Partial match lookup
    By Stueymac in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-05-2013, 05:12 AM
  7. Partial Vlookup Match
    By OptionTrader in forum Excel General
    Replies: 12
    Last Post: 11-15-2009, 08:28 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