+ Reply to Thread
Results 1 to 4 of 4

Countif...

  1. #1
    Registered User
    Join Date
    03-14-2016
    Location
    Germany
    MS-Off Ver
    Office 2013
    Posts
    15

    Question Countif...

    Hi guys,

    I have the following problem for a time series:

    Column A = Date
    Column B = values
    Column C = if B < 20, then 1, otherwise 0

    What I want for column D: Start counting from 1 up, when C = 1 until it switches back to 0 (so it should give me the cumulative number of days, time series is below 20 for x consecutive days)

    Col A | Col B | Col C | Col D
    19.1.2016 | 21,1 | 0 | 0
    20.1.2016 | 19,9 | 1 | 1
    21.1.2016 | 18,4 | 1 | 2
    22.1.2016 | 17,3 | 1 | 3
    23.1.2016 | 20,1 | 0 | 0

    Thx in advance!

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,791

    Re: Countif...

    Data in Row 2 down and D1=blank (0)

    in D2

    =IF(C2=0,0,D1+1)

  3. #3
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,791

    Re: Countif...

    Post duplicated: removed by JT
    Last edited by JohnTopley; 05-17-2016 at 09:36 AM.

  4. #4
    Registered User
    Join Date
    03-14-2016
    Location
    Germany
    MS-Off Ver
    Office 2013
    Posts
    15

    Re: Countif...

    Thx...yep had a server error when posted

+ 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. Faster if/countif formula for flagging uniques - countif too slow
    By Speshul in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-19-2015, 01:44 PM
  2. [SOLVED] =Subtotal(countif,Range); Subtotal and countif in 1 formula [SOLVED]
    By thomas.mapua in forum Excel General
    Replies: 5
    Last Post: 01-06-2012, 11:33 AM
  3. Combining a Date Range COUNTIF and a general COUNTIF
    By jacobtom in forum Excel General
    Replies: 1
    Last Post: 09-15-2011, 05:06 PM
  4. Adding a CountIF to a formula that is already Countif
    By Cmorgan in forum Excel General
    Replies: 4
    Last Post: 06-01-2011, 09:34 AM
  5. [SOLVED] COUNTIF or not to COUNTIF on a range in another sheet
    By Ellie in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-15-2005, 05:06 PM
  6. Countif w/ Multiple Criteria-How do I use countif
    By Patrick_KC in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-09-2005, 05:05 PM
  7. COUNTIF in one colum then COUNTIF in another...???
    By JonnieP in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-22-2005, 11:06 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