colinheslop1984
Board Regular
- Joined
- Oct 14, 2016
- Messages
- 129
- Office Version
- 2016
A | B | C | D | E | F | G | H | |
1 | week 1 | week 1 | week 2 | week 2 | week 3 | week 3 | ||
2 | W | R | W | R | W | R | WB | RB |
3 | 25 | 10 | 30 | 8 | 30 | 12 | 30 | FIND THIS NUMBER |
I have a table of data that looks like above.
I have used MAX function to find the highest occurring number in cells labelled with "W".
In cell H3, I want to find the highest occurring number in columns titled "R", where "W" value = G3
I have used =IF(A3=G3,B3,IF(C3=G3,D5,IF(E3=G3,F3,)))
But where a "W" number repeats in the range, it just returns the first number in the table that matches the criteria of the formula (D3), rather than the highest one, which would be F3 in this case.
Can someone help write a formula that would fix this?
Thank you