List/DB Formula: Ex: max age of a subset

cmcc0rd

New Member
Joined
May 4, 2009
Messages
1
I am trying to figure out the excel 2007 database/list/array function which would take a cell containing a list of text values, look them up in a table go to the corresponding row in another column get its value and then return the maximum value for all the items in the list.

A simple example...
Given this database/2 column list:
Name Age
Sally 3
Frank 12
Mark 8
Tim 7

I am looking for something to return the Max age for the items specified in the list so in the table below-for Sally age 3, Frank age 12 returns 12:
List Max Age
Sally, Frank 12
Tim, Mark 8
Sally, Tim, Mark 8

The Name, Age, and List lists are all unsorted.
The Names are always text. The Age and max age are numbers.
List could be an array {Sally Frank} or a comma delimited string:
"Sally,Frank".

Seems like there should be a formulaic way to do this but I haven't figured it out, didn't see it on google, knowledge base, or searching forum. (Part of my problem is I'm not quite sure what the keyword/tag description is of what I am trying to do...)

Any ideas welcome. Thanks!
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.

Forum statistics

Threads
1,215,453
Messages
6,124,930
Members
449,195
Latest member
Stevenciu

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