Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

How do I return a value from a column based on info from neighboring columns?

I have a table of data that looks similar to this:


WeightNameSchoolDivision

106

Name1School11
106Name2School22
106Name3School33
106Name4School44
113Name5School51
113Name6School62
113Name7School13
113Name8School34


It's a very large table, so there will be multiple matches for Schools, and occasionally a few matches for Names, but there will always be only one match for a given Weight and Division.


In a separate table, how can I get the name of the person associated with the unique weight and division?


In my head, the formula goes" "Look in the Weight column to find 106, then look in the Division column to find 4, then return the value from the Name column." But I can't figure out the formula that will do that.


Any thoughts?

MacBook Pro, OS X Yosemite (10.10.2), Numbers 3.5.2

Posted on Apr 22, 2015 9:27 AM

Reply
Question marked as Best reply

Posted on Apr 22, 2015 11:40 AM

Hi momogabi,


This can be easily done with an index column.

User uploaded file

The formula I used in your original table for the index column is:

=A2&"-"&D2. This was filled down. The column can be hidden.


You can see the formula in the search table. If I wanted to eliminate the index column in that table the formula would look something like:

=INDEX('Table 1-1'::B,MATCH(A2&"-"&B2,'Table 1-1'::E,0),1)


Hope this helps.


quinn

3 replies
Question marked as Best reply

Apr 22, 2015 11:40 AM in response to momogabi

Hi momogabi,


This can be easily done with an index column.

User uploaded file

The formula I used in your original table for the index column is:

=A2&"-"&D2. This was filled down. The column can be hidden.


You can see the formula in the search table. If I wanted to eliminate the index column in that table the formula would look something like:

=INDEX('Table 1-1'::B,MATCH(A2&"-"&B2,'Table 1-1'::E,0),1)


Hope this helps.


quinn

How do I return a value from a column based on info from neighboring columns?

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