Forum Discussion

ExpertCoder14's avatar
ExpertCoder14
Copper Contributor
Jan 18, 2022
Solved

Reorder columns from averages

I have a simple Excel table, like so:

Event NamePlayer A RankPlayer B RankPlayer C RankPlayer D RankPlayer E Rank
Dodgeball: Jan. 11st4th2nd3rd5th
Drag Race: Feb. 32nd4th1st3rd5th
Averages:=AVERAGE(B2, B3)=AVERAGE(C2, C3)=AVERAGE(D2, D3)=AVERAGE(E2, E3)=AVERAGE(F2, F3)

Now that I have this table, I would like to be able to have Excel automatically reorder the columns based on the Averages shown in the bottom row.

For example, from the two events shown here, we have the averages of the five players at 1.5, 3.5, 1.5, 4, and 4.5. I would like so that players A and C are therefore shifted to be the leftmost columns in the table, and the higher averages are at the right, like so:

Event NamePlayer A RankPlayer C RankPlayer B RankPlayer D RankPlayer E Rank
Dodgeball: Jan. 11st2nd4th3rd5th
Drag Race: Feb. 32nd1st4th3rd5th
Averages:1.51.53.544.5

I've dabbled around somewhat with experimentation but I haven't been able to find a way to do this.

1 Reply