+ Reply to Thread
Results 1 to 5 of 5

Football Data Analysis – Optimisation

  1. #1
    Registered User
    Join Date
    10-27-2011
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    88

    Football Data Analysis – Optimisation

    I have created a spreadsheet which analyses historical football data to find set criteria for upcoming football fixtures.The criteria are as follows:
    No 0 – 0 scorelines for the last 10 games for either team
    Last 5 games for both teams average at least 2 goals per game

    The spreadsheet functions like this:
    You paste your list of fixtures into the ‘Games’ sheet.
    The ‘Database’ sheet then picks out all previous game for both teams using the IF statements spanning all the way down the page.
    The games are then analysed on the ‘Tables’ sheet using the IF statements spanning down the page.
    If a game in the ‘Games’ sheet meets both the criteria then it will show “Yes” next to it in the list.

    The spreadsheet does perform as I wanted it to, the problem is that it is extremely inefficient and it takes along time to recalculate. Can anybody take a look and advise how it could be improved to increase efficiency?

    I have uploaded this to dropbox as the filesize was too large to upload on here, thanks in advance for any input!

    https://www.dropbox.com/s/o4l799dpsdqgpoy/FBD.xlsm

  2. #2
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: Football Data Analysis – Optimisation

    FORUM_D4.xlsxHello

    You will need to do an array formula for this. What you are trying to do is quite tricky using formulas, but is possible.
    Last edited by nathansav; 05-12-2014 at 10:58 AM.
    Hope this helps

    Sometimes its best to start at the beginning and learn VBA & Excel.

    Please dont ask me to do your work for you, I learnt from Reading books, Recording, F1 and Google and like having all of this knowledge in my head for the next time i wish to do it, or wish to tweak it.
    Available for remote consultancy work PM me

  3. #3
    Registered User
    Join Date
    10-27-2011
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    88

    Re: Football Data Analysis – Optimisation

    Thanks for the response Nathan, not familiar at all with this function are you able to briefly talk me through what you have done there? Also the formula in H2 is equating to #NUM!

  4. #4
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: Football Data Analysis – Optimisation

    The H2 is because there are no results for that.

    What is happening is, it is using array formula, think of them as a logical story from left to right, so in yours:

    =INDEX($A$2:$C$20,SMALL(IF($A$2:$A$20=$E2,ROW($A$2:$A$20)),1)-1,3)

    We are indexing A2:C20, the data, and we are using small, small returns the xth smallest number of an array, so if you look at the formula, the column number, in the case above,3 increments each time, so it is showing the 1st smallest, then the 2nd, then the 3rd.

    The array is built using this part

    IF($A$2:$A$20=$E2,ROW($A$2:$A$20))

    If the cells A2 to A20 contain E2 then the row number is put into the array, so we could have an array of row numbers like {1,3,4,6}

    then we will do

    Small (data,1) = row 1 data
    Small (data,2) = row 3 data
    Small (data,3) = row 4 data
    Small (data,4) = row 6 data

  5. #5
    Registered User
    Join Date
    10-27-2011
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    88

    Re: Football Data Analysis – Optimisation

    Thanks for the explanation (although a lot of that went over my head )

    I'm just a bit confused as well with relation to the layout, you have two columns 'Team 1' 'Team 2' and then a,b,c in the rows below. What do the a,b,c relate to?

+ 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. Replies: 2
    Last Post: 06-28-2013, 08:43 AM
  2. Data Analysis- advanced pivot functions for employee analysis
    By Dsankie in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 05-10-2013, 12:30 AM
  3. [SOLVED] Football stats - calling football fans!
    By Steve_123 in forum Excel General
    Replies: 5
    Last Post: 05-18-2012, 09:15 AM
  4. Replies: 3
    Last Post: 08-09-2010, 04:04 AM
  5. [SOLVED] Analysis ToolPak installed but no Data Analysis option
    By Eric Stephens in forum Excel General
    Replies: 3
    Last Post: 02-02-2005, 06:06 PM

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