+ Reply to Thread
Results 1 to 8 of 8

How do I count consecutive zero's in rows and exclude blanks

  1. #1
    Registered User
    Join Date
    03-13-2019
    Location
    South Africa
    MS-Off Ver
    10
    Posts
    3

    How do I count consecutive zero's in rows and exclude blanks

    My data starting at column a1 to ??

    How do I count consecutive zero's in rows and exclude blanks? (2 or more zeroes)

    SR 12, 12, 11, 0, 0, 0, 12, 11, 7, 0, 1, 10, 0, 0, 13, 0, 45, 11, 17, 0, 23, 7, 9, 0, 0 = 3
    PP 12, 1, 10, 12, 11, 7, 0, 0, 1, 10, 0, 0, 13, 0, 45, 11, 17, 0, 23, 7, 9, 0, 0 = 3

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: How do I count consecutive zero's in rows and exclude blanks

    How do you get the answer 3 in the PP row ?
    I see only two consecutive 0s in there
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Forum Expert Roel Jongman's Avatar
    Join Date
    03-28-2015
    Location
    Netherlands
    MS-Off Ver
    Office 365
    Posts
    1,483

    Re: How do I count consecutive zero's in rows and exclude blanks

    @special K there are 3 sets in PP, 2nd one is a bit harder to spot..

    PP 12, 1, 10, 12, 11, 7, 0, 0, 1, 10, 0, 0, 13, 0, 45, 11, 17, 0, 23, 7, 9, 0, 0 = 3

  4. #4
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,908

    Re: How do I count consecutive zero's in rows and exclude blanks

    Try this:

    =SUM(--(FREQUENCY(IF((A1:Z1=0)*(A1:Z1<>""),COLUMN(A1:Z1)),IF((A1:Z1<>0)*(A1:Z1<>""),COLUMN(A1:Z1)))>1))

    **Array formula,enter with Ctrl+Shift+Enter

  5. #5
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: How do I count consecutive zero's in rows and exclude blanks

    Quote Originally Posted by Roel Jongman View Post
    @special K there are 3 sets in PP, 2nd one is a bit harder to spot..

    PP 12, 1, 10, 12, 11, 7, 0, 0, 1, 10, 0, 0, 13, 0, 45, 11, 17, 0, 23, 7, 9, 0, 0 = 3
    Ah I thought we were counting longest winning streak of 0s

  6. #6
    Registered User
    Join Date
    03-13-2019
    Location
    South Africa
    MS-Off Ver
    10
    Posts
    3

    Re: How do I count consecutive zero's in rows and exclude blanks

    Thank you for helping, Im getting a formula error message after changing the range -Is Office 2007 ok?

  7. #7
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,908

    Re: How do I count consecutive zero's in rows and exclude blanks

    Try changing the separator "," to ";"

  8. #8
    Registered User
    Join Date
    03-13-2019
    Location
    South Africa
    MS-Off Ver
    10
    Posts
    3

    Re: How do I count consecutive zero's in rows and exclude blanks

    Thank you, perfect - much appreciated

+ 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. Replies: 2
    Last Post: 07-30-2018, 02:21 PM
  2. [SOLVED] Using COUNTA to count a range but exclude blanks and 0.00
    By OverKnight in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-24-2018, 03:47 PM
  3. Count consecutive more than 3 days absent in a month/year exclude Sat/Sun/PubHol
    By suchetherrah in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-30-2017, 12:51 PM
  4. Replies: 20
    Last Post: 05-02-2014, 06:42 AM
  5. Count values in column but exclude filtered rows
    By elee532 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-26-2013, 12:53 AM
  6. Replies: 4
    Last Post: 05-30-2013, 06:00 PM
  7. Replies: 0
    Last Post: 06-15-2011, 09:46 AM

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