+ Reply to Thread
Results 1 to 3 of 3

Have a wage formula but need an IF statement to calculate shift diff on Sundays

  1. #1
    Registered User
    Join Date
    06-29-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    5

    Have a wage formula but need an IF statement to calculate shift diff on Sundays

    Please see attached. All hours are rounded in 15 min increments, and on all days except Sunday, shift differential is applied from 17:00hrs to 01:00 hrs of the following morning. On Sundays, however, all hours are paid with shift differential.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    10-13-2010
    Location
    Sunderland, England
    MS-Off Ver
    Excel 2007 (Home) / 2003 (Work)
    Posts
    740

    Re: Have a wage formula but need an IF statement to calculate shift diff on Sundays

    In J3:

    =IF(A3="Sunday",G3,MOD(F3-C3,1)-(C3>F3)*MEDIAN(0,F3-6/24,6/12)-MAX(0,MIN(17/24,F3+(C3>F3))-MAX(5/24,C3)))

    ?

  3. #3
    Registered User
    Join Date
    06-29-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    5
    Quote Originally Posted by brokenbiscuits View Post
    In J3:

    =IF(A3="Sunday",G3,MOD(F3-C3,1)-(C3>F3)*MEDIAN(0,F3-6/24,6/12)-MAX(0,MIN(17/24,F3+(C3>F3))-MAX(5/24,C3)))

    ?
    Awesome that works perfectly!!!! Thank you. Is there a way to make it do that if it does not equal Sunday then keep the same rounding parameters and shift differential set up that i already have? i.e. Shift diff all other days of the week from 17:00-01:00

+ 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. Payroll Time Sheet with Shift diff
    By DEdmonson18 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-27-2021, 04:55 PM
  2. [SOLVED] Formula to calculate monthly SS FICA tax with wage base limit
    By randiesq in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-11-2013, 06:48 PM
  3. IF AND Statement - Employee Name, Position, and Wage
    By ericcorbid in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-26-2013, 05:58 PM
  4. Excel 2007 : function to calculate new wage.
    By Loriann in forum Excel General
    Replies: 7
    Last Post: 03-09-2010, 08:33 PM
  5. How to calculate the # of Sundays between two dates
    By erict in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-21-2007, 11:31 AM
  6. [SOLVED] calculate how many sundays between two dates in excel
    By jeff thinkin in forum Excel General
    Replies: 2
    Last Post: 09-14-2005, 11:05 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