+ Reply to Thread
Results 1 to 11 of 11

Creating single dynamic footbal l eague tables for home, away and overall

  1. #1
    Forum Contributor
    Join Date
    09-13-2016
    Location
    Kenya
    MS-Off Ver
    Excel 2010
    Posts
    321

    Creating single dynamic footbal l eague tables for home, away and overall

    Hello Everyone. I am trying to create a dynamic League table for a football league. In my spreadsheet, I have the fixtures and results for the English premier league to the 7th round. There is also a standing table into which data is pulled.

    The data in the standing table is then sorted dynamically in the Dynamic Table as more matches are played and scores entered. For every match a team wins, it gets 3 points, for every draw it gets 1 point and no point is awarded for losing a game.

    Teams are ranked based on the following principles:

    1. The team with the highest point takes the first position.
    2. If there are two or more teams with exactly the same points, then the team with the highest goal difference takes the lead.
    3. If two or more teams have exactly the same points and same goal difference, the team with the highest overall goals scored takes the lead.
    4. If two or more teams have the same points, goal difference and same goals scores, then the team with the most away goals scored takes the lead.

    (See ranking system included in the sheet to the right of the static table).
    THE REQUEST: I know it is possible to have singles tables that dynamically gets sorted in a descending order as more matches are played and scores entered instead of two (static table and dynamic table) as is in my case, but I can’t figure out how to do this. But I know someone here at Excel Forums will give a lending hand. Please help out with this.

    In sheet two, I have created three tables to be filled based on the above principles, one for home matches played, one for away matches played and the last for the overall matches played. I will appreciate all the help I can get with the above problem. It will be of great help and time saving if the formulas can ignore blank cells.

    Thanks in advance.

    PS: Please remember the above principles and also that a Win = 3 Points, a Draw= 1 Point and a Loss= 0; I will appreciate if the ranks and everything else in the three tables in sheet2 can get dynamically sorted in descending order (highest to lowest).

    Football Simulatio.xlsx

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,412

    Re: Creating single dynamic footbal l eague tables for home, away and overall

    Bob Phillips has a league table file that you can download for free from his website here:

    http://www.xldynamic.com/source/xld.LeagueTable.html

    Hope this helps.

    Pete

  3. #3
    Forum Contributor
    Join Date
    09-13-2016
    Location
    Kenya
    MS-Off Ver
    Excel 2010
    Posts
    321

    Re: Creating single dynamic footbal l eague tables for home, away and overall

    Pete, thanks for your reply. I just downloaded the table. Its password protected and its not exactly what I expected. I already have data I have compiled in the format in the spreadsheet I attached. And it will take me time to start everything changing everything again.

    It will also be a learning experience for me if I can be able to learn a new concept from the help I can get. From my table, you can see that I have collected some data. What I attached is just an extract of what I have compiled. I have data for more than 10 leagues already compiled. Is there this can be possible?

  4. #4
    Forum Contributor
    Join Date
    09-13-2016
    Location
    Kenya
    MS-Off Ver
    Excel 2010
    Posts
    321

    Re: Creating single dynamic footbal l eague tables for home, away and overall

    Pete, the table you recommended I download isn't what I wanted though. I already have my own data compiled for about 14 football leagues and I wanted something I can adopt for my spreadsheet. Plus the table does not have other options like reviewing the ball possession, goal attempts, pass accuracies, clean sheets etc, which are other things I look at in my full spreadsheet.

    It will also be a learning experience for me to be able to analyse formulas suggested here, see them in practical use and learn a new concept by trying them out out for other leagues. It will take a lot of time to start adopting the new format. I also wanted to build my own model which I can understand easily.

    Any idea how it can be done? Will really appreciate if you can help out.

    Thank you and Good day.

    Onditi

  5. #5
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,271

    Re: Creating single dynamic footbal l eague tables for home, away and overall

    Hi Onditi,

    I'd recommend you change the structure of your table like the attached. Then you can easily add rows (two rows per game) and do Pivot Tables to get all the answers you need. See the attached.

    Football Scorekeeper.xlsx
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  6. #6
    Forum Contributor
    Join Date
    09-13-2016
    Location
    Kenya
    MS-Off Ver
    Excel 2010
    Posts
    321

    Re: Creating single dynamic footbal l eague tables for home, away and overall

    Hello Marvin! Thank you for your response. But it isn't still what I desire. What i need is a situation where the teams are arranged in order the order in which they are in "Dynamic table" without having the standing table (see workbook attached). The team with the highest points should occupy the 1st positions (The principles above apply). What you have created is the 1st table (standing table). And the formats to be adopted are in sheet 2.

    Thank you for taking the time to respond.

  7. #7
    Forum Contributor
    Join Date
    09-13-2016
    Location
    Kenya
    MS-Off Ver
    Excel 2010
    Posts
    321

    Re: Creating single dynamic footbal l eague tables for home, away and overall

    To help understand the help I need, I am attaching the same workbook with a 3rd sheet added. In the 3rd sheet, I have filled the expected results for the Overall Table. Form the results you can see that:

    1. The team with the highest points takes the first position.
    2. Where two or more teams have the same points, the team with the highest goal difference should be above the other.
    3. Where there are more than one team with the same goal points and goal difference, the team with the highest overall goals scored takes the lead.
    3. And where there is a tie for 1,2 and 3 above, the team with the highest away goals should take the lead.

    The above should apply to the Home and Away tables. What I need is to do away with the tables in sheet 1 (standing and dynamic tables) and just have the tables in sheet two.

    Copy of Football Simulation.xlsx

  8. #8
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,769

    Re: Creating single dynamic footbal l eague tables for home, away and overall

    The results for your Overall Table (in "Expected results") are derived in the same way as your dynamic table: so have done the work, so I am not sure what more you expect.

    In "Expected Results" (Overall) in B27

    =INDEX(Sheet1!$AM$4:$AM$28,MATCH(ROWS($1:1),Sheet1!$AL$4:$AL$28,0))

    Drag down

    You can use VLOOKUP to get the other data from your "static" table I2:AG28

    No need for your dynamic table.

    Just create your HOME/AWAY RANKING tables and change the ranges in above formula.

  9. #9
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,769

    Re: Creating single dynamic footbal l eague tables for home, away and overall

    P.S

    only formulae needing Ctrl+Shift+Enter as those with ...SMALL(IF( .......) (Array formula)

    All others only require Enter

  10. #10
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,769

    Re: Creating single dynamic footbal l eague tables for home, away and overall

    I was adding the ranking tables for Home and AWAY and discovered in the OVERALL table that two teams are ranked 18.

    I changed the RANK formula to the following:

    =SUM($AN4,$AO4,$AP4,$AQ4)+ROWS($1:1)*10^-4

    The addition then "removes" the duplicates by adding a small number to the ranking..

    In B27 of the "OVERALL TABLE" in Expected Results I used this formula:

    =INDEX(Sheet1!$AM$4:$AM$28,MATCH(SMALL(Sheet1!$AZ$4:$AZ$28,ROWS($1:1)),Sheet1!$AZ$4:$AZ$28,0))

    This lists the ranks in order.

    Note that in the RANK column A the duplicates of SWANSEA & SUNDERLAND re listed as 18 & 19 not 18=
    Attached Files Attached Files

  11. #11
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,271

    Re: Creating single dynamic footbal l eague tables for home, away and overall

    Hi Onditi,

    Once Again - would you consider keeping your data in the table format attached. You will need to enter each game twice, once for the Home Team and another line for the Away Team. This data structure makes calculating your desired result much easier.

    In the attached table, you can change any of the goals and it will recalculate the Pivot Table automatically!!!
    As you add games to the bottom of the list the resulting rankings will be added automatically..

    The method for determining ties is done by first adding up the Points and then using the GoalDiff numbers and dividing them by 1000. This is added to the Total Points. Then the Total goals is added and then the goals away is added as fractional amounts. This formula keeps track of the tie breaker information.

    I've added a Dynamic Named Range to your Data so the Pivot Table will work with all new rows added.
    I've also added an Event Macro that will Refresh the Pivot whenever a score is added or changed.

    Look at what I've put together and try to change some goal information and watch the Ranking Pivot change.
    Add a few more games and see the Rankings change...

    Football Scorekeeper2.xlsm

    You asked for help from us "Experts" and this is my best answer. Change the data entry format and it will make answers much easier and faster.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Merging two single column tables creating a new row for each pair
    By nigelbloomy in forum Excel General
    Replies: 5
    Last Post: 08-15-2016, 08:08 PM
  2. [SOLVED] Need help: creating a list based on a single dynamic cell
    By coringa in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 03-02-2016, 12:48 AM
  3. [SOLVED] Need help: creating a list based on a single dynamic cell
    By coringa in forum Excel General
    Replies: 2
    Last Post: 01-01-2016, 08:50 PM
  4. Creating a Home Budget
    By Sandcastle in forum Excel General
    Replies: 4
    Last Post: 09-12-2014, 11:18 AM
  5. Replies: 8
    Last Post: 11-15-2012, 05:13 AM
  6. creating home budget
    By roadog in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 09-29-2010, 07:32 AM
  7. Creating Pivot tables using dynamic columns
    By Sakuntala in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-06-2009, 05:30 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1