multiple time calculations in one cell

pick1984

New Member
Joined
Jul 3, 2008
Messages
4
I am doing a time utilization. I have columns labeled case start, case end, total time, time before start, time after end, total off hours, actual time. I have to show if a room was utilized before 7am and after 17:00, and show the time that was used between 7 and 17:00. If the room was used outside of the 7-17:00 requirement the hours go in that column, and if used goes in the actual time column.

cell j2 =IF(G2<start,start-G2,0) G2=start time, and start=0.29166667

cell k2 =IF(G2>end,H2-G2,H2-end) G2=start time, H2=end time, end time=<TABLE style="WIDTH: 63pt; BORDER-COLLAPSE: collapse" cellSpacing=0 cellPadding=0 width=84 border=0><COLGROUP><COL style="WIDTH: 63pt; mso-width-source: userset; mso-width-alt: 3072" width=84><TBODY><TR style="HEIGHT: 14.25pt" height=19><TD class=xl66 style="BORDER-RIGHT: #ece9d8; BORDER-TOP: #ece9d8; BORDER-LEFT: #ece9d8; WIDTH: 63pt; BORDER-BOTTOM: #ece9d8; HEIGHT: 14.25pt; BACKGROUND-COLOR: #ccffcc" align=right width=84 height=19>0.708333333</TD></TR></TBODY></TABLE>

Is there a way to combine the equation in cell j2 in with cell k2, so I can still have the hours worked whether it was between 7-17:00 or outside of the 10 hours.

Would appreciated any help out there.

Thank you
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
I might be able to help......but it's difficult to understand exactly what you want to do....and one of the formulas was cut off [try posting again with spaces either side of < ].

Can you give a small example, what data do you have, what's the expected result?
 
Upvote 0

Forum statistics

Threads
1,214,829
Messages
6,121,827
Members
449,051
Latest member
excelquestion515

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