+ Reply to Thread
Results 1 to 9 of 9

Return Streak Based on Selected Month

  1. #1
    Forum Contributor
    Join Date
    05-29-2017
    Location
    UK
    MS-Off Ver
    Pro Plus 2016
    Posts
    301

    Return Streak Based on Selected Month

    Hi guys, would you know how to go about this one? Tricky...

    Basically, need formula to return streak values based on a month selected. Attaching an Excel and screenshots below.

    Would you be able to suggest? Thanking in advance!

    https://www.excelforum.com/attachmen...1&d=1512669595 [EXCEL]

    2017-12-07_1957.png
    Attached Files Attached Files

  2. #2
    Forum Expert kersplash's Avatar
    Join Date
    11-22-2016
    Location
    Perth
    MS-Off Ver
    Home 2016 (Windows 10)/Work 2013 Pro Plus (Windows 10)
    Posts
    2,012

    Re: Return Streak Based on Selected Month

    Hi,

    Please see the attached of how I went about it.

    Used a table with a different layout.
    Attached Files Attached Files

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,036

    Re: Return Streak Based on Selected Month

    Why is the expected answer 0 for April?
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

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

    Re: Return Streak Based on Selected Month

    In I7, then copy to other cells

    =INDEX($D$4:$O$4,C7)
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  5. #5
    Forum Contributor
    Join Date
    05-29-2017
    Location
    UK
    MS-Off Ver
    Pro Plus 2016
    Posts
    301

    Re: Return Streak Based on Selected Month

    Thanks guys for looking into it.

    @ kersplash - sorry, not able to use this suggested option. Needs to be a formula, as per examples (no pivots)
    @ Glenn - because 1 is not really a streak? But if formula would return 1 there, that would also be fine
    @ kvsrinivasamurthy - your suggested =INDEX($D$4:$O$4,C7) in I7 returns W, when it should be 2?

  6. #6
    Forum Expert kersplash's Avatar
    Join Date
    11-22-2016
    Location
    Perth
    MS-Off Ver
    Home 2016 (Windows 10)/Work 2013 Pro Plus (Windows 10)
    Posts
    2,012
    Quote Originally Posted by vill View Post
    Thanks guys for looking into it.

    @ kersplash - sorry, not able to use this suggested option. Needs to be a formula, as per examples (no pivots)
    It's not a pivot. Uses a formula. Gives the right answer.

    Just laid the problem out a different way.

  7. #7
    Forum Contributor
    Join Date
    05-29-2017
    Location
    UK
    MS-Off Ver
    Pro Plus 2016
    Posts
    301

    Re: Return Streak Based on Selected Month

    Thanks kersplash. Before replying last time, and this time, I tried using the formulas =IF([@[W/L]]=B22,C22+1,1) to enter in I7 (where it needs to go) and received this error message (screenshot below) So not sure how to use this formula... if you could suggest, would be great! Thank you

    2017-12-08_1352.png

  8. #8
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,193

    Re: Return Streak Based on Selected Month

    See attached row 5

    uses same approach as "Kersplash"

    =IF(D4=C4,C5+1,1)
    Attached Files Attached Files

  9. #9
    Forum Contributor
    Join Date
    05-29-2017
    Location
    UK
    MS-Off Ver
    Pro Plus 2016
    Posts
    301

    Re: Return Streak Based on Selected Month

    Awesome! John, guys, thank you...

+ 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. Longest streak and current streak if data are placed in two columns
    By Lehoi in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 10-06-2016, 01:29 AM
  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. Return value of the last week of the month based on the year and month
    By stevekho2 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-14-2013, 11:04 AM
  4. Replies: 2
    Last Post: 01-30-2013, 03:16 AM
  5. Calulating Winning Streak by Month
    By Lewis Koh in forum Excel General
    Replies: 2
    Last Post: 08-22-2010, 02:25 AM
  6. Winning Streak by Month...
    By erickguz in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-17-2008, 07:37 PM
  7. Replies: 3
    Last Post: 09-25-2007, 10:26 AM

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