I'm looking for a formula to find a max value and then return an associated field
E.g. On sheet 1 I might have ABC1 in cell A1. I'd like a formula in Cell B1 that:
Goes to Sheet 2 and looks at the data - e.g.:
ABC1 11 Banana
ABC1 15 Apple
DEF3 32 Peach
DEF3 18 Pineapple
ABC1 20 Lemon
It would first only look at the ABC1 codes
Then it would find the row with the maximum value of those (in this case the line with value 20)
Then the formula would return the associated word with that row - in this case Lemon
I'm thinking there might be a cool array formula to do this - but maybe I'm asking too much ?
Dan
E.g. On sheet 1 I might have ABC1 in cell A1. I'd like a formula in Cell B1 that:
Goes to Sheet 2 and looks at the data - e.g.:
ABC1 11 Banana
ABC1 15 Apple
DEF3 32 Peach
DEF3 18 Pineapple
ABC1 20 Lemon
It would first only look at the ABC1 codes
Then it would find the row with the maximum value of those (in this case the line with value 20)
Then the formula would return the associated word with that row - in this case Lemon
I'm thinking there might be a cool array formula to do this - but maybe I'm asking too much ?
Dan