+ Reply to Thread
Results 1 to 9 of 9

VLOOKUP or Index Match

  1. #1
    Registered User
    Join Date
    06-28-2012
    Location
    Shawano, WI
    MS-Off Ver
    MS365 version 2310
    Posts
    99

    VLOOKUP or Index Match

    Hello,

    I would like to be able to use a formula that will look up a value and then give me back a corresponding value. I have used the VLOOKUP formula and also some Index Match formulas in the past. The issue is that the value that I want to be matching could have a different starting number in the series though all other numbers/letters in the series will be the same.

    Example:
    001HO12345
    501HO12345

    Are the same animal though I want to have an input sheet that a person can enter either of these values in it and then will link other data in a separate table to it. For your information the values on the other table will have the values stored as 001HO12345.

    The easy answer is to have the person only key in the 001HO12345 and not use the other. That being said, building flexibility will be a great help.

    Thank you in advance!

  2. #2
    Forum Expert RobertMika's Avatar
    Join Date
    06-22-2009
    Location
    Haverhill, UK
    MS-Off Ver
    Excel 2003-13
    Posts
    1,530

    Re: VLOOKUP or Index Match

    Attached your workbook as your request is not very clear...
    If you are http://www.excelforum.com/image.php?type=sigpic&userid=125481&dateline=1392355029happy with the results, please add to the contributor's
    reputation by clicking the reputation icon (star icon).




    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.
    To undo, select Thread Tools-> Mark thread as Unsolved.
    http://www.excelaris.co.uk

  3. #3
    Forum Contributor
    Join Date
    05-07-2013
    Location
    apple valley ca
    MS-Off Ver
    Excel 2007
    Posts
    110

    Re: VLOOKUP or Index Match

    try this

    this should work for you


    this sheet does everything you asked.. it can do a partial name lookup and return the results by filtering out the key data.. thus searching "501ho" returns the result of "501ho12345".. just sayin'
    Attached Files Attached Files
    Last edited by xwarlock10x; 12-20-2013 at 02:24 PM.

  4. #4
    Registered User
    Join Date
    06-28-2012
    Location
    Shawano, WI
    MS-Off Ver
    MS365 version 2310
    Posts
    99

    Re: VLOOKUP or Index Match

    I have attached an example of what I would like to be able to do. In column B I would like to input either form of the number 001HO or 501HO and have the columns
    C - G populated with the information from the Bull tab.

    Thank you for all the help!Match Example.xlsx

  5. #5
    Registered User
    Join Date
    12-20-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: VLOOKUP or Index Match

    Hi mma,

    Try this for the name in the table: =VLOOKUP(IF(LEFT(B2,3)=1,B2,CONCATENATE("001"&RIGHT(B2,7))),Bulls!A:B,2,FALSE)

  6. #6
    Forum Expert RobertMika's Avatar
    Join Date
    06-22-2009
    Location
    Haverhill, UK
    MS-Off Ver
    Excel 2003-13
    Posts
    1,530

    Re: VLOOKUP or Index Match

    Hmm.
    So if I type lets say 250 what I will get?
    I assume that HO11427 is common for 001HO11427
    and 501HO11427
    but 001HO11022
    and 001HO11427
    have the same 3 starting letter.

  7. #7
    Registered User
    Join Date
    12-20-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: VLOOKUP or Index Match

    Robert,

    taking your suggestion, here's the formula so it only works for 001 and 501 codes (for the name part of the table):

    =IF(LEFT(B2,3)="501",VLOOKUP(CONCATENATE("001"&RIGHT(B2,7)),Bulls!A:B,2,FALSE),VLOOKUP(B2,Bulls!A:B,2,FALSE))

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

    Re: VLOOKUP or Index Match

    Pls check the file, something like this?

    Azumi
    Attached Files Attached Files

  9. #9
    Forum Contributor
    Join Date
    05-07-2013
    Location
    apple valley ca
    MS-Off Ver
    Excel 2007
    Posts
    110

    Re: VLOOKUP or Index Match

    Quote Originally Posted by xwarlock10x View Post
    try this

    this should work for you


    this sheet does everything you asked.. it can do a partial name lookup and return the results by filtering out the key data.. thus searching "501ho" returns the result of "501ho12345".. just sayin'


    in one cell put this... this is a count of formula which turns on and off the main formula.. =SUMPRODUCT(--ISNUMBER(SEARCH(E4,$A$4:$A$25)))

    make a search cell then in another cells put this then drag down.. enter it with Ctrl/SHIFT/Enter (array formula) i t will put the { } around the formula..
    {=IF(ROWS(E$7:E7)>$D$4,"",INDEX($A$4:$A$25,SMALL(IF(ISNUMBER(SEARCH($E$4,$A$4:$A$25)),ROW($A$4:$A$25)-ROW($A$4)+1),(ROWS(E$7:E7)))))}

    this will allow for a partial name lookup and return the results with the partial name in ANY sequence
    good luck

+ 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. help with index/match or vlookup/match formula
    By tsiguy96 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-27-2013, 07:57 PM
  2. vlookup? match? index? MULTIPLE criteria for vlookup search problem....
    By aborg88 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 02-11-2013, 09:56 AM
  3. Replies: 13
    Last Post: 12-13-2012, 11:44 AM
  4. Replies: 2
    Last Post: 03-16-2012, 12:03 PM
  5. match value in one column to adjacent value: use vlookup or index/match?
    By conorsgaffney in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-28-2010, 04:59 PM

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