+ Reply to Thread
Results 1 to 4 of 4

Calculate average of last two outcomes of last two head-to-head clashes

  1. #1
    Registered User
    Join Date
    04-25-2013
    Location
    perth, australia
    MS-Off Ver
    Excel 2011
    Posts
    22

    Calculate average of last two outcomes of last two head-to-head clashes

    I've got a spreadsheet with basketball results. the columns represent date, home team, away team, margin (given from home team perspective). I want to create a column that calculate the average of the last two clashes between the two teams.

    Example
    Date Home Away Result ave. of last 2
    24th may d b. 13

    I need a value in the same row that looks for the last two games between these two teams

    6th april d b 36
    12 may b d -17

    and calculate the average of these results. The tricky bit is that the returned average must be from the perspective of the current home team (team d won the first match by 36 points and the second by 17). The value should be 26.5

    Thanks in advance

    lastclash.xlsx

  2. #2
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Calculate average of last two outcomes of last two head-to-head clashes

    PL See Attached file.
    Attached Files Attached Files
    Last edited by kvsrinivasamurthy; 05-06-2013 at 08:20 AM.

  3. #3
    Registered User
    Join Date
    04-25-2013
    Location
    perth, australia
    MS-Off Ver
    Excel 2011
    Posts
    22

    Re: Calculate average of last two outcomes of last two head-to-head clashes

    Hey that didn't quite seem to work. As I mentioned the correct value in E16 should be 26.5. I tried it again and have created four columns each with the result of the match from each team's perspective. If I use averageifs, it will return the average of all games between the two teams, but I want to limit it to the last two.

    any ideas?
    lastclash.xlsx

  4. #4
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Calculate average of last two outcomes of last two head-to-head clashes

    Pl see attached file.
    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)

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