+ Reply to Thread
Results 1 to 9 of 9

conditional counting

  1. #1
    Registered User
    Join Date
    07-31-2015
    Location
    India
    MS-Off Ver
    2010
    Posts
    35

    conditional counting

    Hi,

    I need support to find out the formula to solve the issue.conditions are

    1)Count required of D column
    2)If D value repeate with in 20 min(With ref to Start time) consider as 1 instance only and after 20 min as another instance

    I have done manually in last column.




    EventStartDate Start Time EndTime Name example
    25-Jul-15 17:22 17:26 ABJ 1
    25-Jul-15 17:54 17:58 AMB 1
    25-Jul-15 15:58 16:05 ANK 1
    25-Jul-15 13:28 13:34 ANT 1
    25-Jul-15 15:58 16:07 ATO 1
    25-Jul-15 12:47 12:50 BEA 1
    25-Jul-15 12:57 13:04 BEA 0
    25-Jul-15 20:43 20:44 BHO 1
    25-Jul-15 20:44 20:50 BHO 0
    25-Jul-15 20:43 20:44 BKW 1
    25-Jul-15 22:17 22:19 BNY 1
    25-Jul-15 17:22 17:24 HJO 1
    25-Jul-15 16:22 16:24 JST 1
    25-Jul-15 13:13 13:15 KDY 1
    25-Jul-15 13:48 13:51 KDY 0

  2. #2
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,844

    Re: conditional counting

    Something like this? Arrayformula, it has to be entered with Ctrl + Shift + Enter.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    <----- If you were helped by my posts you can say "Thank you" by clicking the star symbol down to the left

    If the problem is solved, finish of the thread by clicking SOLVED under Thread Tools
    I don't wish to leave you with no answer, yet I sometimes miss posts. If you feel I forgot you, remind me with a PM or just bump the thread.

  3. #3
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: conditional counting

    will you please attach sample excel file with expected result
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  4. #4
    Registered User
    Join Date
    07-31-2015
    Location
    India
    MS-Off Ver
    2010
    Posts
    35

    Re: conditional counting

    Hi,

    Pl find the attachment.
    Attached Files Attached Files

  5. #5
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: conditional counting

    manish Joshi07, Why E16=0

  6. #6
    Registered User
    Join Date
    07-31-2015
    Location
    India
    MS-Off Ver
    2010
    Posts
    35

    Re: conditional counting

    u r right it is 1

  7. #7
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: conditional counting

    =--(COUNTIFS($D$2:$D$16,$D2,$A$2:$A$16,$A2,$B$2:$B$16,"<"&$B2,$B$2:$B$16,">"&$B2-TIME(0,20,0))=0)
    Please Login or Register  to view this content.
    Try this and copy towards down

  8. #8
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: conditional counting

    or
    =IF(D2<>D1,1,IF(B2-B1<=TIME(0,20,0),0,1))
    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    07-31-2015
    Location
    India
    MS-Off Ver
    2010
    Posts
    35

    Re: conditional counting

    thanks it working.

+ 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. Conditional Counting
    By Wazo11 in forum Excel General
    Replies: 15
    Last Post: 08-23-2014, 12:00 PM
  2. Conditional Counting
    By ScottLor in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 04-01-2013, 02:14 PM
  3. Conditional Counting
    By k12kt in forum Excel General
    Replies: 2
    Last Post: 04-27-2012, 05:33 AM
  4. Replies: 6
    Last Post: 02-04-2012, 06:57 PM
  5. Need:Conditional counting
    By agni452 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-20-2011, 11:41 PM
  6. need Conditional counting?
    By FnGreg7 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-15-2009, 04:06 PM
  7. conditional counting
    By pytelium in forum Excel General
    Replies: 2
    Last Post: 07-09-2008, 05:20 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