+ Reply to Thread
Results 1 to 4 of 4

Vlookup with match / index option?

  1. #1
    Forum Contributor
    Join Date
    08-10-2006
    Location
    The Netherlands
    MS-Off Ver
    Office for Mac 2016; MS Office 2016 for Windows
    Posts
    110

    Vlookup with match / index option?

    Hi All,

    Attached example file has data with which I need to do the following;

    On the tab "part list" I put in the part number in column F.
    Column C should then be populated automatically by looking up column F in the tab "Lookup" and showing the value found in column B of that tab.

    The difficulty with this is, is that when the part number in column F starts with "DN", the lookup value should end with "FD/A" and when the part number in column F starts with "Z", the lookup value should end with "TY/A".

    This last part I can't get it to work. I've tried vlookup with a index/match function inside, but it won't work somehow...

    Any ideas amongst your experts?

    Many thanks
    Peter
    Attached Files Attached Files

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,788

    Re: Vlookup with match / index option?

    when you put
    DN661-5876
    into column F

    you have three entries with different values in column B in the lookup , for that value of column F DN661-5876

    you need a unique value in column A on lookup - or another value to lookup
    the lookup will not know which one of the three to return and so will return the first match

    unless i miss- understood
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Forum Contributor
    Join Date
    01-22-2014
    Location
    genoa, italy
    MS-Off Ver
    Excel 2007
    Posts
    134

    Re: Vlookup with match / index option?

    hi, in C3:
    =IF(LEFT(F3;2)="DN";LEFT(VLOOKUP('Part list'!F3;Lookup!$A$2:$B$7;2;FALSE);5)&"FD/A";IF(LEFT(F3;1)="Z";LEFT(VLOOKUP('Part list'!F3;Lookup!$A$2:$B$7;2;FALSE);5)&"TY/A";""))

    rgds,
    AL

  4. #4
    Forum Contributor
    Join Date
    08-10-2006
    Location
    The Netherlands
    MS-Off Ver
    Office for Mac 2016; MS Office 2016 for Windows
    Posts
    110

    Re: Vlookup with match / index option?

    Hi Al,

    This is perfect, thanks a million!!

    Star earned.

    Regards,
    Peter

+ 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. Replies: 6
    Last Post: 01-28-2014, 06:09 PM
  2. Replies: 4
    Last Post: 01-13-2014, 04:16 AM
  3. Index-Match the right option?
    By smugglersblues in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-03-2013, 02:33 PM
  4. Replies: 13
    Last Post: 12-13-2012, 11:44 AM
  5. Replies: 2
    Last Post: 03-16-2012, 12:03 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