Results 1 to 29 of 29

Find/count consecutive entries in a row in excel

Threaded View

  1. #1
    Registered User
    Join Date
    10-02-2021
    Location
    UAE
    MS-Off Ver
    2010, 2019, MS 365
    Posts
    17

    Find/count consecutive entries in a row in excel

    Hi everyone,

    I had a rather intriguing excel question for the forum.

    I have a row in excel that goes like this,

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

    I want to find the count of consecutive entries less than 5 and the count has to reset back to 0 if 5 is found and then start again from that 5 onwards

    for example

    1 2 3 4 --> gives 4
    1 2 3 4 5 1 2 3 --> gives 3

    1 2 3 4 5 1 2 3 2 1 2 5 1 3 2 1 4 4 3 2 5 --> gives 0

    My basic idea is to find the most number of days a person has been scoring lesser than 5 and ofc it resets if he/she able to get 5 or above on a certain day. Therefore each value on a row is per day basis. (column means dates)

    Help me out, Please. <3

    EDIT: I also want blanks to be considered as 0.

    real example: # 0.1 0.2 1 1.1 2 is the first row where '#' is blank, anything less than 1 should be counted and the first occurance of 1 or above value resets the count and counter starts again from that spot onwards, while ignoring all before it.

    # # 1.1 2 --> gives 2
    0.1 # 0.2 2 --> gives 3
    ## 0.1 1.1 0.1 --> gives 1
    if no other choice then i can replace all blanks with '0' too
    Last edited by reliableboy2; 10-03-2021 at 04:00 PM.

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. Find count of unique entries using vba
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 33
    Last Post: 11-25-2019, 03:31 AM
  3. [SOLVED] Count Consecutive & Non consecutive days per given logic
    By asimraza89 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-26-2019, 04:31 PM
  4. [SOLVED] Find last occurance of value in column and count entries below
    By terratushi in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-22-2019, 02:50 PM
  5. Replies: 1
    Last Post: 03-20-2015, 03:56 AM
  6. How to find the maximum count of consecutive occurances in an excel range
    By manojsinha2006 in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 03-20-2015, 03:47 AM
  7. [SOLVED] Counting the number of entries in a column (but only once for consecutive entries)
    By 11416498 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-30-2014, 09:36 AM

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