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

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"

Jay2000

New Member
Joined
Dec 5, 2005
Messages
6
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.
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,057
Messages
5,835,162
Members
430,343
Latest member
t0m_c

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
Top