+ Reply to Thread
Results 1 to 3 of 3

Calulating Winning Streak by Month

  1. #1
    Forum Contributor
    Join Date
    07-29-2005
    Location
    Singapore
    MS-Off Ver
    2007
    Posts
    253

    Question Calulating Winning Streak by Month

    Reference to http://www.excelforum.com/excel-gene...ml#post2367964

    I converted the example for calculating by day to calculating by month with

    =MAX(FREQUENCY(IF((J$5:J$47>0)*(MONTH($B$5:$B$47)=2),ROW(J$5:J$47)),IF((J$5:J$47<=0)+(MONTH($B$5:$B$47)<>2),ROW(J$5:J$47))))

    Attached is a sample. I have a main data with a few tabs for different months. In my actual spreadsheet, I have been using the function of --(TEXT(Main!$B$5:$B$47,"mmm")=$C$1 where $C$1 is a list of months. When $C$1 changes, all data will change according to the selected month.

    How do I make $C$1 become "2" in MONTH(Main!$B$5:$B$47)=2 so that whenever I change the month in one tab, my winning streak will change accordingly?

    Example: MONTH(Main!$B$5:$B$47)=Convertnumber($C$1), where Convertnumber($C$1) = 2 if $C$1 is selected to be Feb?
    Attached Files Attached Files

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Calulating Winning Streak by Month

    replace =2 with =MONTH(1&$C$1)

  3. #3
    Forum Contributor
    Join Date
    07-29-2005
    Location
    Singapore
    MS-Off Ver
    2007
    Posts
    253

    Re: Calulating Winning Streak by Month

    Hi, thanks. It works now. :-)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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