+ Reply to Thread
Results 1 to 2 of 2

VLookup to display multiple results?

  1. #1
    Registered User
    Join Date
    04-25-2012
    Location
    Connecticut
    MS-Off Ver
    Excel 2003
    Posts
    4

    VLookup to display multiple results?

    Hello,

    So basically I have 3 different spreadsheets which have a column that shows a list of names attached to open assignments. I want to create a separate tab, which I can input a users name and have a column that displays all their open assignments. I was thinking a VLOOKUP might work, but obviously that will only show me the first instance of a users name & not any subsequent instances.

    I also played around w/ using a macro & VBA w/ the advanced filter. Below is what I had created so far:

    Please Login or Register  to view this content.
    It runs the first bit of code just fine, however, when it tries to apply the filter to the second sheet, it spits back an error that I just can't seem to troubleshoot. Anyone have any suggestions or tips?

  2. #2
    Forum Contributor bentleybob's Avatar
    Join Date
    02-27-2009
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2010
    Posts
    644

    Re: VLookup to display multiple results?

    Personally, I would add a helper column that identifies the name, a delimiter character (like ".", "-", or "|"), and then a sequential number. Then you can do a VLOOKUP for each instance up to the count of the number of duplicates. So, for example, if Joe has 3 open assignments, you want to look up Joe-1, Joe-2, and Joe-3.

    If you want help with specific formulas, please attach a sample file.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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