andrewb90
Well-known Member
- Joined
- Dec 16, 2009
- Messages
- 1,077
Hello All,
I am having an issue with accurately counting hours worked. Now, my formulas all work fine until the ending point of a shift reaches the AM. For Example: 6PM - 1AM would be a 7 hour shift, but the result is negative 17 hours. Now I am using two different set of formulas that are being affected.
This one totals the hours worked for the week: The example shift would be deducted entirely from the total.
This one totals the amount of shifts between a certain time (based on values in another cell). The example shift, just gets completely ignored with this formula.
Any help would be awesome!
I am having an issue with accurately counting hours worked. Now, my formulas all work fine until the ending point of a shift reaches the AM. For Example: 6PM - 1AM would be a 7 hour shift, but the result is negative 17 hours. Now I am using two different set of formulas that are being affected.
This one totals the hours worked for the week: The example shift would be deducted entirely from the total.
Code:
[/COLOR]=((F87-E87)*24)+((H87-G87)*24)+((J87-I87)*24)+((L87-K87)*24)+((N87-M87)*24)+((P87-O87)*24)+((R87-Q87)*24)[COLOR=#333333]
This one totals the amount of shifts between a certain time (based on values in another cell). The example shift, just gets completely ignored with this formula.
Code:
=(SUM(IF(E$87:E$111<$B87,IF(F$87:F$111>$A87,IF(F$87:F$111<$B87,F$87:F$111,$B87)-IF(E$87:E$111>$A87,E$87:E$111,$A87))))*24)
Any help would be awesome!