Ok, this is a challenge! for simplicity I'll list only pertinent data needed. Say I have 7 rows (1 row for each day of wk and 8 columns in a time sheet: G-total hrs worked (that day), H-billable hours(of that days total), I-Shop hours (non-billable hrs worked of that days total), J-Running total hours(total cumulative billable + shop hours up to that day of the week), K-Running Billable hrs(tot. cumulative billable only hours up to that day), L-Running billable O.T.(total billable hrs that are now OT once the cumulative total billable +shop hours reach 40), M-Running Shop hrs(total shop only hours up to that day), N-Running Shop OT(total shop hrs that are now OT once cumulative total billable + shop reach 40).
Question: What equations would I use in columns K(running billable hrs), L(running billable OT), M(Running shop hrs), and N(running shop OT) to calculate these values for each day? Keep in mind that billable and shop hrs are cumulative and added together; as such will effect the point at which both billable and shop hrs transition into billable OT and shop OT for the running totals. I also need to account for the fact that the point where billable hrs or shop hrs turn into OT, may not be an even distribution of those hours and the remainder of whichever type of that days hrs where OT is reached need to carry over to the corresponding OT column. For example: J4"current running total hrs(meaning cumulative billable + cumulative shop) hrs""end of Thursday" might be 36.5 hrs. Then on Friday they work 15.5 billable and 2.5 shop hours. Since the first 3.5 billable hrs on Friday complete 40 cumulative J15"Running Total Hours""Friday", I need those 3.5 hrs only to add to K15"Running Billable Hrs""Friday", the remaining 12 billable hrs to show in L15"Running Billable OT""Friday", no change from previous days total in M15"Running Shop OT""Friday", and the 2.5 shop hrs worked on Friday that are now OT to ad in N15"Running Shop OT""Friday". Values for billable and shop from that point on should naturally carry over to the corresponding L-"running billable OT" or N-"running shop OT" column and rows for the remainder of the week. I can't use a formula like K15=IF(J14+H15<=40,SUM($H$11:$H15),40) for "Running Billable Hrs""Friday" because up till thurs., out of the total accumulated hours, only 19.5 of those might have been billable hrs specifically, and since I'm trying to total specifically only billable non-OT hrs in this particular column/row(k15), the formula wont work as it proves false on Fri. where we reach OT after 3.5 hrs and puts 40 in K15"Running Billable hrs" instead of the 3.5 hrs adding to the previous days total of 19.5 to place 23 in K15. Similarly I can't use an equation like L15=IF(J14+H15>40,J14+H15-40,0) to figure "Running Billable OT" since the value in the previous column/row "Running Billable Hrs" may not be greater than 40 even though that days billable hrs are OT because the remainder of non-OT hrs are shop hours that count towards 40 hours. See my delima? Is there a way of doing this to accurately reflect "running billable hrs","running billable OT","running shop hrs", "running shop OT"? Or- if easier, rather than showing these values day to day, is there a way of just showing the totals of these values for the week where it accurately adjusts for the shift from reg billable & shop to O.T. billable & O.T. shop keeping in mind billable and shop are cumulatively added together?
[TABLE="width: 500, align: center"]
<tbody>[TR]
[TD][/TD]
[TD][/TD]
[TD]G
[/TD]
[TD]H
[/TD]
[TD]I
[/TD]
[TD]J
[/TD]
[TD]K
[/TD]
[TD]L
[/TD]
[TD]M
[/TD]
[TD]N
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]Total Hrs Worked
[/TD]
[TD]Billable Hrs.
[/TD]
[TD]Shop Hrs
[/TD]
[TD]Running Tot. Hrs.
[/TD]
[TD]Running Billable Hrs
[/TD]
[TD]Running Billable OT
[/TD]
[TD]Running Shop Hrs.
[/TD]
[TD]Running Shop OT
[/TD]
[/TR]
[TR]
[TD]11
[/TD]
[TD]Mon.
[/TD]
[TD]9
[/TD]
[TD]1
[/TD]
[TD]8
[/TD]
[TD]9
[/TD]
[TD]1
[/TD]
[TD]0
[/TD]
[TD]8
[/TD]
[TD]0
[/TD]
[/TR]
[TR]
[TD]12
[/TD]
[TD]Tues.
[/TD]
[TD]10
[/TD]
[TD]8
[/TD]
[TD]2
[/TD]
[TD]19
[/TD]
[TD]?formula
[/TD]
[TD]?formula
[/TD]
[TD]?formula
[/TD]
[TD]?Formula
[/TD]
[/TR]
[TR]
[TD]13
[/TD]
[TD]Wed.
[/TD]
[TD]9
[/TD]
[TD]4
[/TD]
[TD]5
[/TD]
[TD]28
[/TD]
[TD]?
[/TD]
[TD]?
[/TD]
[TD]?
[/TD]
[TD]?
[/TD]
[/TR]
[TR]
[TD]14
[/TD]
[TD]Thurs.
[/TD]
[TD]8.5
[/TD]
[TD]6.5
[/TD]
[TD]2
[/TD]
[TD]36.5
[/TD]
[TD]?
[/TD]
[TD]?
[/TD]
[TD]?
[/TD]
[TD]?
[/TD]
[/TR]
[TR]
[TD]15
[/TD]
[TD]Fri.
[/TD]
[TD]18
[/TD]
[TD]15.5
[/TD]
[TD]2.5
[/TD]
[TD]54.5
[/TD]
[TD]?
[/TD]
[TD]?
[/TD]
[TD]?
[/TD]
[TD]?
[/TD]
[/TR]
[TR]
[TD]16
[/TD]
[TD]Sat.
[/TD]
[TD]15.5
[/TD]
[TD]13.5
[/TD]
[TD]2
[/TD]
[TD]70
[/TD]
[TD]?
[/TD]
[TD]?
[/TD]
[TD]?
[/TD]
[TD]?
[/TD]
[/TR]
[TR]
[TD]17
[/TD]
[TD]Sun.
[/TD]
[TD]15.5
[/TD]
[TD]13.5
[/TD]
[TD]2
[/TD]
[TD]85.5
[/TD]
[TD]?
[/TD]
[TD]?
[/TD]
[TD]?
[/TD]
[TD]?
[/TD]
[/TR]
</tbody>[/TABLE]
Question: What equations would I use in columns K(running billable hrs), L(running billable OT), M(Running shop hrs), and N(running shop OT) to calculate these values for each day? Keep in mind that billable and shop hrs are cumulative and added together; as such will effect the point at which both billable and shop hrs transition into billable OT and shop OT for the running totals. I also need to account for the fact that the point where billable hrs or shop hrs turn into OT, may not be an even distribution of those hours and the remainder of whichever type of that days hrs where OT is reached need to carry over to the corresponding OT column. For example: J4"current running total hrs(meaning cumulative billable + cumulative shop) hrs""end of Thursday" might be 36.5 hrs. Then on Friday they work 15.5 billable and 2.5 shop hours. Since the first 3.5 billable hrs on Friday complete 40 cumulative J15"Running Total Hours""Friday", I need those 3.5 hrs only to add to K15"Running Billable Hrs""Friday", the remaining 12 billable hrs to show in L15"Running Billable OT""Friday", no change from previous days total in M15"Running Shop OT""Friday", and the 2.5 shop hrs worked on Friday that are now OT to ad in N15"Running Shop OT""Friday". Values for billable and shop from that point on should naturally carry over to the corresponding L-"running billable OT" or N-"running shop OT" column and rows for the remainder of the week. I can't use a formula like K15=IF(J14+H15<=40,SUM($H$11:$H15),40) for "Running Billable Hrs""Friday" because up till thurs., out of the total accumulated hours, only 19.5 of those might have been billable hrs specifically, and since I'm trying to total specifically only billable non-OT hrs in this particular column/row(k15), the formula wont work as it proves false on Fri. where we reach OT after 3.5 hrs and puts 40 in K15"Running Billable hrs" instead of the 3.5 hrs adding to the previous days total of 19.5 to place 23 in K15. Similarly I can't use an equation like L15=IF(J14+H15>40,J14+H15-40,0) to figure "Running Billable OT" since the value in the previous column/row "Running Billable Hrs" may not be greater than 40 even though that days billable hrs are OT because the remainder of non-OT hrs are shop hours that count towards 40 hours. See my delima? Is there a way of doing this to accurately reflect "running billable hrs","running billable OT","running shop hrs", "running shop OT"? Or- if easier, rather than showing these values day to day, is there a way of just showing the totals of these values for the week where it accurately adjusts for the shift from reg billable & shop to O.T. billable & O.T. shop keeping in mind billable and shop are cumulatively added together?
[TABLE="width: 500, align: center"]
<tbody>[TR]
[TD][/TD]
[TD][/TD]
[TD]G
[/TD]
[TD]H
[/TD]
[TD]I
[/TD]
[TD]J
[/TD]
[TD]K
[/TD]
[TD]L
[/TD]
[TD]M
[/TD]
[TD]N
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]Total Hrs Worked
[/TD]
[TD]Billable Hrs.
[/TD]
[TD]Shop Hrs
[/TD]
[TD]Running Tot. Hrs.
[/TD]
[TD]Running Billable Hrs
[/TD]
[TD]Running Billable OT
[/TD]
[TD]Running Shop Hrs.
[/TD]
[TD]Running Shop OT
[/TD]
[/TR]
[TR]
[TD]11
[/TD]
[TD]Mon.
[/TD]
[TD]9
[/TD]
[TD]1
[/TD]
[TD]8
[/TD]
[TD]9
[/TD]
[TD]1
[/TD]
[TD]0
[/TD]
[TD]8
[/TD]
[TD]0
[/TD]
[/TR]
[TR]
[TD]12
[/TD]
[TD]Tues.
[/TD]
[TD]10
[/TD]
[TD]8
[/TD]
[TD]2
[/TD]
[TD]19
[/TD]
[TD]?formula
[/TD]
[TD]?formula
[/TD]
[TD]?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