szita2000
Board Regular
- Joined
- Apr 25, 2012
- Messages
- 101
- Office Version
- 365
- Platform
- Windows
Hi guys.
For the love of my life I can't work out a Max if formula.
What I am trying to achieve here is to get the correspondent value from C to the latest date in column A.
My idea was to get an array of the same fruits, then with the max get the largest date.
Then try to match index match it.
For the love of my life I can't work out a Max if formula.
What I am trying to achieve here is to get the correspondent value from C to the latest date in column A.
My idea was to get an array of the same fruits, then with the max get the largest date.
Then try to match index match it.
Book1.xlsx | ||||||||
---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | |||
1 | 12/06/2020 | Apple | 12 | Apple | 11 | |||
2 | 12/06/2020 | Pears | 22 | Pears | 11 | |||
3 | 12/06/2020 | Oranges | 32 | Oranges | 11 | |||
4 | 13/06/2020 | Apple | 13 | |||||
5 | 13/06/2020 | Pears | 23 | |||||
6 | 13/06/2020 | Oranges | 33 | |||||
7 | 14/06/2020 | Apple | 11 | |||||
8 | 14/06/2020 | Pears | 24 | |||||
9 | 14/06/2020 | Oranges | 34 | |||||
Sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
F1:F3 | F1 | =INDEX($C:$C,MATCH(MAX(IF($B:$B=$E1,$A:$A,"")),$A:$A,0)) |
Press CTRL+SHIFT+ENTER to enter array formulas. |