Hi,
I have the following table;
[TABLE="class: grid, width: 100, align: left"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Alex[/TD]
[TD]60[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Brad[/TD]
[TD]60[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Chris[/TD]
[TD]50[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Dave[/TD]
[TD]60[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]Elli[/TD]
[TD]70[/TD]
[/TR]
</tbody>[/TABLE]
I then rank 1 to 5 from highest to smallest. Using =LARGE(B:B,1), =LARGE(B:B,2) and so on down to =LARGE(B:B,5)
According to the value of each ranked item in column E below, I need to then assign the person in that position. I get the following output;
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Alex[/TD]
[TD]60[/TD]
[TD][/TD]
[TD]Rank[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Brad[/TD]
[TD]60[/TD]
[TD][/TD]
[TD]1[/TD]
[TD]70[/TD]
[TD]Elli[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Chris[/TD]
[TD]50[/TD]
[TD][/TD]
[TD]2[/TD]
[TD]60[/TD]
[TD]Alex[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Dave[/TD]
[TD]60[/TD]
[TD][/TD]
[TD]3[/TD]
[TD]60[/TD]
[TD]Alex[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]Elli[/TD]
[TD]70[/TD]
[TD][/TD]
[TD]4[/TD]
[TD]60[/TD]
[TD]Alex[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]5[/TD]
[TD]50[/TD]
[TD]Chris[/TD]
[/TR]
</tbody>[/TABLE]
I get Alex appearing 3 times in column F but need the name of the other 2 people that also have a value of 60 (i.e. Brad and Dave). I am using =INDEX($A$1:$A$5,MATCH(E2,$B$1:$B$5,1)) in column F above.
Without having to use VBA code, how can I solve this so that in rank 2, 3 & 4 I get the names Alex, Brad & Dave? These 3 names can appear in any order and doesn't have to be alphabetical. Also the source data range in terms of number of rows is dynamic.
Thanks
I have the following table;
[TABLE="class: grid, width: 100, align: left"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Alex[/TD]
[TD]60[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Brad[/TD]
[TD]60[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Chris[/TD]
[TD]50[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Dave[/TD]
[TD]60[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]Elli[/TD]
[TD]70[/TD]
[/TR]
</tbody>[/TABLE]
I then rank 1 to 5 from highest to smallest. Using =LARGE(B:B,1), =LARGE(B:B,2) and so on down to =LARGE(B:B,5)
According to the value of each ranked item in column E below, I need to then assign the person in that position. I get the following output;
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Alex[/TD]
[TD]60[/TD]
[TD][/TD]
[TD]Rank[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Brad[/TD]
[TD]60[/TD]
[TD][/TD]
[TD]1[/TD]
[TD]70[/TD]
[TD]Elli[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Chris[/TD]
[TD]50[/TD]
[TD][/TD]
[TD]2[/TD]
[TD]60[/TD]
[TD]Alex[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Dave[/TD]
[TD]60[/TD]
[TD][/TD]
[TD]3[/TD]
[TD]60[/TD]
[TD]Alex[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]Elli[/TD]
[TD]70[/TD]
[TD][/TD]
[TD]4[/TD]
[TD]60[/TD]
[TD]Alex[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]5[/TD]
[TD]50[/TD]
[TD]Chris[/TD]
[/TR]
</tbody>[/TABLE]
I get Alex appearing 3 times in column F but need the name of the other 2 people that also have a value of 60 (i.e. Brad and Dave). I am using =INDEX($A$1:$A$5,MATCH(E2,$B$1:$B$5,1)) in column F above.
Without having to use VBA code, how can I solve this so that in rank 2, 3 & 4 I get the names Alex, Brad & Dave? These 3 names can appear in any order and doesn't have to be alphabetical. Also the source data range in terms of number of rows is dynamic.
Thanks