+ Reply to Thread
Results 1 to 5 of 5

Night Differential

  1. #1
    Registered User
    Join Date
    03-12-2018
    Location
    Philippines
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3

    Post Night Differential

    In the Philippines, every employee is entitled to a Night Differential of Night shift pay of not less than 10% of his regular wage for each hour of work performed between 10 pm and 6 am.

    How to compute night differential in excel?

    A2 (TIME IN)
    B2 (TIME OUT)
    in C2 type this formula: =B2-A2
    in D2 type this formula: =IF(AND(MOD(A2,1)< TIME(22,0,0),MOD(A2,1)> TIME(6,0,0)), TIME(22,0,0)-MOD(A2,1),0)
    +IF(AND(MOD(B2,1)< TIME(22,0,0),MOD(B2,1)> TIME(6,0,0)),MOD(B2,1)-TIME(6,0,0),0)
    E2 =C2-D2

    Column C is the total hours, column D is standard/regular hours, column E night differential hours.
    Format A&B as mm/dd/yyyy hh:mm, and C,D, & E as [h]:mm

  2. #2
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: Night Differential

    =sumproduct(index((row(1:2880)>mod(a2,1)*1440)*(row(1:2880)<=round((mod(a2,1)+c2)*1440,)),)*index((row(1:2880)>1320)*(row(1:2880)<=1800)+(row(1:2880)<=360),))/1440

  3. #3
    Registered User
    Join Date
    03-12-2018
    Location
    Philippines
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3

    Re: Night Differential

    Quote Originally Posted by tim201110 View Post
    =sumproduct(index((row(1:2880)>mod(a2,1)*1440)*(row(1:2880)<=round((mod(a2,1)+c2)*1440,)),)*index((row(1:2880)>1320)*(row(1:2880)<=1800)+(row(1:2880)<=360),))/1440
    It worked. You're awesome! Thanks, man!

  4. #4
    Valued Forum Contributor Sadath31's Avatar
    Join Date
    03-02-2011
    Location
    Dammam, Saudi Arabia
    MS-Off Ver
    Office 365
    Posts
    452

    Re: Night Differential

    Hi t
    =(MIN(TIMEVALUE("6:00:00"),MOD(B2,1))+1)-MAX(TIMEVALUE("22:00:00"),MOD(A2,1))

  5. #5
    Registered User
    Join Date
    03-12-2018
    Location
    Philippines
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3

    Re: Night Differential

    Quote Originally Posted by Sadath31 View Post
    Hi t
    =(MIN(TIMEVALUE("6:00:00"),MOD(B2,1))+1)-MAX(TIMEVALUE("22:00:00"),MOD(A2,1))
    Hi Sadath31, I tried this formula. It is working when the time in is 11:00 PM and time out is 6:00 AM but does not work when I changed the time in to 1:00 AM and time out to 6:00 AM.

+ 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. How to get Night differential Schedule Formula
    By joaquinq in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-03-2018, 11:37 AM
  2. [SOLVED] Night Differential and two different overtime rate
    By Deedee24 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-28-2017, 10:22 AM
  3. [SOLVED] Night differential
    By remyte in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-04-2016, 04:23 PM
  4. [SOLVED] Night Shift Differential
    By vaium in forum Excel General
    Replies: 9
    Last Post: 04-15-2016, 11:05 AM
  5. [SOLVED] Compute Night Differential Hours
    By UnKnown_25 in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 08-04-2015, 11:17 AM
  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