TheBigHalf
New Member
- Joined
- Jun 8, 2015
- Messages
- 7
Building a time sheet that logs time spent in different states and breaks down regular time vs overtime in each state.
Column A = State
Column B = Time in state
Column C = Running Total of time for the week
I am successfully using the following formulas to calculate regular time totals in one cell and overtime totals in another cell.
=SUMIFS(B6:B34,A6:A34,"MA",C6:C34,">40:00")
=SUMIF(A6:A34,"MA",B6:B34)-B37
Cell B37 being the result of the first formula
This works fine for everything before and after the log entry that actually crosses the 40hr threshold in which case the entire time value is added to the overtime total. I am stuck trying to figure out a way to split this value between the regular time and the overtime totals accordingly. Perhaps I am going about this all wrong ... like I said, I am a novice at best.
Any advice would be greatly appreciated.
Column A = State
Column B = Time in state
Column C = Running Total of time for the week
I am successfully using the following formulas to calculate regular time totals in one cell and overtime totals in another cell.
=SUMIFS(B6:B34,A6:A34,"MA",C6:C34,">40:00")
=SUMIF(A6:A34,"MA",B6:B34)-B37
Cell B37 being the result of the first formula
This works fine for everything before and after the log entry that actually crosses the 40hr threshold in which case the entire time value is added to the overtime total. I am stuck trying to figure out a way to split this value between the regular time and the overtime totals accordingly. Perhaps I am going about this all wrong ... like I said, I am a novice at best.
Any advice would be greatly appreciated.