+ Reply to Thread
Results 1 to 9 of 9

Vlookup- multiple results for same criteria. how to solve issue??

  1. #1
    Registered User
    Join Date
    02-26-2016
    Location
    Chicago
    MS-Off Ver
    2010
    Posts
    17

    Vlookup- multiple results for same criteria. how to solve issue??

    Hi there,

    So I am using a concatenated vlookup of some information on a table to reference back to a table on a separate sheet. The table is obtaining multiple training completion dates in different columns. I concatenated the training name with the unique personid so on our vlookup table, the persons training date show up under the right column.

    This is working well except when a person has done training multiple times at different dates. In this case, there are 2 dates with the same reference (=vlookup(concatenate(personid, training name).

    I want to be able to pick up the smaller date as I want to see if he completed the training in a timely manner (the retaking of the training doesn't concern me).

    Any solutions on how I can achieve this?

    If I have not made myself clear, I can share a portion of my spreadsheet to illustrate my issue.

    Thanks,
    Imad.
    Last edited by imadhasan; 04-19-2016 at 04:52 PM.

  2. #2
    Forum Contributor
    Join Date
    09-24-2012
    Location
    York, England
    MS-Off Ver
    Excel 2003/07/10
    Posts
    165

    Re: Vlookup- multiple results for same criteria. how to solve issue??

    Hi
    Vlookup will return the first matching entry it finds, so if you can organise your table so that duplicates are sorted in ascending date order that should work. If you can't do that, then you could try using the Index function as an Array Formula. Its difficult to construct these as a working example without relevant data, so if you decide to try Index and you need help with it, a SMALL sample of your data, including expected results would help. Please also ensure that any sensitive information is removed.

  3. #3
    Registered User
    Join Date
    02-26-2016
    Location
    Chicago
    MS-Off Ver
    2010
    Posts
    17

    Re: Vlookup- multiple results for same criteria. how to solve issue??

    Hi Hercules,

    I have shared the spreadsheet with extra info removed. I apologize for the messiness but removing info and adjusting can be time consuming!

    Anyways the 4-6-2016 sheet is where I am testing the info. The vlookup is incorporated with additional conditions, so I don't know if this will mess with your index plan.

    If you need me to explain whats going on, let me know.
    Attached Files Attached Files
    Last edited by imadhasan; 04-22-2016 at 06:03 PM.

  4. #4
    Registered User
    Join Date
    02-26-2016
    Location
    Chicago
    MS-Off Ver
    2010
    Posts
    17

    Re: Vlookup- multiple results for same criteria. how to solve issue??

    P.S: I tried sorting the data in 'data15', and 'data16' sheets. It doesn't change my vlookup values.

  5. #5
    Registered User
    Join Date
    02-26-2016
    Location
    Chicago
    MS-Off Ver
    2010
    Posts
    17

    Re: Vlookup- multiple results for same criteria. how to solve issue??

    In my case where multiple results show up for my vlookup, is it possible that I use a small function within the vlookup to pick the older date?

    Could someone incorporate the small function within my formula? (I assume you insert it somewhere around the 'DATA16' part)

    =IF($K12<'4-6-2016'!$R$4,"n/a",IFERROR(VLOOKUP(CONCATENATE($A12,L$9),Data16!$O:$U,4,FALSE),"Not found- Please Review"))

  6. #6
    Forum Contributor
    Join Date
    09-24-2012
    Location
    York, England
    MS-Off Ver
    Excel 2003/07/10
    Posts
    165

    Re: Vlookup- multiple results for same criteria. how to solve issue??

    Hello
    I have spent some time looking at your data, and based on what you have said it should do, I can't find anything wrong. Your saying that where the concat gives a duplicate lookup value, this creates a choice of completion dates, and in this event you want to return the earliest of the two dates?
    Looking at the data16 tab I found 11 instances of duplicates with different completion dates, and in each case the earlier date is returned. Here are two examples:

    ID 23128 Completions: 4/9/2015, 18/3/2016. Date returned: 4/9/2015
    ID 23474 Completions: 4/11/2015, 14/3/2016 Date returned: 4/11/2015

    This appears to be because the completion dates are in ascending order, which I suggested as a solution in my earlier post.

    If there is still a problem, please can you repost the data, clearly marking which formulae are returning the wrong values, and telling us what the values should be. To keep it simple just post a small number of entries that show the issue.

  7. #7
    Forum Contributor
    Join Date
    09-24-2012
    Location
    York, England
    MS-Off Ver
    Excel 2003/07/10
    Posts
    165

    Re: Vlookup- multiple results for same criteria. how to solve issue??

    Sorry somehow my post was duplicated so I hope this will remove it.
    Last edited by Hercules1946; 04-22-2016 at 11:57 AM.

  8. #8
    Registered User
    Join Date
    02-26-2016
    Location
    Chicago
    MS-Off Ver
    2010
    Posts
    17

    Re: Vlookup- multiple results for same criteria. how to solve issue??

    Hercules, when changed the ascending order overall,i did not notice any changes but focusing on the instances you mentioned, it does seem to work.

    I play around a bit and it does seem to be working!

    Thanks a lot!

  9. #9
    Forum Contributor
    Join Date
    09-24-2012
    Location
    York, England
    MS-Off Ver
    Excel 2003/07/10
    Posts
    165

    Re: Vlookup- multiple results for same criteria. how to solve issue??

    Your Welcome.

+ 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 Return Results Issue
    By tstagliano in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-18-2016, 02:16 PM
  2. [SOLVED] using Vlookup with multiple results and averaging the results.
    By xatomicx in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-12-2015, 10:19 AM
  3. [SOLVED] Index, Small, Row issue with Multiple Values and need Multiple Results
    By jmantn in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-13-2014, 05:17 PM
  4. Vlookup with 2 Criteria using formula results and text
    By gjwilson1216 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-28-2014, 03:44 AM
  5. Issue with Lookup giving multiple results
    By Acollias in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-29-2013, 07:52 AM
  6. Count statement wtih multiple criteria only showing results for one criteria
    By uhlabomber in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-17-2013, 02:47 PM
  7. Replies: 1
    Last Post: 05-11-2011, 07:53 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