MrAdelphi02
New Member
- Joined
- Jan 29, 2020
- Messages
- 3
- Office Version
- 365
- Platform
- Windows
I have been racking my brain trying to come up with a solution to this but to no avail, so hopefully someone here can help me out.
So the current formulas I have created are:
Formula 1:
=24*SUMPRODUCT(MOD(COLUMN(A2:F2),2)*(B2:F2-A2:E2+(B2:F2<A2:E2)-((B2:F2-A2:C2+(B2:F2<A2:C2))>=6.5/24)*0.5/24)))
This formula calculates the time worked and reduces by 30 mins if they work longer than 6.5 hours. It also takes into account anyone to works past midnight. But it does not work if non-text is used.
Formula 2:
=24*SUMPRODUCT(--(MOD(COLUMN(A2:F2)-COLUMN(A2)+1,2)=0)-(MOD(COLUMN(A2:F2)-COLUMN(A2)+1,2)=1),A2:F2)
This formula calculates the time worked and takes into account anyone who works past midnight and works if non-text is used, but I cannot make it reduce the time by 30 mins if they work longer than 6.5 hours in a day.
Can anyone help?
Open | Close | Open | Close | Open | Close |
8:00 AM | 4:00 PM | 6:00 PM | 12:30 AM | Time Off |
So the current formulas I have created are:
Formula 1:
=24*SUMPRODUCT(MOD(COLUMN(A2:F2),2)*(B2:F2-A2:E2+(B2:F2<A2:E2)-((B2:F2-A2:C2+(B2:F2<A2:C2))>=6.5/24)*0.5/24)))
This formula calculates the time worked and reduces by 30 mins if they work longer than 6.5 hours. It also takes into account anyone to works past midnight. But it does not work if non-text is used.
Formula 2:
=24*SUMPRODUCT(--(MOD(COLUMN(A2:F2)-COLUMN(A2)+1,2)=0)-(MOD(COLUMN(A2:F2)-COLUMN(A2)+1,2)=1),A2:F2)
This formula calculates the time worked and takes into account anyone who works past midnight and works if non-text is used, but I cannot make it reduce the time by 30 mins if they work longer than 6.5 hours in a day.
Can anyone help?