+ Reply to Thread
Results 1 to 6 of 6

Current Streak for sports teams

  1. #1
    Registered User
    Join Date
    08-17-2015
    Location
    London
    MS-Off Ver
    2010
    Posts
    2

    Current Streak for sports teams

    Hello,

    I currently have a spreadsheet which looks like this: (sample data)

    I added helper columns (in yellow) to put a 1 in each respective result column which I thought might help with the process.

    FbI1Jqv.png

    I basically want to - per team - count the current streak, noting whether it is "Win", "Lose" or "Tie".

    For example the current streak for Team A is "Win" for 2 weeks, for Team C it is "Tie" for 1 week.

    This is the logic I'm thinking - I want something using formulae ideally, rather than VBA:

    1) Find out what the latest result is for a team (e.g. "Win").
    2) Using this result (e.g. "Win"), look down the table - it's populated with the latest date first, in team name order for each date [as above] - for whether the previous result for that team was a "Win" also. If it was not, the streak = 1. If it was, the streak = 2, or higher if there was another "Win" before that too (it will keep looking up until the value changes for that team).
    3) Where a team does not play one week, this should not matter: it would just continue looking for a previous result for that team if there is one, and if it matches the current result.

    Number 1 seems pretty straightforward but it's finding the current streak that I'm really struggling with! I was thinking something like this for the 'results' table (Team names can be manually entered):

    qSvmXjF.png

    Many thanks!!
    Last edited by bluedabba; 08-18-2015 at 06:25 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    03-20-2011
    Location
    UK
    MS-Off Ver
    Excel 2007/10/16
    Posts
    840

    Re: Current Streak for sports teams

    Hi

    Picture is no good to us as we can't see it!

    Are you looking at current streak win/lose and ties?

    it is just a win/ lose and ties or lookup each teams? what column?

    Easy for you upload sample file for us to help you
    To help you by my post? it would be nice to click on to say "Thank you".
    If you are happy with a solution to your problem?
    Click Thread Tools above your first post,
    select "Mark your thread as Solved".

  3. #3
    Registered User
    Join Date
    08-17-2015
    Location
    London
    MS-Off Ver
    2010
    Posts
    2

    Re: Current Streak for sports teams

    Quote Originally Posted by micope21 View Post
    Hi

    Picture is no good to us as we can't see it!

    Are you looking at current streak win/lose and ties?

    it is just a win/ lose and ties or lookup each teams? what column?

    Easy for you upload sample file for us to help you
    D'oh! I've hopefully fixed the images above -- I've also attached a sample file below

    Team Current Streak.xlsx

  4. #4
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: Current Streak for sports teams

    1. sort the given results by team and date (descending order)
    2. run this macro

    Please Login or Register  to view this content.

  5. #5
    Valued Forum Contributor
    Join Date
    03-20-2011
    Location
    UK
    MS-Off Ver
    Excel 2007/10/16
    Posts
    840

    Re: Current Streak for sports teams

    Hi

    I set up Team on column H
    Win/Lose/Tie
    I2
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    This is array formula? Press same time Ctrl+Shift+Enter till you see both end like this{}, DO NOT PRESS ENTER? otherwise it won't work. Then copy down and cross.

    See the file
    Attached Files Attached Files
    Last edited by micope21; 08-18-2015 at 06:35 AM.

  6. #6
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Current Streak for sports teams

    Hi

    I send a solution that does not use VBA.
    See the attached file Team Current Streak (2).xlsx

    Best regards

+ 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] current streak
    By rumihasj in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-07-2014, 01:45 PM
  2. Last X games, Max Win and Loss streak, current streak with Excel formulas
    By Biogeek1 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-12-2013, 11:00 AM
  3. Use Excel to randomly assign teams to sports competitions
    By Waldo in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-09-2013, 02:10 AM
  4. Sports schedule - 8 games with varying teams
    By kristys5 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-30-2013, 12:53 AM
  5. [SOLVED] IF statement for current wins/losses streak
    By damianberry in forum Excel General
    Replies: 1
    Last Post: 11-15-2012, 05:25 AM
  6. [SOLVED] Help to automate ranking of tied teams in sports scoring program
    By alan_stephen75@ in forum Excel General
    Replies: 30
    Last Post: 06-11-2012, 02:27 PM
  7. CURRENT Win/Loss Streak
    By lil_ern63 in forum Excel General
    Replies: 14
    Last Post: 10-19-2011, 06:54 PM

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