+ Reply to Thread
Results 1 to 3 of 3

VLOOKUP Multiple Occurrence for Same Lookup Value

  1. #1
    Forum Contributor
    Join Date
    01-07-2012
    Location
    Bangalore
    MS-Off Ver
    Office 365
    Posts
    368

    Smile VLOOKUP Multiple Occurrence for Same Lookup Value

    Hello Friends,

    Need Your Help to accomplish VLOOKUP for multiple instances of a same Lookup value

    First let me explain about my file:-

    Table~1:-

    1. B2:B19 I have list of items which required to build a product
    2. D2:D19 I have list of shortages against each item
    3. C2:C19 I have list of dates when each item shortage will get fulfilled

    Table~2:-

    1. C22:C31 I have picked the largest 10 different dates from Table1 by using LARGE formula.

    Here I need your help,

    Against each date which is update C22:C31, respective shortage qty has to get VLOOKUPED.

    When there is a same lookup value, it has to keep pick next value (Shortage Qty) for same date.

    Note: If we can achieve this with formula, it would be really great!

    Immediate help is really appreciated!

    Thanks & Regards,
    Rajeshkumar R
    Attached Files Attached Files
    Last edited by Rajeshkumar R; 02-14-2014 at 02:59 AM. Reason: SOLVED

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: VLOOKUP Multiple Occurrence for Same Lookup Value

    hi Rajesh. try this array formula in D22:
    =INDEX($D$2:$D$19,SMALL(IF($C$2:$C$19=C22,ROW($C$2:$C$19)),COUNTIF(C$22:C22,C22))-ROW($C$2)+1)

    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Forum Contributor
    Join Date
    01-07-2012
    Location
    Bangalore
    MS-Off Ver
    Office 365
    Posts
    368

    Re: VLOOKUP Multiple Occurrence for Same Lookup Value

    Hi benishiryo,

    Thanks a lot for your instant response; it really helped me a lot!

    Your suggested formula gives the output exactly what I was looking for!

    Thanks & Regards,
    Rajeshkumar R

+ 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] Lookup nth occurrence
    By Blake 7 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-22-2013, 06:04 PM
  2. [SOLVED] Lookup value that is the2nd or 3rd occurrence
    By ssword in forum Excel General
    Replies: 1
    Last Post: 05-25-2012, 11:43 AM
  3. Replies: 5
    Last Post: 03-04-2012, 03:37 PM
  4. Multiple occurrence => 1 occurrence
    By exhortae in forum Excel General
    Replies: 4
    Last Post: 09-08-2010, 05:00 AM
  5. [SOLVED] V Lookup 2nd Occurrence
    By Rodney in forum Excel - New Users/Basics
    Replies: 8
    Last Post: 04-27-2005, 01:06 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