+ Reply to Thread
Results 1 to 19 of 19

Vlookup data and return results on multiple entries

  1. #1
    Registered User
    Join Date
    09-16-2008
    Location
    Canada
    MS-Off Ver
    Excel 2003 (silly work wont upgrade)
    Posts
    74

    Vlookup data and return results on multiple entries

    Hey Gang,

    So i have a spreadsheet that has a list of members and how many events they have attended. That is fine because i achieved this by doing a countif function on their account number. The spreadsheet has to sheets Events Attended TOTAl and List. In the list it has their name account number and what event they attended and what date. What i need is to have a function that will lookup their account number and return what event they attended but they might have been to 4 different events.

    I have a total of 5 columns dedicated to Event attended so we can tell it to lookup first event and return result then have an if function in the next column to lookup event and if its returned in previous column move onto the next event attended.

    Thanks to all for their advise in advance
    Mikey
    Last edited by mikeydaman; 02-25-2009 at 02:54 PM.

  2. #2
    Valued Forum Contributor Dunc3142's Avatar
    Join Date
    09-05-2007
    Location
    Franklin OH
    MS-Off Ver
    2000 and 2007 and 2010 @ Home & Teach 2010
    Posts
    351

    Re: Vlookup data and return results on multiple entries

    This might be what you are after.
    Attached Files Attached Files
    Last edited by Dunc3142; 02-17-2009 at 10:52 AM.
    Yes it will. we just have to figure out how...
    If I have helped you, PLEASE click the * and add to my Rep.
    Also, if the problem is SOLVED please mark it as so.

  3. #3
    Registered User
    Join Date
    09-16-2008
    Location
    Canada
    MS-Off Ver
    Excel 2003 (silly work wont upgrade)
    Posts
    74

    Re: Vlookup data and return results on multiple entries

    Hi Dunc3142,

    Thanks for the response. It looks like it is what i need but i have to play around with it. As soon as i get a chance i will test it out and post my results.

    Thanks again for your help it is really appreciated!

    Mikey

  4. #4
    Forum Contributor unley's Avatar
    Join Date
    11-27-2008
    Location
    South Australia
    MS-Off Ver
    MS Office 2007
    Posts
    253

    Re: Vlookup data and return results on multiple entries

    And thank you too Dunc3142, been looking for this. I did'nt know that listbox can do vlookup as well

  5. #5
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Vlookup data and return results on multiple entries

    Unley, if your data is in a different format and you can't/don't want to change it, post up a good clear set of sample data and we can see if there is a solution for your current setup. If you have a preferred layout for the results, mockup that as well.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  6. #6
    Registered User
    Join Date
    09-16-2008
    Location
    Canada
    MS-Off Ver
    Excel 2003 (silly work wont upgrade)
    Posts
    74

    Re: Vlookup data and return results on multiple entries

    Hey Gang,

    Thanks to all for the help,
    This is what the template looks like
    Mine was laid out differently then Dunc's Any Ideas?
    Thanks again
    Attached Files Attached Files
    Last edited by mikeydaman; 02-19-2009 at 04:45 PM.

  7. #7
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Vlookup data and return results on multiple entries

    Well, you're going to match up those two sheets aren't you? One name cell on the List, but two on the report? That's making your sheet work harder than it needs to. One box or two? Do the same on both sheets and I would opt for 1, that's sufficiently unique.

    Maybe something like this will suffice?

    Also, you should maybe start with mine. Your sheet had 3megs of hidden data in it.
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    09-16-2008
    Location
    Canada
    MS-Off Ver
    Excel 2003 (silly work wont upgrade)
    Posts
    74

    Re: Vlookup data and return results on multiple entries

    I like it JB i do! I am going to incorporate yours into mine. The hidden data was the members names i had to delete first to put in here because of it being sensitive.

    thanks a mill! I will post my results shortly.
    Mikey

  9. #9
    Registered User
    Join Date
    09-16-2008
    Location
    Canada
    MS-Off Ver
    Excel 2003 (silly work wont upgrade)
    Posts
    74

    Re: Vlookup data and return results on multiple entries

    The reason for 1 sheet having 1 name and the other have 2 fields is because the 1 with two is a generated list that has those members on it. the other one is who out of those members attended different events. If that makes any sense?


    I am having trouble getting this too work but i do need it in that format unfortunatley i cannot change it. I am having a brain fart, how do i get { } in front of the formula again.... shift? something right? I am getting the #REF error
    Last edited by mikeydaman; 02-19-2009 at 09:22 PM.

  10. #10
    Forum Contributor mewingkitty's Avatar
    Join Date
    09-29-2008
    Location
    Fort McMurray, Alberta, Canada
    MS-Off Ver
    Excel 2003
    Posts
    949

    Re: Vlookup data and return results on multiple entries

    Ctrl+shift+enter
    =IF(AND(OR(BLONDE,BRUNETTE,REDHEAD),OR(MY PLACE,HER PLACE),ME),BOW-CHICKA-BOW-WOW,ANOTHER NIGHT ON THE INTERNET)

  11. #11
    Registered User
    Join Date
    09-16-2008
    Location
    Canada
    MS-Off Ver
    Excel 2003 (silly work wont upgrade)
    Posts
    74

    Re: Vlookup data and return results on multiple entries

    Sorry guys,

    But i still can't get this to work

    JBeaucaire- I like your idea and its smiliar to mine, I understand what you are saying about why do i have Name, then First and Last Name on the other sheet. We don't have to worry about each of these sheets beacuse the sheet that has the events on will be pre populated with current names and account numbers. I won't have to add them as i go. the other sheet with list will be the ones i add when it happens. If you get what i mean.

    Thanks again, any help is appreciated

  12. #12
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Vlookup data and return results on multiple entries

    The sheet I uploaded is ready to use. Just edit the ranges appropriately and press CTRL-SHIFT-ENTER. If you get errors, post up your book with errors so we can help spot the error.

  13. #13
    Registered User
    Join Date
    09-16-2008
    Location
    Canada
    MS-Off Ver
    Excel 2003 (silly work wont upgrade)
    Posts
    74

    Re: Vlookup data and return results on multiple entries

    Hi J,

    Here is the problem, the information is sensitive so i can't acutally post that stuff but i will make a couple of dummy names for you to see what i mean

    Here it is

    Thanks again
    Attached Files Attached Files

  14. #14
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Vlookup data and return results on multiple entries

    Will the account number always be only that one person? Or could that same account number show up next to another name?

  15. #15
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Vlookup data and return results on multiple entries

    Since your sample shows the account numbers to be unique, this version works off of that number to create the "events" attended. If that is not the case, please upload a better sampling of data showing the real criteria that must be resolved.
    Attached Files Attached Files

  16. #16
    Registered User
    Join Date
    09-16-2008
    Location
    Canada
    MS-Off Ver
    Excel 2003 (silly work wont upgrade)
    Posts
    74

    Re: Vlookup data and return results on multiple entries

    Hi J,

    All account numbers are unique, I will check yours out and once again i can't thank you enough for your help.

    Thanks again
    Mike

  17. #17
    Registered User
    Join Date
    09-16-2008
    Location
    Canada
    MS-Off Ver
    Excel 2003 (silly work wont upgrade)
    Posts
    74

    Re: Vlookup data and return results on multiple entries

    JB YOU RULE!!! What was i doing wrong?? Yours works great!! Thanks again for your help. That was one heck of an if statement hah

    Much Much appreciated
    Mikey

  18. #18
    Registered User
    Join Date
    08-17-2010
    Location
    Liverpool
    MS-Off Ver
    Excel 2003
    Posts
    1

    Re: Vlookup data and return results on multiple entries

    Hi Guys,

    Can someone please help me, I've been working on trying to update our interpreter recording sheets in work and have a small problem I cant seem to get past with Vlookup.

    I am trying working on 3 coloumns at the moment, First name/Family name and Payroll number.
    What I want is to enter the interpreters first name then for vlookup to identify the correct surname and payroll number and display them. I have managed this no problem.
    My problem is that our interpreters share either the same fist name or Family name (for example there are 5 interpreters with the Fist or family name Ahmed) this is causing me difficulty as Vlookup will only display the first in the series of 5 names.

    Im aiming to type in the first name and if there are multiple interpreters sharing this name then a dro down list will appear in the Family name coloumn so I can select the correct name and the right payroll number will appear???

    Can anyone help me do this ??????

    Thanks
    Dan

  19. #19
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Vlookup data and return results on multiple entries

    HI Daniel, welcome to the Forum.

    Be sure to read through the Forum Rules so you can use and follow them effectively. For instance, you have posted a question of your own in someone else's thread, breaking forum rule #3.

    It is to your benefit NOT to do this. Threads as old as this one get little if any attention, so your question will go unseen by many contributors. New threads with properly descriptive titles garner the most attention from the many contributors we have here on the forum.

    Start your own thread, give it an accurate title, click GO ADVANCED and use the paperclip icon to attach a sample workbook making it simple for others to see exactly what you want to accomplish.

+ 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