Computing Shift differentials

Jay2000

New Member
Joined
Dec 5, 2005
Messages
6
If before 6:00AM or after 6:00PM then they get differential pay

A1 Time In 5:30 AM
B1 Time Out 1:30 PM
D1 Should have .5 Shift Differential


A2 Time in 5:30 PM
B2 Time out 1:30 AM
D2 Should have 7.5 Shift Differential

TEXT(IF(B16 <> "",IF(B16<G$3,G$3+B16,0),0),"hh:mm")*24

The first if statement is cosmetic, the second gives me 11.5 for the first example

I have not yet figured out how to combine the AM and PM together yet into on function.
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
I figured out why I was getting 11.5 instead of .5. I was adding and not subtracting. However, I would very much like to combine this into one function if possible.
 
Upvote 0

Forum statistics

Threads
1,215,507
Messages
6,125,212
Members
449,214
Latest member
mr_ordinaryboy

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top