Safari Breeze
New Member
- Joined
- Aug 5, 2011
- Messages
- 7
Hi,
Any help appreciated!
Sheet 2 has a range of vertical data in Columns A & B: 'Class' & 'Names'
Sheet 1 has the 'Class' code in cell:G2 and list of names range from D4
I want a formula which uses the 'Class' code from G2 to return a horizontal list of all names (preferably alphabetically) belonging to that code.
Does anyone know what that formula should be?
My failed attempt is:
(D4)=TRANSPOSE(VLOOKUP(G2,Sheet2!$A2:B50,2,FALSE))
This returns a name from the correct class code, but when I drag the formula (D4) horizontally for more names, I get the same name again, again and again!!!
(Excel 2007)
Any help appreciated!
Sheet 2 has a range of vertical data in Columns A & B: 'Class' & 'Names'
Sheet 1 has the 'Class' code in cell:G2 and list of names range from D4
I want a formula which uses the 'Class' code from G2 to return a horizontal list of all names (preferably alphabetically) belonging to that code.
Does anyone know what that formula should be?
My failed attempt is:
(D4)=TRANSPOSE(VLOOKUP(G2,Sheet2!$A2:B50,2,FALSE))
This returns a name from the correct class code, but when I drag the formula (D4) horizontally for more names, I get the same name again, again and again!!!
(Excel 2007)