WaqasTariq
Board Regular
- Joined
- Jun 26, 2012
- Messages
- 58
- Office Version
- 365
I am trying to find where the top 3 values in a range are stored. That part is done, however, if one or more of the top 3 have the same value, I only get the same cell locations and not the top 3.
Here is how my data looks like:
[TABLE="width: 500"]
<tbody>[TR]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[TD="align: center"]C[/TD]
[TD="align: center"]D[/TD]
[TD="align: center"]E[/TD]
[TD="align: center"]F[/TD]
[TD="align: center"]G[/TD]
[TD="align: center"]H[/TD]
[TD="align: center"]I[/TD]
[TD="align: center"]J[/TD]
[/TR]
[TR]
[TD][TABLE="width: 33"]
<tbody>[TR]
[TD="class: xl66, width: 33, align: right"]0.22[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 33"]
<tbody>[TR]
[TD="class: xl66, width: 33, align: right"]0.12[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 33"]
<tbody>[TR]
[TD="class: xl66, width: 33, align: right"]0.19[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 33"]
<tbody>[TR]
[TD="class: xl66, width: 33, align: right"]0.22[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 33"]
<tbody>[TR]
[TD="class: xl66, width: 33, align: right"]0.32[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 33"]
<tbody>[TR]
[TD="class: xl66, width: 33, align: right"]0.27[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 33"]
<tbody>[TR]
[TD="class: xl66, width: 33, align: right"]0.25[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 33"]
<tbody>[TR]
[TD="class: xl66, align: right"]0.95[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 33"]
<tbody>[TR]
[TD="class: xl66, align: right"]0.95[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 33"]
<tbody>[TR]
[TD="class: xl66, align: right"]0.95[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
Formula I am using:
[TABLE="width: 500"]
<tbody>[TR]
[TD="align: center"]L[/TD]
[TD="align: center"]M[/TD]
[TD="align: center"]N[/TD]
[/TR]
[TR]
[TD]=MATCH(LARGE(A1:J1,1),A1:J1,0)[/TD]
[TD]=MATCH(LARGE(A1:J1,2),A1:J1,0)[/TD]
[TD]=MATCH(LARGE(A1:J1,3),A1:J1,0)[/TD]
[/TR]
</tbody>[/TABLE]
Result:
[TABLE="width: 500"]
<tbody>[TR]
[TD="align: center"]L[/TD]
[TD="align: center"]M[/TD]
[TD="align: center"]N[/TD]
[/TR]
[TR]
[TD="align: center"]8[/TD]
[TD="align: center"]8[/TD]
[TD="align: center"]8[/TD]
[/TR]
</tbody>[/TABLE]
Result I want:
[TABLE="width: 500"]
<tbody>[TR]
[TD="align: center"]L[/TD]
[TD="align: center"]M[/TD]
[TD="align: center"]N[/TD]
[/TR]
[TR]
[TD="align: center"]8[/TD]
[TD="align: center"]9[/TD]
[TD="align: center"]10[/TD]
[/TR]
</tbody>[/TABLE]
Where 8 is column H, 9 is column I and 10 is column J.
I will appreciate any help!
Here is how my data looks like:
[TABLE="width: 500"]
<tbody>[TR]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[TD="align: center"]C[/TD]
[TD="align: center"]D[/TD]
[TD="align: center"]E[/TD]
[TD="align: center"]F[/TD]
[TD="align: center"]G[/TD]
[TD="align: center"]H[/TD]
[TD="align: center"]I[/TD]
[TD="align: center"]J[/TD]
[/TR]
[TR]
[TD][TABLE="width: 33"]
<tbody>[TR]
[TD="class: xl66, width: 33, align: right"]0.22[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 33"]
<tbody>[TR]
[TD="class: xl66, width: 33, align: right"]0.12[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 33"]
<tbody>[TR]
[TD="class: xl66, width: 33, align: right"]0.19[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 33"]
<tbody>[TR]
[TD="class: xl66, width: 33, align: right"]0.22[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 33"]
<tbody>[TR]
[TD="class: xl66, width: 33, align: right"]0.32[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 33"]
<tbody>[TR]
[TD="class: xl66, width: 33, align: right"]0.27[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 33"]
<tbody>[TR]
[TD="class: xl66, width: 33, align: right"]0.25[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 33"]
<tbody>[TR]
[TD="class: xl66, align: right"]0.95[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 33"]
<tbody>[TR]
[TD="class: xl66, align: right"]0.95[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 33"]
<tbody>[TR]
[TD="class: xl66, align: right"]0.95[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
Formula I am using:
[TABLE="width: 500"]
<tbody>[TR]
[TD="align: center"]L[/TD]
[TD="align: center"]M[/TD]
[TD="align: center"]N[/TD]
[/TR]
[TR]
[TD]=MATCH(LARGE(A1:J1,1),A1:J1,0)[/TD]
[TD]=MATCH(LARGE(A1:J1,2),A1:J1,0)[/TD]
[TD]=MATCH(LARGE(A1:J1,3),A1:J1,0)[/TD]
[/TR]
</tbody>[/TABLE]
Result:
[TABLE="width: 500"]
<tbody>[TR]
[TD="align: center"]L[/TD]
[TD="align: center"]M[/TD]
[TD="align: center"]N[/TD]
[/TR]
[TR]
[TD="align: center"]8[/TD]
[TD="align: center"]8[/TD]
[TD="align: center"]8[/TD]
[/TR]
</tbody>[/TABLE]
Result I want:
[TABLE="width: 500"]
<tbody>[TR]
[TD="align: center"]L[/TD]
[TD="align: center"]M[/TD]
[TD="align: center"]N[/TD]
[/TR]
[TR]
[TD="align: center"]8[/TD]
[TD="align: center"]9[/TD]
[TD="align: center"]10[/TD]
[/TR]
</tbody>[/TABLE]
Where 8 is column H, 9 is column I and 10 is column J.
I will appreciate any help!