+ Reply to Thread
Results 1 to 3 of 3

countif between two times.

  1. #1
    Registered User
    Join Date
    02-24-2022
    Location
    wigan england
    MS-Off Ver
    office 365
    Posts
    21

    countif between two times.

    In the attached file the formulas in column L are not working as I intend. should the end time from column E go past 22:00hrs it will calculate the number of hours for night premiums. However the formula isn't working if the "start" time falls within the night premiums time slot. So if the start time is 05:00 it should show 1 hour in column L.
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    02-24-2022
    Location
    wigan england
    MS-Off Ver
    office 365
    Posts
    21

    Re: countif between two times.

    I can manipulate the formula to work by putting a time in cell in b7 that is 00:00 or greater however would prefer to keep as 22:00 if possible. any help greatly appreciated
    Phil

  3. #3
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,733

    Re: countif between two times.

    Assuming that J13:K13 are calculating correctly it would seem that L13 could be populated using: =F13*24-SUM(J13:K13)
    Note that you may either set the formatting to General or Number with no decimal places.
    Let us know if you have any questions.
    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. [SOLVED] countif how many times greater than 1
    By swfarm in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-20-2019, 11:41 AM
  2. [SOLVED] COUNTIF between two times
    By doodlelurch in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-06-2018, 10:45 AM
  3. [SOLVED] Organizing/Plotting Times? Countif??
    By pshearer in forum Excel General
    Replies: 3
    Last Post: 03-26-2014, 05:50 AM
  4. CountIf falls between times
    By adam2308 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 01-05-2014, 09:49 AM
  5. COUNTIF for times????
    By RiceKrispy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-08-2012, 12:49 PM
  6. Countif on times
    By Benson-112 in forum Excel General
    Replies: 4
    Last Post: 08-24-2009, 10:16 AM
  7. [SOLVED] Countif("between start/end times)
    By Ian Jones in forum Excel General
    Replies: 1
    Last Post: 01-06-2005, 04:04 PM

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