+ Reply to Thread
Results 1 to 6 of 6

Partial vlookup help

  1. #1
    Registered User
    Join Date
    08-19-2013
    Location
    Arizona
    MS-Off Ver
    Excel 2010
    Posts
    2

    Question Partial vlookup help

    I have a list of product codes and the number of characters vary. I'm trying to lookup a product from my product list to a partial part number, returning the partial part number. The first list is my product list and the second list is the partial part list. The difficulty in this is that the partial part list isn't nessarily the first few characters of the product, some are the first few characters and some are characters in the middle of the list. Does anyone know if there's away to look these up?

    Product Codes
    USX2065-JZX-TR
    LAN8710A-EZC-TR
    SEC1300-JZX-01G1
    USX2064-AEZG-TR
    USB5434-3086JZX-TR


    Partial Part #
    X2065
    LAN8710
    SEC1300
    2064
    3086JZ

  2. #2
    Valued Forum Contributor
    Join Date
    09-10-2012
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2010
    Posts
    929

    Re: Partial vlookup help

    It's dangerous, but have your tried the SEARCH function?

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

    Re: Partial vlookup help

    Hello & Welcome to the Forum,

    Not 100% sure what you are trying to achieve, but if I understand you correctly, in A1:A5 you have the Product Codes and say in B1:B5 you would like to return the Partial Part # if it matches the list.

    Please Login or Register  to view this content.
    In B1 copied down...

    =LOOKUP(9.99999999999999E+307,SEARCH(MyWordList,$A1),MyWordList)

    MyWordList is a named range with the Partial Part # list...
    HTH
    Regards, Jeff

  4. #4
    Valued Forum Contributor
    Join Date
    09-15-2011
    Location
    Chennai, India
    MS-Off Ver
    Excel 2010
    Posts
    436

    Re: Partial vlookup help

    You can try this file as well.
    Attached Files Attached Files
    Please click 'Add reputation', if my answer helped you.

  5. #5
    Registered User
    Join Date
    08-19-2013
    Location
    Arizona
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Partial vlookup help

    Quote Originally Posted by ramananhrm View Post
    You can try this file as well.

    Thanks, that excel sheet helped a lot.

    In Model 4, what is 2^15,1 doing or what does it mean?
    =+LOOKUP(2^15,1/(ISNUMBER(SEARCH($A$9:$A$13,A6))),$A$9:$A$13)
    Last edited by MrsBing; 08-20-2013 at 12:15 PM.

  6. #6
    Valued Forum Contributor
    Join Date
    09-10-2012
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2010
    Posts
    929

    Re: Partial vlookup help

    LOOKUP(lookup_value,lookup_vector,result_vector) has 3 parameters separated by commas (so 2^15,1 is actually 2^15 and the 1 is part of the second parameter)

    2^15 is just the lookup_value (it's just a large number like Jeff's 9.99E+307)

    1/(ISNUMBER(SEARCH($A$9:$A$13,A6))) produces a lookup_vector that produces an array of errors except the one successful searched item

    $A$9:$A$13 is the result_vector

    Hope this helps...

+ 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. vlookup with a partial name
    By tonyc79 in forum Excel General
    Replies: 3
    Last Post: 04-29-2015, 10:16 AM
  2. [SOLVED] VLOOKUP with partial match
    By Nekk in forum Excel General
    Replies: 7
    Last Post: 06-28-2012, 11:46 AM
  3. Partial text vlookup
    By vijanand1279 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-06-2011, 05:35 AM
  4. Vlookup - Partial Match
    By VegasL in forum Excel General
    Replies: 8
    Last Post: 06-08-2008, 03:25 AM
  5. how do i VLOOKUP for partial value?
    By ranjan in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-04-2006, 12:26 AM

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