Dear all,
I have a problem I can't solve in sorting a table. The table looks like this and I would like to sort after TOTAL in Col "C".
Sorting within Excel doesn't work, so VBA is probably the way to go.
Unfortunately, I have no idea, how and where to start, since my VBA knowledge is nearly nonexistent
I hope, some of you cracks can help me, solving it?
Lena
I have a problem I can't solve in sorting a table. The table looks like this and I would like to sort after TOTAL in Col "C".
Sorting within Excel doesn't work, so VBA is probably the way to go.
Unfortunately, I have no idea, how and where to start, since my VBA knowledge is nearly nonexistent
Cell Formulas | ||
---|---|---|
Range | Formula | |
D5 | D5 | =IF(B5="","",VLOOKUP($B$5,$L$157:$P$177,2,FALSE)) |
E5:E32 | E5 | =IF(($D5)="","",VLOOKUP($D5,PlayerPool!$D$2:$L$151,4,FALSE)) |
F5:F32 | F5 | =IF(($D5)="","",VLOOKUP($D5,PlayerPool!$D$2:$L$151,5,FALSE)) |
G5:G32 | G5 | =IF(($D5)="","",VLOOKUP($D5,PlayerPool!$D$2:$L$151,6,FALSE)) |
H5:H32 | H5 | =IF(($D5)="","",VLOOKUP($D5,PlayerPool!$D$2:$L$151,7,FALSE)) |
I5:I32 | I5 | =IF(($D5)="","",VLOOKUP($D5,PlayerPool!$D$2:$L$151,8,FALSE)) |
J5:J32 | J5 | =IF(D5="","",SUM(E5:I5)) |
D6 | D6 | =IF(B5="","",VLOOKUP($B$5,$L$157:$P$177,3,FALSE)) |
D7 | D7 | =IF(B5="","",VLOOKUP($B$5,$L$157:$P$177,4,FALSE)) |
D8 | D8 | =IF(B5="","",VLOOKUP($B$5,$L$157:$P$177,5,FALSE)) |
D9 | D9 | =IF(B9="","",VLOOKUP($B$9,$L$157:$P$177,2,FALSE)) |
D10 | D10 | =IF(B9="","",VLOOKUP($B$9,$L$157:$P$177,3,FALSE)) |
D11 | D11 | =IF(B9="","",VLOOKUP($B$9,$L$157:$P$177,4,FALSE)) |
D12 | D12 | =IF(B9="","",VLOOKUP($B$9,$L$157:$P$177,5,FALSE)) |
D13 | D13 | =IF(B13="","",VLOOKUP($B$13,$L$157:$P$177,2,FALSE)) |
D14 | D14 | =IF(B13="","",VLOOKUP($B$13,$L$157:$P$177,3,FALSE)) |
D15 | D15 | =IF(B13="","",VLOOKUP($B$13,$L$157:$P$177,4,FALSE)) |
D16 | D16 | =IF(B13="","",VLOOKUP($B$13,$L$157:$P$177,5,FALSE)) |
D17 | D17 | =IF(B17="","",VLOOKUP($B$17,$L$157:$P$177,2,FALSE)) |
D18 | D18 | =IF(B17="","",VLOOKUP($B$17,$L$157:$P$177,3,FALSE)) |
D19 | D19 | =IF(B17="","",VLOOKUP($B$17,$L$157:$P$177,4,FALSE)) |
D20 | D20 | =IF(B17="","",VLOOKUP($B$17,$L$157:$P$177,5,FALSE)) |
D21 | D21 | =IF(B21="","",VLOOKUP($B$21,$L$157:$P$177,2,FALSE)) |
D22 | D22 | =IF(B21="","",VLOOKUP($B$21,$L$157:$P$177,3,FALSE)) |
D23 | D23 | =IF(B21="","",VLOOKUP($B$21,$L$157:$P$177,4,FALSE)) |
D24 | D24 | =IF(B21="","",VLOOKUP($B$21,$L$157:$P$177,5,FALSE)) |
D25 | D25 | =IF(B25="","",VLOOKUP($B$25,$L$157:$P$177,2,FALSE)) |
D26 | D26 | =IF(B25="","",VLOOKUP($B$25,$L$157:$P$177,3,FALSE)) |
D27 | D27 | =IF(B25="","",VLOOKUP($B$25,$L$157:$P$177,4,FALSE)) |
D28 | D28 | =IF(B25="","",VLOOKUP($B$25,$L$157:$P$177,5,FALSE)) |
D29 | D29 | =IF(B29="","",VLOOKUP($B$29,$L$157:$P$177,2,FALSE)) |
D30 | D30 | =IF(B29="","",VLOOKUP($B$29,$L$157:$P$177,3,FALSE)) |
D31 | D31 | =IF(B29="","",VLOOKUP($B$29,$L$157:$P$177,4,FALSE)) |
D32 | D32 | =IF(B29="","",VLOOKUP($B$29,$L$157:$P$177,5,FALSE)) |
C5,C29,C25,C21,C17,C13,C9 | C5 | =IF(D5="","",SUM(J5:J8)) |
C6,C10 | C6 | =C5 |
C7,C11 | C7 | =C5 |
C8,C12 | C8 | =C5 |
B5 | B5 | =L157 |
B9 | B9 | =L158 |
B13 | B13 | =L159 |
B17 | B17 | =L160 |
B21 | B21 | =L161 |
B25 | B25 | =L162 |
B29 | B29 | =L163 |
I hope, some of you cracks can help me, solving it?
Lena