+ Reply to Thread
Results 1 to 6 of 6

Counting values in a time range - when the time range crosses midnight

Hybrid View

  1. #1
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,643

    Re: Counting values in a time range - when the time range crosses midnight

    Try in O4;
    =IF($L$4:$L$9="RCAL",SUMPRODUCT(($A$4:$A$7+$B$4:$B$7>=$I4+$J4)*($A$4:$A$7+$B$4:$B$7<=($I4+$K4+IF($K4-$J4>0,0,1)))*($D$4:$D$7=O$3)*($E$4:$E$7=$Q4)),"")
    Column M & N may not be used with this formula, it can be deleted if needed.
    Quang PT

  2. #2
    Registered User
    Join Date
    06-30-2013
    Location
    Cairns, Australia
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Counting values in a time range - when the time range crosses midnight

    i didn't quite get this one to work but I think that could be me more than anything. Thanks for your help

+ 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] Calculating total time worked between a range over midnight.
    By amurr in forum Excel General
    Replies: 10
    Last Post: 03-13-2019, 03:27 AM
  2. compare time values - current time with time in cell range?
    By wyattea in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-13-2013, 11:28 PM
  3. Help with counting how many are within a time range, for a specific time
    By snswilliams in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-29-2013, 02:19 PM
  4. Formula for Time Sheet that Crosses Midnight
    By imjuspiayin in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-25-2013, 10:24 PM
  5. Counting time ranges within a range
    By Ducatisto in forum Excel General
    Replies: 4
    Last Post: 10-17-2008, 02:16 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