Results 1 to 4 of 4

Formula to count last 18 instances of occurrence (from a specific date) to perform a SUMIF

Threaded View

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

    Formula to count last 18 instances of occurrence (from a specific date) to perform a SUMIF

    Hi,

    I have historical football results from the last 15 years as per attachment. What I would like to do is take a specific row and have a formula that looks back at only the last 19 home games for a team so I can calculate how many goals have been scored in that game.

    On attached, column A has date, C has the home team, D has the away team and I has the total goals scored in the game. So for example on row 4443 there is the fixture Liverpool vs. Arsenal so in column Y I'd like to be able to have a formula that looks back at only the last 19 home games that Liverpool have played before the date of this match (as per column A - 03/03/2012) and then adds up how many goals (column I) have been scored in those 19 games.

    In column Z I'd also then like to be able to look at a similar thing but the last 19 away games that Liverpool (the home team in this match) have played before 03/03/2012 and do the same formula for total goals in those last 19 when Liverpool playing away. I would then copy these fomulas all the way down from row 3 to the end of the data so I have a continual rolling record for each upcoming game.

    I am not too bad with excel and understand a large range of the formulas and logic but I'm afraid this is beyond me and would massively appreciate any help.

    Thanks!
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. VBA code to count the occurrence in a single date and the range of date
    By Sushil.thakur in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-28-2014, 02:28 AM
  2. Replies: 1
    Last Post: 02-05-2013, 09:14 AM
  3. Count Occurrence of date (6th April) between two dates...
    By noonoogizmo in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-01-2012, 06:21 AM
  4. Replies: 6
    Last Post: 06-20-2012, 07:23 PM
  5. Count the Occurrence Based on a Date
    By ChrisRocks in forum Excel General
    Replies: 2
    Last Post: 08-16-2011, 11:54 AM
  6. Count Month Occurrence in range of date
    By Bob@Sun in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-18-2010, 05:20 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