Results 1 to 8 of 8

Night differential

Threaded View

  1. #6
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2504
    Posts
    19,298

    Re: Night differential

    Here is another alternative that makes a 24 hour table, which may be hidden for aesthetic purposes and/or moved to make way for other columns (to calculate pay for example), divided into 30 minute time intervals and is populated with the formula:
    Formula: copy to clipboard
    =IF(ROUND($C2,6)=ROUND(I$1,6),"s",IF(ROUND($D2,6)=ROUND(I$1,6),"f",IF(OR(H2="s",H2="d"),"d","")))
    Two columns then calculate the number of hours worked in the 8:00 - 10:00 and 10:00 - 6:00 time frames using the following formulas respectively:
    Formula: copy to clipboard
    =SUMPRODUCT((($I2:$BD2="d")+($I2:$BD2="s"))*($I$1:$BD$1>=F$8)*($I$1:$BD$1<F$9))/2
    Formula: copy to clipboard
    =SUMPRODUCT((($I2:$BD2="d")+($I2:$BD2="s"))*(($I$1:$BD$1>=G$8)+($I$1:$BD$1<G$9)))/2
    Note that column H is populated with the formula:
    Formula: copy to clipboard
    =IF(OR(BD2="s",BD2="d"),"d","")
    Let me 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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] How to count hours for Night Differential (using IF function)
    By helpme10 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 03-30-2019, 05:07 PM
  2. [SOLVED] Night Shift Differential
    By vaium in forum Excel General
    Replies: 9
    Last Post: 04-15-2016, 11:05 AM
  3. Computing for number of hours under Night Differential
    By emanon132501 in forum Excel General
    Replies: 4
    Last Post: 09-24-2015, 02:13 AM
  4. [SOLVED] Compute Night Differential Hours
    By UnKnown_25 in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 08-04-2015, 11:17 AM
  5. TIME DIFFERENCE - Calculate Night Differential
    By persnickety in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-12-2013, 12:44 PM
  6. How to calculate Night Differential
    By mar_t in forum Excel General
    Replies: 10
    Last Post: 01-04-2013, 01:55 AM
  7. Replies: 2
    Last Post: 07-27-2012, 04:54 AM

Tags for this Thread

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