+ Reply to Thread
Results 1 to 6 of 6

Return associated data for all instances for employee ID number

  1. #1
    Registered User
    Join Date
    10-24-2012
    Location
    Indiana
    MS-Off Ver
    Excel 2010
    Posts
    3

    Return associated data for all instances for employee ID number

    Good afternoon, folks. Here's my structure and dilemma:

    Column A: sorted, unique employee ID numbers
    Column B: sorted, non-unique employee ID numbers that are associated with:
    Column C: date
    Column D: time

    I want to create a formula to return the data in columns B, C and D each time column B matches column A. I've screwed around with =VLOOKUP(a1,b$1:d17116,1,false), but that only seems to return one instance and only the value in column B. Please see the attached file.

    Thanks for your consideration!

    Heather
    Attached Files Attached Files
    Last edited by shoobootie; 10-25-2012 at 09:44 AM. Reason: Solved!

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Return associated data for all instances for employee ID number

    Okay, you did not give an example of how you want this laid out.
    In your example, there is a match for A17 (023317006) in B1930 and B1931.
    Do you want the values from C1930, C1931, D1930 and D1931 in E through H17?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    10-24-2012
    Location
    Indiana
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Return associated data for all instances for employee ID number

    I was going with beggars can't be choosy about format, but the ultimate would be to have the returns on Sheet2 where row one would be B1930|c1930|d1930 and row two would be b1931|c1931|d1931. However, I will take it in any way that shows all instances of a match and the associated date and time info.

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Return associated data for all instances for employee ID number

    Would this work for you, since you already have Col B sorted by value so that duplicate/triplicate values will be in adjoining rows

    First, insert a header row so you can filter later
    In E2 (first row of data)
    =IF(ISNUMBER(MATCH(B2,A:A,0)),"Y","N")
    Copied down to the end of data
    Then Filter on "Y" and only matching values will show.
    Would that work for you?

  5. #5
    Registered User
    Join Date
    10-24-2012
    Location
    Indiana
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Return associated data for all instances for employee ID number

    That did the trick! For the rest of the day, people must refer to you as Super Genius. Thank you so much

  6. #6
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Return associated data for all instances for employee ID number

    Thanks Heather, I'll inform my co-workers.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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