Arie Bos
Board Regular
- Joined
- Mar 25, 2016
- Messages
- 224
- Office Version
- 365
- Platform
- Windows
I have the following table:
[TABLE="class: grid, width: 100"]
<tbody>[TR]
[TD]A[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]D[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]E[/TD]
[TD]1[/TD]
[/TR]
</tbody>[/TABLE]
I use the following formula to find in col A with highest value in col B: =INDEX(A$1:A$5;MATCH(LARGE(B$1:B$5;1);B$1:B$5;0)) Result =C.
Now, to find the second largest (D) I use the same formula, where the argument in the LARGE function is now set from 1 to 2.
Because B3 and B4 are both '5', I guess the formula still returns 'C', not 'D'. Is there a way to return D as the second largest, even if C and D have both 5?
[TABLE="class: grid, width: 100"]
<tbody>[TR]
[TD]A[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]D[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]E[/TD]
[TD]1[/TD]
[/TR]
</tbody>[/TABLE]
I use the following formula to find in col A with highest value in col B: =INDEX(A$1:A$5;MATCH(LARGE(B$1:B$5;1);B$1:B$5;0)) Result =C.
Now, to find the second largest (D) I use the same formula, where the argument in the LARGE function is now set from 1 to 2.
Because B3 and B4 are both '5', I guess the formula still returns 'C', not 'D'. Is there a way to return D as the second largest, even if C and D have both 5?