+ Reply to Thread
Results 1 to 4 of 4

Counting if two ranges occur between two times

Hybrid View

elleb Counting if two ranges occur... 04-30-2018, 09:03 AM
Phuocam Re: Counting if two ranges... 04-30-2018, 09:21 AM
elleb Re: Counting if two ranges... 04-30-2018, 09:42 AM
JeteMc Re: Counting if two ranges... 05-04-2018, 06:19 PM
  1. #1
    Forum Contributor
    Join Date
    11-07-2014
    Location
    UK
    MS-Off Ver
    2010
    Posts
    128

    Counting if two ranges occur between two times

    Hi all,

    I have two columns, one which contains the start time of a shift and the second contains the end time. I need to count if the start/end times fall within set timescales.

    Column A.....Column B
    0830............1800
    0845............1645
    0830............1700
    0900............1730
    0830............1700

    Between 0830-0845 would be 3
    Between 0830-0900 would be 4

    I've tried a number of countifs, countif(and and sumproduct and it's just not returning the right result.

    Any help would be very much appreciated.

  2. #2
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2024
    Posts
    6,175

    Re: Counting if two ranges occur between two times

    Quote Originally Posted by elleb View Post

    Between 0830-0845 would be 3
    Between 0830-0900 would be 4
    Is this 0830 or 0845?

  3. #3
    Forum Contributor
    Join Date
    11-07-2014
    Location
    UK
    MS-Off Ver
    2010
    Posts
    128

    Re: Counting if two ranges occur between two times

    Hi,

    It could be either, it was just giving an example of counting between different set time ranges. But, for what I want yes it would go up in 15minute segments.

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,902

    Re: Counting if two ranges occur between two times

    If I understand then it seems the following Countifs should work:
    Formula: copy to clipboard
    =COUNTIFS(A2:A6,">="&D1,A2:A6,"<"&E1)

    To test change E1 to 8:45
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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. Replies: 10
    Last Post: 08-26-2016, 02:01 AM
  2. Find the number of times 2 items occur together
    By sevent33nMAY in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-17-2016, 10:18 AM
  3. Replies: 5
    Last Post: 07-23-2014, 12:46 PM
  4. [SOLVED] counting how many times it occur
    By Elainefish in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 06-05-2013, 04:30 AM
  5. Determining how many times an event occur
    By DrStrangelove in forum Excel General
    Replies: 2
    Last Post: 09-18-2009, 03:46 PM
  6. How to display values that occur multiple times
    By fnb4321 in forum Excel General
    Replies: 2
    Last Post: 07-03-2009, 06:14 PM
  7. Help Finding if Names Occur Multiple Times
    By souljive99 in forum Excel General
    Replies: 1
    Last Post: 06-02-2009, 01:42 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