+ Reply to Thread
Results 1 to 2 of 2

VLookup for multiple occurences of a value

  1. #1
    Registered User
    Join Date
    03-12-2012
    Location
    Manchester, England
    MS-Off Ver
    MS 365
    Posts
    52

    VLookup for multiple occurences of a value

    Hi Guys
    In my worksheet I have a Master Tab containing a list of data consisting of Codes in one column and a description in the 2nd. The codes appear multiple times, each time with a different description.
    My worksheet also has multiple tabs each one relating to one of the codes.
    I have a cell in each tab which displays the code and I want to compile a list of all the descriptions relating to each code within it's corresponding tab.
    If I used VLookup it would only return the first instance of the code. I want to use the cell reference in each tab to perform a lookup and return all of the descriptions for every instance of that code in the Master Tab.
    I have attached an example worksheet to, hopefully, show you what I mean.
    thanks everyone.
    Stay safe
    regards
    Chris
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,078

    Re: VLookup for multiple occurences of a value

    How about, in A2 copied down
    =IFERROR(INDEX('Master Tab'!$B$2:$B$100,AGGREGATE(15,6,(ROW('Master Tab'!$B$2:$B$100)-ROW('Master Tab'!$B$2)+1)/('Master Tab'!$A$2:$A$100=B$1),ROWS(A$2:A2))),"")

+ 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 in VBA to find search with multiple occurences
    By iswizzle in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 11-30-2015, 10:11 AM
  2. VLOOKUP to find multiple occurences
    By valhallaone in forum Excel Formulas & Functions
    Replies: 19
    Last Post: 12-20-2013, 02:55 PM
  3. Need help! Array Forumla to provide multiple occurences of same vlookup!?
    By reeserobs in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 01-22-2013, 10:43 PM
  4. Vlookup to find all occurences (based on dropdown value)
    By D_N_L in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-17-2012, 08:21 AM
  5. Can't use vlookup to count multiple occurences in same collumn?
    By The Hylander in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-07-2009, 06:15 AM
  6. VLOOKUP Multiple Occurences of Same Reference?
    By anagaraj in forum Excel General
    Replies: 2
    Last Post: 01-06-2009, 12:59 PM
  7. Vlookup date from multiple occurences
    By markmac234 in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 05-26-2008, 10:31 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