+ Reply to Thread
Results 1 to 6 of 6

count and restart when condition meet

  1. #1
    Registered User
    Join Date
    04-16-2015
    Location
    Simeria
    MS-Off Ver
    2021
    Posts
    97

    count and restart when condition meet

    Hi

    need help with formula
    count until the condition is met and restart the count

    and the result must be on same row with condition on column B
    Attached Files Attached Files
    Last edited by pedersenn; 10-02-2022 at 05:34 PM.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,822

    Re: count and restart when condition meet

    You can use this formula in E5:

    =IF(B5="restart count",IFERROR(MATCH("restart count",B6:B$28,0),COUNTA(C5:C$28)),"")

    Copy down to E27.

    Hope this helps.

    Pete

  3. #3
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,465

    Re: count and restart when condition meet

    I don't understand, the results 4, 6, 3 and 10 and has sheet 2 with the 7 also something to do with it?
    Please could you give a more concrete example with explanation?
    Last edited by HansDouwe; 10-02-2022 at 06:07 PM.

  4. #4
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,465

    Re: count and restart when condition meet

    Removed by myself (duplicate post)
    Last edited by HansDouwe; 10-02-2022 at 06:08 PM.

  5. #5
    Registered User
    Join Date
    04-16-2015
    Location
    Simeria
    MS-Off Ver
    2021
    Posts
    97

    Re: count and restart when condition meet

    The problem is solved with this formula: =IF(B5="restart count",IFERROR(MATCH("restart count",B6:B$28,0),COUNTA(C5:C$28)),"")


    The second sheet has nothing to do with the first, it is by mistake.

    Formula counts until next condition on column B.
    Is 4 because there are 4 rows up to the first condition on column B.
    Last edited by pedersenn; 10-02-2022 at 09:47 PM.

  6. #6
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,822

    Re: count and restart when condition meet

    Glad to help, and thanks for the rep.

    If that takes care of your original question, please take a moment to select Thread Tools from the menu above and to the right of your first post in this thread, and mark the thread as SOLVED.

    Pete

+ 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. [SOLVED] Unique count and output total count for IDs that meet condition
    By makaveeti in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-05-2022, 09:53 AM
  2. Count Value of Cells that meet a certain condition
    By cdhampshire in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-17-2020, 06:09 AM
  3. [SOLVED] Restart count function after meeting condition
    By Jepri in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-18-2017, 03:38 AM
  4. vba code for count restart formula if condition
    By pedersenn in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 09-18-2017, 02:29 AM
  5. Formula Required to Count Rows only if condition is meet or else dont count
    By Shahbazk in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 08-22-2017, 08:39 AM
  6. [SOLVED] Count if the sum of columns meet a condition
    By my_sunshine in forum Excel Formulas & Functions
    Replies: 24
    Last Post: 03-09-2015, 12:33 PM
  7. Count text strings that meet a condition
    By dcgrove in forum Excel General
    Replies: 4
    Last Post: 09-14-2010, 03:38 PM

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