Return Multiple Items with One Lookup Value

Hi there,

Within my data set there are multiple values that I would like to return into a different table.

For example:

In the "players from australia" table I would like to search the main data set for the "AUS" tag in column B and then automatically display the names of those players.

There was something similar posted a few days ago Search sheet and return associated values for multiple matches and I tried to apply those formulas to my data but it didn't work...perhaps slightly different application of the function.

fyi: the "category" table is simply to add up the number of players from each country and return a numerical value, as opposed to the names. I also use it as the cell from which to determine which value to search and display, i.e. A2 for the AUS players to be displayed in the empty table.

Any help would be greatly appreciated!!

Ed.

User uploaded file

MacBook Pro with Retina display, OS X Yosemite (10.10.2)

Posted on Mar 1, 2015 9:03 AM

Reply
4 replies

Mar 1, 2015 10:17 AM in response to AussieEd1

You could try something like this:


User uploaded file


User uploaded file


The formula in the Index column, copied down:

=B2&COUNTIF(B$1:B2,B2)


The formula in A2 of the Players From table, copied down and right:


=INDEX(Table 1::$A,MATCH(A$1&ROW()−1,Table 1::$D,0),)


To suppress the display of the red warning triangles, you can wrap that in IFERROR, like this:


=IFERROR(INDEX(Table 1::$A,MATCH(A$1&ROW()−1,Table 1::$D,0),),"")


This takes the value in row 1, appends the row number it's on less 1, and uses MATCH to find what row contains that value in the Index column of the other table. That row number is fed to INDEX, which returns the value from column A.


SG

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Return Multiple Items with One Lookup Value

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.