Changes in Sorting Order

Daviboy30

New Member
Joined
Nov 7, 2021
Messages
33
Office Version
  1. 2019
Platform
  1. MacOS
I play in a pool league in which we total the points accumulated each week. I re-sort the teams each week based on the total points. Is there a way to indicate how many places a team has moved up, or down, or stayed the same from the previous week based on the totals?
SLDIPL-LeagueStandings_23529.xlsm
BCDEFGHIJKLM
3Week123456789Points Total
4PlaceTeam6/26/96/166/236/307/77/147/217/28
51Breaking Bad2272222022192012271298
62Smooth Strokes2111942122211992041241
73IndePockets1922282251961981891228
84Red Mill Pond1762042022031992131197
95Bridgeville2042112102211711761193
106Side Pockets1992161881912081881190
117Elks Shotmakers1922051821812052131178
128SugarBeets Sharpshooters2021801911781872221160
139HS Shoreshots1741881891732232051152
1410Plantation Lakes1911861911902031651126
League Standings
Cell Formulas
RangeFormula
M5:M14M5=SUM(D5,E5,F5,G5,H5,I5,J5,K5,L5)
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
How about
Fluff.xlsm
ABCDEFGHIJKLMN
1
2
3Week123456789Points Total
4PlaceTeam02/06/202309/06/202316/06/202323/06/202330/06/202307/07/202314/07/202321/07/202328/07/2023
51Breaking Bad22722220221920122712980
62Smooth Strokes21119421222119920412411
73IndePockets1922282251961981891228-1
84Red Mill Pond17620420220319921311972
95Bridgeville2042112102211711761193-1
106Side Pockets1992161881912081881190-1
117Elks Shotmakers19220518218120521311780
128SugarBeets Sharpshooters20218019117818722211602
139HS Shoreshots17418818917322320511520
1410Plantation Lakes1911861911902031651126-2
Master
Cell Formulas
RangeFormula
M5:M14M5=SUM(D5:L5)
N5:N14N5=SUMPRODUCT(--((M5-LOOKUP(2,1/(D5:L5<>""),D5:L5))<($M$5:$M$14-INDEX($D$5:$L$14,,MATCH(TODAY(),$D$4:$L$4,1)))))+1-RANK(M5,$M$5:$M$14)
 
Upvote 0
Thinking about it, I've a sneaking feeling that sumproduct doesn't work with lookup functions in earlier versions, so another option with a helper column
Fluff.xlsm
ABCDEFGHIJKLMNO
1
2
3Week123456789Points TotalPreviousChange
4PlaceTeam02/06/202309/06/202316/06/202323/06/202330/06/202307/07/202314/07/202321/07/202328/07/2023Points
51Breaking Bad227222202219201227129810710
62Smooth Strokes21119421222119920412411037▲ 1
73IndePockets19222822519619818912281039▼ 1
84Red Mill Pond1762042022031992131197984▲ 2
95Bridgeville20421121022117117611931017▼ 1
106Side Pockets19921618819120818811901002▼ 1
117Elks Shotmakers19220518218120521311789650
128SugarBeets Sharpshooters2021801911781872221160938▲ 2
139HS Shoreshots17418818917322320511529470
1410Plantation Lakes1911861911902031651126961▼ 2
Master
Cell Formulas
RangeFormula
M5:M14M5=SUM(D5:L5)
N5:N14N5=M5-LOOKUP(2,1/(D5:L5<>""),D5:L5)
O5:O14O5=RANK(N5,$N$5:$N$14)-RANK(M5,$M$5:$M$14)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
O5:O14Expression=O5>0textNO
O5:O14Expression=O5<0textNO
 
Upvote 0
Thanks. I got everything to work properly except the conditional formatting. I don't know how you changed the minus symbols to up and down triangles.

SLDIPL-LeagueStandings_23529.xlsm
BCDEFGHIJKLMNO
51Breaking Bad22722220221920122712981071 
62Smooth Strokes211194212221199204124110371
73IndePockets19222822519619818912281039-1
84Red Mill Pond17620420220319921311979842
95Bridgeville20421121022117117611931017-1
106Side Pockets19921618819120818811901002-1
117Elks Shotmakers1922051821812052131178965 
128SugarBeets Sharpshooters20218019117818722211609382
139HS Shoreshots1741881891732232051152947 
1410Plantation Lakes1911861911902031651126961-2
League Standings
Cell Formulas
RangeFormula
M5:M14M5=SUM(D5,E5,F5,G5,H5,I5,J5,K5,L5)
N5:N14N5=M5-LOOKUP(2,1/(D5:L5<>""),D5:L5)
O5:O14O5=RANK(N5,$N$5:$N$14)-RANK(M5,$M$5:$M$14)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
O5:O14Other TypeIcon setNO
O5:O14Cell Value>0textYES
O5:O14Cell Value<0textNO
O5:O14Cell Value<0textNO
O5:O14Cell Value>0textNO
O14Cell Value>0textNO
O14Cell Value<0textNO
 

Attachments

  • Screenshot 2023-07-08 at 9.09.25 PM.png
    Screenshot 2023-07-08 at 9.09.25 PM.png
    162.1 KB · Views: 0
Upvote 0
The CF uses custom cell format.
For the -ve values it's
;▼?0;

and the +ve values is
▲?0
 
Upvote 0
Thank you! I've got every thing working perfectly now!

SLDIPL-LeagueStandings_230705.xlsm
BCDEFGHIJKLMNO
3Week123456789Points TotalChangePrevious Week's Totals
4PlaceTeam6/26/96/166/236/307/77/147/217/28
51Breaking Bad2272222022192012271298 1071
62Smooth Strokes2111942122211992041241▲ 11037
73IndePockets1922282251961981891228▼ 11039
84Red Mill Pond1762042022031992131197▲ 2984
95Bridgeville2042112102211711761193▼ 11017
106Side Pockets1992161881912081881190▼ 11002
117Elks Shotmakers1922051821812052131178 965
128SugarBeets Sharpshooters2021801911781872221160▲ 2938
139HS Shoreshots1741881891732232051152 947
1410Plantation Lakes1911861911902031651126▼ 2961
League Standings
Cell Formulas
RangeFormula
M5:M14M5=SUM(D5,E5,F5,G5,H5,I5,J5,K5,L5)
N5:N14N5=RANK(O5,$O$5:$O$14)-RANK(M5,$M$5:$M$14)
O5:O14O5=M5-LOOKUP(2,1/(D5:L5<>""),D5:L5)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
N5:N14Cell Value=0textNO
N5:N14Cell Value<0textNO
N5:N14Cell Value>0textNO
 

Attachments

  • Screenshot 2023-07-09 at 1.48.04 PM.png
    Screenshot 2023-07-09 at 1.48.04 PM.png
    150.7 KB · Views: 1
Upvote 0
Glad to help & thanks for the feedback.
 
Upvote 0
Given your sample data layout, you could use this simpler form of LOOKUP in column O
Excel Formula:
=M5-LOOKUP(9^9,D5:I5)
 
Upvote 0

Forum statistics

Threads
1,215,430
Messages
6,124,849
Members
449,194
Latest member
HellScout

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