+ Reply to Thread
Results 1 to 6 of 6

formula to find maximum consecutive positive values by year

Hybrid View

  1. #1
    Registered User
    Join Date
    09-28-2022
    Location
    Perth
    MS-Off Ver
    O365
    Posts
    29

    formula to find maximum consecutive positive values by year

    HI

    I got data by year and return in column C and D

    Googled it and found the maximum consecutive positive and negative value for entire Column C. But now I need to find it by year after year.

    Thank you
    Attached Files Attached Files

  2. #2
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    China Shanghai
    MS-Off Ver
    365 V2502 and WPS V2024(12.1.0.18543)
    Posts
    3,842

    Re: formula to find maximum consecutive positive values by year

    Cell H6 formula , Drag down

    Formula: copy to clipboard
    =MAX(FREQUENCY(IF((--$D$2:$D$106=--G6)*($C$2:$C$106<0),ROW($2:$106)),IF((--$D$2:$D$106=--G6)*($C$2:$C$106>=0),ROW($2:$106))))


    Cell I6 formula , Drag down
    Formula: copy to clipboard
    =MAX(FREQUENCY(IF((--$D$2:$D$106=--G6)*($C$2:$C$106>0),ROW($2:$106)),IF((--$D$2:$D$106=--G6)*($C$2:$C$106<=0),ROW($2:$106))))

  3. #3
    Registered User
    Join Date
    09-28-2022
    Location
    Perth
    MS-Off Ver
    O365
    Posts
    29

    Re: formula to find maximum consecutive positive values by year

    Cheers!!! Thank you

  4. #4
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    China Shanghai
    MS-Off Ver
    365 V2502 and WPS V2024(12.1.0.18543)
    Posts
    3,842

    Re: formula to find maximum consecutive positive values by year

    @idealist87 You're Welcome. Glad to help . Thank You for the feedback and rep.

    If you finally get a solution please mark your thread as SOLVED:
    - Click Thread Tools above your first post,you will see the word PREFIX on the upper left, press the button to select [SOLVED] select "Mark your thread as Solved".

  5. #5
    Registered User
    Join Date
    09-28-2022
    Location
    Perth
    MS-Off Ver
    O365
    Posts
    29

    Re: formula to find maximum consecutive positive values by year

    hi

    I have added one more league to the data.

    Same as above, but this want consecutive values based on both year and league.

    Thank you
    Attached Files Attached Files

  6. #6
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    China Shanghai
    MS-Off Ver
    365 V2502 and WPS V2024(12.1.0.18543)
    Posts
    3,842

    Re: formula to find maximum consecutive positive values by year

    Quote Originally Posted by idealist87 View Post
    hi

    I have added one more league to the data.

    Same as above, but this want consecutive values based on both year and league.

    Thank you
    Cell H11 formula
    Formula: copy to clipboard
    =MAX(FREQUENCY(IF((--$D$2:$D$106=--G11)*($B$2:$B$106=G10)*($C$2:$C$106<0),ROW($2:$106)),IF((--$D$2:$D$106=--G11)*($B$2:$B$106=G10)*($C$2:$C$106>=0),ROW($2:$106))))

+ 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] Find and sum of the most consecutive positive numbers in a column A
    By rayhen in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-11-2021, 09:36 AM
  2. [SOLVED] How to find the maximum value of the last 6 consecutive days without spaces?
    By rayhen in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 12-22-2020, 11:09 PM
  3. Replies: 2
    Last Post: 07-30-2018, 02:21 PM
  4. [SOLVED] Maximum cumulative value for the consecutive 3 days of data in 1 year period
    By bennyistanto in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-26-2017, 08:43 AM
  5. Find maximum output of a formula as long as another variable is positive
    By stellan76 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-23-2016, 03:50 PM
  6. [SOLVED] Find consecutive 15 positive or negative numbers in a column
    By Sarangsood in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-19-2013, 05:26 AM
  7. Replies: 2
    Last Post: 06-26-2012, 03:13 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