In spreadsheet I'd like to use MAX to return the highest value in a range. The range needs to be defined by the value in another column. So lets say the table has three columns: Animal|Type|Length, with each animal listed designated as Type: Mammal, Bird, or Fish, along with that animal's length in feet. So a row might say:
Dog | Mammal | 2
So, in plain English I'm looking for a formula that would ask "Which is the greatest length of all the animals designated as 'Mammal' in this table?" Same for the other Types, so that I would have a table like this, with a formula populating the Max Length cells:
Type | Max Length
Mammal | 6
Bird | 5
Fish | 6
Thanks - any help greatly appreciated.