Results 1 to 9 of 9

count the number of consecutive values >=2

Threaded View

  1. #1
    Registered User
    Join Date
    06-14-2011
    Location
    Scotland
    MS-Off Ver
    Excel 2019 & MS365
    Posts
    15

    count the number of consecutive values >=2

    I would like to count the number of consecutive values >=2 in a row.

    Eg:-
    1 2 3 2 3 2 2 2 2 1 1 1 3 3 2 2 1 1

    The returned value would be 8, because the 2nd to the 9th figure are all greater or equal to 2

    OR

    1 2 3 1 2 1 3 2 1 3 2 3 4 3 1 2 3 1

    The returned value would be 5, because the 10th to the 14th figure are all greater or equal to 2
    Last edited by jomuir; 06-14-2011 at 11:20 AM.

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