+ Reply to Thread
Results 1 to 7 of 7

VLOOKUP match on first x values or ignore last x values - partial match

  1. #1
    Registered User
    Join Date
    03-07-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    3

    VLOOKUP match on first x values or ignore last x values - partial match

    test.xlsxHey guys,

    I have full part numbers that I need matched with part number families. 123-456-789 needs to match 123-456-xxx for example. Is there a way to do that? =VLOOKUP(A3,C3:D6,2) obviously doesn't work Thanks!

    A B C E
    Part number Yes or No Part family
    123-456-789 #N/A 123-456-xxx yes
    123-456-456 234-567-xxx yes
    123-456-888 345-678-xxx no
    234-567-898
    234-567-888
    234-567-882
    345-678-111
    345-678-555
    345-678-888

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

    Re: VLOOKUP match on first x values or ignore last x values - partial match

    Maybe:
    =VLOOKUP(LEFT(A3,8)&"xxx",$C$3:$D$5,2,0)
    Quang PT

  3. #3
    Forum Contributor
    Join Date
    08-24-2006
    Location
    Sevenoaks, Kent
    MS-Off Ver
    Office 365 ProPlus
    Posts
    459

    Re: VLOOKUP match on first x values or ignore last x values - partial match

    What about
    Please Login or Register  to view this content.

  4. #4
    Valued Forum Contributor
    Join Date
    12-25-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2016
    Posts
    506

    Re: VLOOKUP match on first x values or ignore last x values - partial match

    Hi bobtu, try this array formula (ctrl+shift+enter) in B3 and copy down till B11.

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





    _______________________________________________________________________________________________________________________________
    1. Click on the * Add Reputation if you think someone helped you
    2. Mark your thread as SOLVED when question is resolved

    Alvin

  5. #5
    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: VLOOKUP match on first x values or ignore last x values - partial match

    Or

    =IF(ISNA(VLOOKUP(LEFT(A3,7)&"*",$C$3:$D$6,1,0)),"No","Yes")
    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

  6. #6
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: VLOOKUP match on first x values or ignore last x values - partial match

    Another way is this array formula, confirm it with Ctrl+Shift+Enter

    Please Login or Register  to view this content.
    and copy it down.
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

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

    Re: VLOOKUP match on first x values or ignore last x values - partial match

    Array Formula:

    =INDEX($D$3:$D$5,MATCH(LEFT(A3,LEN(A3)-FIND("-",A3,1)),LEFT($C$3:$C$5,LEN($C$3:$C$5)-FIND("-",$C$3:$C$5,1)),0))

    or check the file

    Azumi
    Attached Files Attached Files

+ 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] VLOOKUP match on first x values or ignore last x values - partial match
    By bobtu in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-17-2014, 10:00 PM
  2. Vlookup True not working - need partial string match and returned values
    By leishab in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-20-2013, 04:44 PM
  3. [SOLVED] Check if Cell Contains any values from a list, partial match
    By scottclayton in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-22-2013, 05:39 AM
  4. Formula needed to return values for partial or full match
    By IntRes in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-07-2012, 08:32 AM
  5. Lookup multiple partial match conditions and return values
    By darklans in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 04-18-2012, 03:26 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