+ Reply to Thread
Results 1 to 2 of 2

detect number of exact successive cells

  1. #1
    Registered User
    Join Date
    07-31-2012
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    1

    detect number of exact successive cells

    Hi all,

    I have a table with start and end times of events which i filter based on several criteria with a 1 or a 0. The filters are dependent on adjacent events events so if I have consecutive filters I want the output to reference/recognize that there are 3 rows filtered in the first cell. Something like this:

    ID Filter NumSuccessive
    1 1 4
    2 1
    3 1
    4 1
    5
    6 1 2
    7 1
    8
    9 1 1
    10
    11
    12 1 3
    13 1
    14 1


    Can someone please help - I can't think of a clean way to do this with formulas.

    Thanks

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591

    Re: detect number of exact successive cells

    Hi

    If your data is in the range A1:B15 (ie row 1 has headings), then
    C2: =IF(AND(B2<>"",B2<>B3),COUNT($B$2:B2)-SUM($C$1:C1),"")

    HTH

    rylo

+ 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