CordingBags
New Member
- Joined
- Mar 7, 2022
- Messages
- 43
- Office Version
- 2016
- Platform
- Windows
My local bowls club has asked me to create a spreadsheet to manage a ladder league.
Having looked around I can only find a Google Sheets example that doesn't allow the flexibility we want or hosting sites which are either reportedly unreliable or again inflexible and not really the way we would like to proceed. Ladder leagues seem popular in racquet sports but I guess the sport doesn't really matter.
I have therefore decided to ignore the details of challenges, validity, results etc and concentrate purely on outcomes.
I need a macro to follow the logic:
1. Ask the administrator for the row number of the successful challenger
2. Ask the administrator for the row number of the defeated opponent
The macro should then move the row of the defeated down one and replace the gap with row of the victor. Then close up the gap row of the victor.
3. A check box "is this the expected outcome?" would be nice, but definitely not essential
For example row 13 has challenged and beaten row 10.
row 10 becomes 11, row 13 is moved to row 10, original 11 becomes 12, original 12 becomes 13. No gaps are left nor need changing below row 13.
We envisage the maximum challenge distance as 5 places but circumstance could mean this is nine in reality. eg 15 challenges 10 but in the meanwhile the result of other matches between 16 & 11, 17 & 12, 18 & 13 and 19 & 14 have all gone the way of the challenger, 15 has become 19 by the effect of these results but 10 hasn't moved. In the event that original row 15 (administrator would enter 19 for challenger) is successful it would replace 10 and everyone moves down one.
The macro is doing the same thing, which row needs to move up, which row needs to move down/be replaced. Where is the gap that needs to be closed.
An unsuccessful challenge would make no change to the rows.
I have described this as moving rows, but if cells are a better reference please advise.
Any Help Appreciated, unfortunately I cannot upload any example as I don't really know where to start, apart from a familiarity of where and how to use macros. Club uses EXCEL 2016.
Many Thanks
Paul
Having looked around I can only find a Google Sheets example that doesn't allow the flexibility we want or hosting sites which are either reportedly unreliable or again inflexible and not really the way we would like to proceed. Ladder leagues seem popular in racquet sports but I guess the sport doesn't really matter.
I have therefore decided to ignore the details of challenges, validity, results etc and concentrate purely on outcomes.
I need a macro to follow the logic:
1. Ask the administrator for the row number of the successful challenger
2. Ask the administrator for the row number of the defeated opponent
The macro should then move the row of the defeated down one and replace the gap with row of the victor. Then close up the gap row of the victor.
3. A check box "is this the expected outcome?" would be nice, but definitely not essential
For example row 13 has challenged and beaten row 10.
row 10 becomes 11, row 13 is moved to row 10, original 11 becomes 12, original 12 becomes 13. No gaps are left nor need changing below row 13.
We envisage the maximum challenge distance as 5 places but circumstance could mean this is nine in reality. eg 15 challenges 10 but in the meanwhile the result of other matches between 16 & 11, 17 & 12, 18 & 13 and 19 & 14 have all gone the way of the challenger, 15 has become 19 by the effect of these results but 10 hasn't moved. In the event that original row 15 (administrator would enter 19 for challenger) is successful it would replace 10 and everyone moves down one.
The macro is doing the same thing, which row needs to move up, which row needs to move down/be replaced. Where is the gap that needs to be closed.
An unsuccessful challenge would make no change to the rows.
I have described this as moving rows, but if cells are a better reference please advise.
Any Help Appreciated, unfortunately I cannot upload any example as I don't really know where to start, apart from a familiarity of where and how to use macros. Club uses EXCEL 2016.
Many Thanks
Paul