Holiday without adding Time in and Time Out

Robert Wyatt

Board Regular
Joined
Jul 15, 2012
Messages
113
Office Version
  1. 2019
Platform
  1. Windows
I trying to fix my time sheet to add 8 hours holiday time when Holiday is in Column B14:B20 without having to add time in and time out. is that anyway to do this?

New Monthly Time Sheet.xlsm
ABCDEFGHIJKLM
12Weekday DateOptionsShift StartsLunch StartsLunch EndsShift EndsWorked HoursRegular HoursOvertime HoursHoliday HoursVacation HoursSick LeavePersonal Leave
13
14Mon 12/30Regular7:00 AM12:00 PM12:30 PM3:30 PM8.008.00-----
15Tue 12/31Regular7:00 AM12:00 PM12:30 PM3:30 PM8.008.00-----
16Wed 01/01Holiday7:00 AM12:00 PM12:30 PM3:30 PM---8.00---
17Thu 01/02Regular7:00 AM12:00 PM12:30 PM3:30 PM8.008.00-----
18Fri 01/03Regular7:00 AM12:00 PM12:30 PM3:30 PM8.008.00-----
19Sat 01/04Off-------
20Sun 01/05Off-------
21Total Weekly Hours: 32.0032.00-8.00---
Time Sheet
Cell Formulas
RangeFormula
G14:G20G14=IF(B14="Regular",(MOD((TIME(HOUR(F14),MROUND(MINUTE(F14),15),0)-TIME(HOUR(C14),MROUND(MINUTE(C14),15),0)),1)*24)-MOD((TIME(HOUR(E14),MROUND(MINUTE(E14),15),0)-TIME(HOUR(D14),MROUND(MINUTE(D14),15),0)),1)*24,0)
H14:H20H14=G14-I14
I14:I20I14=ROUND(MAX(IF('Data Sheet'!$B$5,MAX(0,SUM(H$13:H13)+G14-'Data Sheet'!$B$6),0),IF('Data Sheet'!$B$2,IF(G14>'Data Sheet'!$B$3,G14-'Data Sheet'!$B$3,0),0)),2)
J14:J20J14=IF(B14="Holiday",(MOD((TIME(HOUR(F14),MROUND(MINUTE(F14),15),0)-TIME(HOUR(C14),MROUND(MINUTE(C14),15),0)),1)*24)-MOD((TIME(HOUR(E14),MROUND(MINUTE(E14),15),0)-TIME(HOUR(D14),MROUND(MINUTE(D14),15),0)),1)*24,0)
K14:K20K14=IF(B14="Vactaion",(MOD((TIME(HOUR(F14),MROUND(MINUTE(F14),15),0)-TIME(HOUR(C14),MROUND(MINUTE(C14),15),0)),1)*24)-MOD((TIME(HOUR(E14),MROUND(MINUTE(E14),15),0)-TIME(HOUR(D14),MROUND(MINUTE(D14),15),0)),1)*24,0)
L14:L20L14=IF(B14="Sick",(MOD((TIME(HOUR(F14),MROUND(MINUTE(F14),15),0)-TIME(HOUR(C14),MROUND(MINUTE(C14),15),0)),1)*24)-MOD((TIME(HOUR(E14),MROUND(MINUTE(E14),15),0)-TIME(HOUR(D14),MROUND(MINUTE(D14),15),0)),1)*24,0)
M14:M20M14=IF(B14="Personal",(MOD((TIME(HOUR(F14),MROUND(MINUTE(F14),15),0)-TIME(HOUR(C14),MROUND(MINUTE(C14),15),0)),1)*24)-MOD((TIME(HOUR(E14),MROUND(MINUTE(E14),15),0)-TIME(HOUR(D14),MROUND(MINUTE(D14),15),0)),1)*24,0)
G21:M21G21=SUM(G14:G20)
Cells with Data Validation
CellAllowCriteria
B14:B20ListOff,Regular,Holiday,Vacation,Sick,Personal
 
It is not at all clear to me what you want or where. This is my best guess.
If this is not what you mean we would need much clearer detail of what you want, where it should go, and what logic produces it.

25 02 23.xlsm
BCDEFJ
12OptionsShift StartsLunch StartsLunch EndsShift EndsHoliday Hours
13
14Regular7:00:00 AM12:00:00 PM12:30:00 PM3:30:00 PM0:00
15Regular7:00:00 AM12:00:00 PM12:30:00 PM3:30:00 PM0:00
16Holiday8:00
17Regular7:00:00 AM12:00:00 PM12:30:00 PM3:30:00 PM0:00
18Regular7:00:00 AM12:00:00 PM12:30:00 PM3:30:00 PM0:00
19Off0:00
20Off0:00
Holiday Hrs
Cell Formulas
RangeFormula
J14:J20J14=IF(B14="Holiday",1/3,0)
 
Upvote 0
Solution
You're welcome. Glad it was a lucky guess on my part. :cool:
Thanks for the follow-up. :)
 
Upvote 0

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