Excel Streaks

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • TGHMak
    SBR Wise Guy
    • 02-25-09
    • 658

    #1
    Excel Streaks
    Does anyone know how I can calculate W/L streaks within Excel? I would like to figure out the mean, median and mode of the streaks.


    I have the data entered within a single column:

    W
    1
    1
    0
    1
    1
    1
    0
    1
    1
    0
    1
    1
  • mebaran
    SBR MVP
    • 09-16-09
    • 1540

    #2
    Go to the data tab on top. Click on Data Analysis. Then choose Descriptive Statistics. Choose your data field by highlighting it. Then click summary statistics at the bottom of the box. Also, highlight an output range in your spreadsheet (where you want the stats to show up).
    Comment
    • That Foreign Guy
      SBR Sharp
      • 07-18-10
      • 432

      #3
      I'd do it with a nested if, but I am addicted to them at the moment.

      You're checking A16,

      =IF(AND(A16=A15,A16=A14,A16=A13),4,IF(AN D(A16=A15,A16=A14),3,IF(A16=A15,2,1))) etc will give you the length of this streak.

      you then need to determine if a cell is the end of the streak or not. =IF(B17<B16,"",B16)

      If you're interested in telling the difference between W and L streaks I would add this back in based on the value of column A for the streak ending line. =if(a19=1,"W"&c19,"L"&c19)
      Last edited by That Foreign Guy; 12-14-10, 09:22 AM. Reason: let me know if it isn't clear, you'll need to stretch the if statement until it covers a really long streak
      Comment
      • mebaran
        SBR MVP
        • 09-16-09
        • 1540

        #4
        Originally posted by That Foreign Guy
        I'd do it with a nested if, but I am addicted to them at the moment.

        You're checking A16,

        =IF(AND(A16=A15,A16=A14,A16=A13),4,IF(AN D(A16=A15,A16=A14),3,IF(A16=A15,2,1))) etc will give you the length of this streak.

        you then need to determine if a cell is the end of the streak or not. =IF(B17<B16,"",B16)

        If you're interested in telling the difference between W and L streaks I would add this back in based on the value of column A for the streak ending line. =if(a19=1,"W"&c19,"L"&c19)
        Oops, definitely misread the question. But to find standard error and means of those streaks, you can still use data analysis
        Comment
        • TomG
          SBR Wise Guy
          • 10-29-07
          • 500

          #5
          Create a new column next to W. Label it "Streak." Assuming column W starts in A, use this formula for streak.

          =IF(A2=A1,B1+1,1)
          Comment
          • djiddish98
            SBR Sharp
            • 11-13-09
            • 345

            #6
            Take the formula that TomG provided, but add this formula next to it in column C

            =IF(B2=1,B1,"")

            This way, Column C will list the final number of the streak as opposed to simply counting the streak. From there, you should be able to apply =AVERAGE, =MEDIAN and =MODE on column C to get a sense of streaks. I believe the "" in the formula will be disregarded.
            Comment
            SBR Contests
            Collapse
            Top-Rated US Sportsbooks
            Collapse
            Working...