Populate a List - VLOOKUP

sarah04

New Member
Joined
May 12, 2011
Messages
14
Hi all! I am trying to populate a list in sheet 2 based on sheet one. I tried VLOOKUP and that worked fine for the first item... but this only brings the first match.

Excel Workbook
ABC
9Sheet 1
10TeamNameTitle
11Mayor TeamPaulineLeadership
12Banker TeamDanielTeller
13Mayor TeamEricaLeadership
14
15Sheet 2
16Mayor Team
17here, list employeeshere, list their titles
18who are part of the
19Mayor Team.
20
21VLOOKUP($A$15,'Sheet 1'!$A$11:$C$12,2,FALSE)
22the vlookup will only bring the FIRST employee listed in sheet 1 who is on the Mayor Team
23
Sheet2



Thanks!
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
That's the way VLOOKUP works, just returns the first match. I tried to come up with something quick for this; I can do it but need some time...

If you still need this can work on later...
 
Upvote 0
Yes, I would appretiate it!

I tried using a countif with row index? but I couldn't quite get it.... it brings up a different resource's name. I can't post the formula here because it's confidential information, but here's the idea I was running with:

=IF(COUNTIF(Team,reference cell)>ROW()-ROW(cell),INDEX(ResourceName,SMALL(IF(team=reference cell,ROW(Team)-ROW(current result)+1),ROW()-ROW(reference cell)+1)),"-")
 
Upvote 0
Well, I didn't think I could use the pivot tables since I'll be entering more data in the rows following the lookup, to be entered weekly. Right? I could be wrong.
 
Upvote 0
Yes, I would appretiate it!

I tried using a countif with row index? but I couldn't quite get it.... it brings up a different resource's name. I can't post the formula here because it's confidential information, but here's the idea I was running with:

=IF(COUNTIF(Team,reference cell)>ROW()-ROW(cell),INDEX(ResourceName,SMALL(IF(team=reference cell,ROW(Team)-ROW(current result)+1),ROW()-ROW(reference cell)+1)),"-")
There is an example here:

http://www.mrexcel.com/forum/showpost.php?p=2696961&postcount=3
 
Upvote 0
Sure you can keep adding, you will just need to refresh your pivot table source data every time you add new lines.

it would look something like this
017.gif
 
Upvote 0

Forum statistics

Threads
1,224,590
Messages
6,179,762
Members
452,940
Latest member
rootytrip

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top