Sort Table Problem

LenaH

New Member
Joined
May 21, 2020
Messages
40
Office Version
  1. 2016
Platform
  1. Windows
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 :rolleyes:

Cell Formulas
RangeFormula
D5D5=IF(B5="","",VLOOKUP($B$5,$L$157:$P$177,2,FALSE))
E5:E32E5=IF(($D5)="","",VLOOKUP($D5,PlayerPool!$D$2:$L$151,4,FALSE))
F5:F32F5=IF(($D5)="","",VLOOKUP($D5,PlayerPool!$D$2:$L$151,5,FALSE))
G5:G32G5=IF(($D5)="","",VLOOKUP($D5,PlayerPool!$D$2:$L$151,6,FALSE))
H5:H32H5=IF(($D5)="","",VLOOKUP($D5,PlayerPool!$D$2:$L$151,7,FALSE))
I5:I32I5=IF(($D5)="","",VLOOKUP($D5,PlayerPool!$D$2:$L$151,8,FALSE))
J5:J32J5=IF(D5="","",SUM(E5:I5))
D6D6=IF(B5="","",VLOOKUP($B$5,$L$157:$P$177,3,FALSE))
D7D7=IF(B5="","",VLOOKUP($B$5,$L$157:$P$177,4,FALSE))
D8D8=IF(B5="","",VLOOKUP($B$5,$L$157:$P$177,5,FALSE))
D9D9=IF(B9="","",VLOOKUP($B$9,$L$157:$P$177,2,FALSE))
D10D10=IF(B9="","",VLOOKUP($B$9,$L$157:$P$177,3,FALSE))
D11D11=IF(B9="","",VLOOKUP($B$9,$L$157:$P$177,4,FALSE))
D12D12=IF(B9="","",VLOOKUP($B$9,$L$157:$P$177,5,FALSE))
D13D13=IF(B13="","",VLOOKUP($B$13,$L$157:$P$177,2,FALSE))
D14D14=IF(B13="","",VLOOKUP($B$13,$L$157:$P$177,3,FALSE))
D15D15=IF(B13="","",VLOOKUP($B$13,$L$157:$P$177,4,FALSE))
D16D16=IF(B13="","",VLOOKUP($B$13,$L$157:$P$177,5,FALSE))
D17D17=IF(B17="","",VLOOKUP($B$17,$L$157:$P$177,2,FALSE))
D18D18=IF(B17="","",VLOOKUP($B$17,$L$157:$P$177,3,FALSE))
D19D19=IF(B17="","",VLOOKUP($B$17,$L$157:$P$177,4,FALSE))
D20D20=IF(B17="","",VLOOKUP($B$17,$L$157:$P$177,5,FALSE))
D21D21=IF(B21="","",VLOOKUP($B$21,$L$157:$P$177,2,FALSE))
D22D22=IF(B21="","",VLOOKUP($B$21,$L$157:$P$177,3,FALSE))
D23D23=IF(B21="","",VLOOKUP($B$21,$L$157:$P$177,4,FALSE))
D24D24=IF(B21="","",VLOOKUP($B$21,$L$157:$P$177,5,FALSE))
D25D25=IF(B25="","",VLOOKUP($B$25,$L$157:$P$177,2,FALSE))
D26D26=IF(B25="","",VLOOKUP($B$25,$L$157:$P$177,3,FALSE))
D27D27=IF(B25="","",VLOOKUP($B$25,$L$157:$P$177,4,FALSE))
D28D28=IF(B25="","",VLOOKUP($B$25,$L$157:$P$177,5,FALSE))
D29D29=IF(B29="","",VLOOKUP($B$29,$L$157:$P$177,2,FALSE))
D30D30=IF(B29="","",VLOOKUP($B$29,$L$157:$P$177,3,FALSE))
D31D31=IF(B29="","",VLOOKUP($B$29,$L$157:$P$177,4,FALSE))
D32D32=IF(B29="","",VLOOKUP($B$29,$L$157:$P$177,5,FALSE))
C5,C29,C25,C21,C17,C13,C9C5=IF(D5="","",SUM(J5:J8))
C6,C10C6=C5
C7,C11C7=C5
C8,C12C8=C5
B5B5=L157
B9B9=L158
B13B13=L159
B17B17=L160
B21B21=L161
B25B25=L162
B29B29=L163


I hope, some of you cracks can help me, solving it?

Lena
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
You cannot sort it in Excel or with VBA because you data range apparently contains merged cells in columns A and B.
Merged cells, are bad, bad, bad and cause all sorts of problems for Excel, and especially VBA.
You should really avoid using merged cells, whenever possible, or else you will run into these sort of problems.
Personally, I avoid them like the plague!
 
Upvote 0

Forum statistics

Threads
1,214,534
Messages
6,120,086
Members
448,944
Latest member
sharmarick

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top