+ Reply to Thread
Results 1 to 5 of 5

current streak

  1. #1
    Registered User
    Join Date
    07-08-2013
    Location
    arnhem
    MS-Off Ver
    Excel 2010
    Posts
    6

    current streak

    Hello I have the following results:

    A1
    -3
    9
    15
    0
    0
    -3
    -3
    -3
    0
    0
    12
    -3
    0
    0
    0
    0
    0
    0
    -3
    15
    0
    0
    0

    These are numbers from a card game. If it is a 0 then the player didn't play.
    I want to sum the last 5 games where the player did play.
    So the result should be -3 +12 -3 -3 +15= 18

    What formula do i need to use?

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: current streak

    Try this array formula**:

    =SUMIF(INDEX(A1:A25,LARGE(IF(A1:A25<>0,ROW(A1:A25)-ROW(A1)+1),5)):A25,"<>0")

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: current streak

    Another way......
    Try this Array Formula, which requires confirmation with Ctrl+Shift+Enter instead of just Enter.
    Assuming that your numbers are in the range A1:A23, then

    Please Login or Register  to view this content.
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  4. #4
    Registered User
    Join Date
    07-08-2013
    Location
    arnhem
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: current streak

    Thanks, exactly what i was looking for.
    great formula

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: current streak

    You're welcome. Thanks for the feedback!


    If your question has been solved please mark the thread as being solved.

    In the menu bar above the very first post select Thread Tools, then select Mark this thread as solved.

+ 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. 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
  2. [SOLVED] Consecutive win/loss and current win/loss streak
    By TK2013 in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 09-18-2013, 09:15 AM
  3. [SOLVED] IF statement for current wins/losses streak
    By damianberry in forum Excel General
    Replies: 1
    Last Post: 11-15-2012, 05:25 AM
  4. [SOLVED] Current Streak of "0's" in a list
    By alexrawnsley in forum Excel General
    Replies: 10
    Last Post: 10-27-2012, 02:45 PM
  5. 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