+ Reply to Thread
Results 1 to 8 of 8

Help on formula to find last occurrence of values in a list to produce football form table

  1. #1
    Registered User
    Join Date
    03-06-2015
    Location
    London
    MS-Off Ver
    Mac Office
    Posts
    45

    Help on formula to find last occurrence of values in a list to produce football form table

    Hi,

    I've been working on creating a detailed spreadsheet to analyse football matches and leagues. Along the way I've managed to create a lot of detailed statistics and learnt a lot form these forums, but I've now come across something that has completely defeated me... and so hoping for some help.

    I've attached an example and in this case I have:

    Column A: Fixture Date
    Column B: Home Team
    Column C: Away Team
    Column D: Home Team Goals
    Column E: Away Team Goals

    This particular sheet has over 4000 matches dating back to 2004, and I would like to create a list of a team's (e.g. Arsenal in this particular example) last 10 fixtures and results (i.e. to look at recent form). I've created an example of how this would look on the same worksheet.

    Essentially I've put Arsenal in cell I2 and manually entered some details below that cell to give an example of how I would like it to appear... simply the last 10 fixtures they played home or away listed by date / home team / away team / home goals / away goals (i.e. exactly as the main data appears but just for one specific team's last 10 games).

    I've been trying various combinations of INDEX / MATCH / SUMPRODUCT / LARGE etc. but not getting anywhere. Any help would be much appreciated and potentially save me from going insane! Thanks!
    Attached Files Attached Files

  2. #2
    Forum Expert sourabhg98's Avatar
    Join Date
    10-22-2014
    Location
    New Delhi, India
    MS-Off Ver
    Excel 2007, 2013
    Posts
    1,899

    Re: Help on formula to find last occurrence of values in a list to produce football form t

    Check attached
    Change range to suit...
    Attached Files Attached Files
    Happy to Help

    How to upload excel workbooks at this forum - http://www.excelforum.com/the-water-...his-forum.html

    "I don't get things easily, so please be precise and elaborate"

    If someone's post has helped you, thank by clicking on "Add Reputation" below the post.
    If your query is resolved please mark the thread as "Solved" from the "Thread Tools" above.

    Sourabh

  3. #3
    Registered User
    Join Date
    02-28-2015
    Location
    Tennessee, USA
    MS-Off Ver
    2010
    Posts
    25

    Re: Help on formula to find last occurrence of values in a list to produce football form t

    sourabhg98's formula is a different approach than I was taking (and probably more of what you were looking for). The only issue I see is sourabhg98's solution doesn't appear to discriminate against games that haven't been played yet. I am guessing that this could be easily be fixed with an "if" statement. I was going with a less elegant method of using an advanced filter which involves a little more work by the user, but the upside is it should allow for more versatile analysis of the data set.
    Attached Files Attached Files

  4. #4
    Forum Expert sourabhg98's Avatar
    Join Date
    10-22-2014
    Location
    New Delhi, India
    MS-Off Ver
    Excel 2007, 2013
    Posts
    1,899

    Re: Help on formula to find last occurrence of values in a list to produce football form t

    Ok
    Updated...
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    03-06-2015
    Location
    London
    MS-Off Ver
    Mac Office
    Posts
    45

    Re: Help on formula to find last occurrence of values in a list to produce football form t

    Haha... you guys are too quick for me, managed to get 3 solutions done in the time it's taken me to try and wrap my head around the first one. Thank you so much to you both... what a great forum.

    Ultimately Sourabhg98's second version is perfect for what I need (and also closer to what I was originally trying to do myself) but greatly appreciate the efforts and quick response from both of you.

  6. #6
    Forum Expert sourabhg98's Avatar
    Join Date
    10-22-2014
    Location
    New Delhi, India
    MS-Off Ver
    Excel 2007, 2013
    Posts
    1,899

    Re: Help on formula to find last occurrence of values in a list to produce football form t

    Glad to know it worked!!
    Thanks for your feedback and reputation..

    Cheers!!

  7. #7
    Registered User
    Join Date
    03-06-2015
    Location
    London
    MS-Off Ver
    Mac Office
    Posts
    45

    Re: Help on formula to find last occurrence of values in a list to produce football form t

    No problem! Actually now I have this sorted it's given me one other idea.

    If in column G I added in a season yaer (e.g. 2004, 2005, 2006, 2007 etc.) what would I need to add to the formula to make sure it only returned results from that season.

    E.g. if a new season starts and Arsenal have only played 5 games, I would only want it to return those games and not the last 5 from the previous season.

    Thanks

  8. #8
    Forum Expert sourabhg98's Avatar
    Join Date
    10-22-2014
    Location
    New Delhi, India
    MS-Off Ver
    Excel 2007, 2013
    Posts
    1,899

    Re: Help on formula to find last occurrence of values in a list to produce football form t

    Ok check attached..
    Attached Files Attached Files

+ 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] Formula to copy last 6 cells with data (football form guide)
    By amnesiac77 in forum Excel General
    Replies: 4
    Last Post: 08-30-2016, 11:22 AM
  2. Replies: 2
    Last Post: 02-27-2015, 04:20 PM
  3. Replies: 3
    Last Post: 09-15-2014, 07:56 PM
  4. Find multiple values in multiple ranges and produce results in a list
    By Sc0tt1e in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-07-2014, 02:11 AM
  5. Find Largest consecutive occurrence of negative values
    By Rubber in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-28-2013, 11:36 AM

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