+ Reply to Thread
Results 1 to 3 of 3

Formula to count the number of events of consecutive values

  1. #1
    Registered User
    Join Date
    09-05-2012
    Location
    Brisbane, Australia
    MS-Off Ver
    Excel 2010
    Posts
    12

    Formula to count the number of events of consecutive values

    Hi,
    I need to create a formula that looks at my roster and counts the number of instances of "S" appearing in the roster where consecutive "S" values are counted as 1 event.

    I have attached a sample spreadsheet. The cells in yellow are where I wish the formula to reside.

    Secondly is there a way to ignore blank cells between the S to count the event as 1?

    Thanks in advance for all you help
    Attached Files Attached Files

  2. #2
    Forum Expert WideBoyDixon's Avatar
    Join Date
    10-03-2016
    Location
    Sheffield, UK
    MS-Off Ver
    365
    Posts
    2,182

    Re: Formula to count the number of events of consecutive values

    Formula for AH3:

    Please Login or Register  to view this content.
    Enter with Ctrl+Shift+Enter to create an array formula. However, that does give a result of 2 for the first employee based on the two separate runs of "S" (B3:F3 and J3:J3).

    WBD
    Office 365 on Windows 11, looking for rep!

  3. #3
    Forum Expert WideBoyDixon's Avatar
    Join Date
    10-03-2016
    Location
    Sheffield, UK
    MS-Off Ver
    365
    Posts
    2,182

    Re: Formula to count the number of events of consecutive values

    Perhaps:

    Please Login or Register  to view this content.
    It seems to produce the right result!!

    WBD

+ 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 the number of consecutive values >=2
    By jomuir in forum Excel General
    Replies: 8
    Last Post: 03-03-2017, 12:59 PM
  2. Count consecutive duplicate values and then divide by that number
    By jov1987 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-12-2016, 12:25 PM
  3. Replies: 17
    Last Post: 06-27-2014, 04:25 PM
  4. Replies: 2
    Last Post: 02-09-2014, 12:40 AM
  5. Replies: 3
    Last Post: 12-28-2013, 07:53 PM
  6. [SOLVED] I need COUNTIFS or SUMPRODUCT formula to count ONLY Non-Consecutive values
    By justinbelkin in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-19-2013, 03:24 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