+ Reply to Thread
Results 1 to 6 of 6

Count Max Consecutive Zeros

  1. #1
    Registered User
    Join Date
    04-19-2011
    Location
    Leeds
    MS-Off Ver
    Excel 365
    Posts
    48

    Count Max Consecutive Zeros

    Hi all,

    I need to count the maximum number of consecutive weeks that stock levels reached 0, over a 26 week period for thousands of stock items.

    I can count the total instances that reached 0, but I only need to know the longest unbroken period, even if there were two periods of the same duration.

    Example attached.

    Any help would be appreciated.

    Thanks, Feastie.
    Attached Files Attached Files
    There's always a way.

  2. #2
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,704

    Re: Count Max Consecutive Zeros

    one option

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    03-26-2016
    Location
    São Paulo - Brazil
    MS-Off Ver
    2016
    Posts
    48

    Re: Count Max Consecutive Zeros

    Feastle

    Check if it is this way

    Depends on the version of Excel to close with CTRL + SHIFT + ENTER

    Decio
    Attached Files Attached Files
    Last edited by deciog; 06-08-2020 at 07:29 AM.

  4. #4
    Registered User
    Join Date
    04-19-2011
    Location
    Leeds
    MS-Off Ver
    Excel 365
    Posts
    48

    Re: Count Max Consecutive Zeros

    Thank you. works a treat.

    Feastie.

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,396

    Re: Count Max Consecutive Zeros

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  6. #6
    Registered User
    Join Date
    04-19-2011
    Location
    Leeds
    MS-Off Ver
    Excel 365
    Posts
    48

    Re: Count Max Consecutive Zeros

    Just on it.

+ 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. Count consecutive > zero, ignore zero count consecutive > zero next cell
    By karl.smith in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-16-2020, 07:58 AM
  2. Counting single zeros and consecutive zeros as one each
    By rosstfer in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 11-27-2018, 08:41 PM
  3. Indicate the Instance of Consecutive Zeros in a Row
    By IbeforeV in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-04-2015, 04:27 PM
  4. [SOLVED] Count of Consecutive Zeros excluding #N/A
    By gaffee in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-10-2014, 10:04 AM
  5. Count longest consecutive run of zeros
    By TheRobsterUK in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-17-2013, 08:02 AM
  6. [SOLVED] Average for non-consecutive cells excluding zeros (even when they all contain zeros)
    By pao13 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-05-2012, 04:32 PM
  7. Counting consecutive zeros at end of range
    By darkyam in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-16-2010, 01:45 PM

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