Wolfster63
New Member
- Joined
- May 2, 2018
- Messages
- 24
Attempting to create a spread sheet that can calculate the number of minutes an operating room is used on a given shift. I thought I could save a great deal of time by asking here first.
An operating room has a certain number of rooms it can use during given shift. So, if I have time period of say, 7 AM to 3 PM, that is a total of 480 minutes of total time for that room. The next time grouping could be 3 PM to 7 PM and there is 240 minutes available for the room. We have a default turn around time (TAT) of 30 minutes for each case done.
Here's what I would like to do. Given:
Patient occupation of the room time is: [Case End Time or "S"] - [Case Start Time or "B"] = "D"
So, S-B=D
So, Total Case Duration = D+30, which we can call "E"
So, for example, a patient comes into the room at 0700 and leaves at 0830, "D" would equal 90 minutes. Add in the 30 minutes the staff needs to clean or prepare the room, the Total Case Duration would be 120 minutes.
So (S-B)+30=E. In the example, [0830-0700]+30=120.
For a case that starts and ends in a given time slot, the time slot duration would be 120 minutes, easy.
But, if the case ends with less than 30 minutes left in a given time slot, I need to subtract only the time used in that slot and move the remainder to the next slot.
So if, my example, the case started at 1315 and ended at 1445, S-B=90 + 30 is still 120 minutes.
But, the slot time minutes for 7am to 3pm is 105 minutes and the slot time for 3pm to 7pm is 15 minutes.
Conversely, if the case began at 6:30am and ended at 8 am we still have 2 hours of time used, but only 90 minutes count for the time slot of 7am to 3pm
I have cells that pull case start time, case end time, case duration in minutes, case duration in minutes plus the TAT.
I also have Countifs cells that return a value of 1 if the case ends in the time slot and a Countifs that returns a value of 1 if the end case time falls in the given time slot.
What would be a good way to figure out the total of "Slot Minutes" each case is using?
Ideas? Suggestions?
Here is some of the cells I have been using to give a frame of reference,
Thanks,
Will
[TABLE="width: 934"]
<tbody>[TR]
[TD="class: xl65, width: 171, bgcolor: transparent"]Operating Room (Surgery)
[/TD]
[TD="class: xl71, width: 128, bgcolor: transparent"]Start Slot Time
[/TD]
[TD="class: xl71, width: 128, bgcolor: transparent"]Slot End Time
[/TD]
[TD="class: xl68, width: 96, bgcolor: transparent"]Room Minutes
[/TD]
[TD="class: xl68, width: 96, bgcolor: transparent"]Room Time Plus TAT
[/TD]
[TD="class: xl73, width: 68, bgcolor: #C4D79B"]Case Start
0630-1500
[/TD]
[TD="class: xl73, width: 68, bgcolor: #C4D79B"]Case Start
1500-1900
[/TD]
[TD="class: xl73, width: 68, bgcolor: #C4D79B"]Case Start
1900-0000
[/TD]
[TD="class: xl74, width: 68, bgcolor: #DA9694"]Case End
1630-1500
[/TD]
[TD="class: xl74, width: 72, bgcolor: #DA9694"]Case End
1500-1900
[/TD]
[TD="class: xl74, width: 78, bgcolor: #DA9694"]Case End
1900-0000
[/TD]
[TD="class: xl75, width: 68, bgcolor: #FABF8F"]Slot Min
0630-1500
[/TD]
[TD="class: xl75, width: 68, bgcolor: #FABF8F"]Slot Min
1500-1900
[/TD]
[TD="class: xl75, width: 68, bgcolor: #FABF8F"]Slot Min
1900-0000
[/TD]
[/TR]
[TR]
[TD="class: xl65, bgcolor: transparent"]NCA Main OR 01
[/TD]
[TD="class: xl71, bgcolor: transparent, align: right"]9:05
[/TD]
[TD="class: xl71, bgcolor: transparent, align: right"]10:34
[/TD]
[TD="class: xl68, bgcolor: transparent"]89
[/TD]
[TD="class: xl68, bgcolor: transparent"]119
[/TD]
[TD="class: xl70, bgcolor: transparent"]1
[/TD]
[TD="class: xl70, bgcolor: transparent"]0
[/TD]
[TD="class: xl70, bgcolor: transparent"]0
[/TD]
[TD="class: xl70, bgcolor: transparent"]1
[/TD]
[TD="class: xl70, bgcolor: transparent"]0
[/TD]
[TD="class: xl70, bgcolor: transparent"]0
[/TD]
[TD="class: xl70, bgcolor: transparent"][/TD]
[TD="class: xl70, bgcolor: transparent"][/TD]
[TD="class: xl70, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="class: xl65, bgcolor: transparent"]NCA Main OR 01
[/TD]
[TD="class: xl71, bgcolor: transparent, align: right"]11:07
[/TD]
[TD="class: xl71, bgcolor: transparent, align: right"]11:58
[/TD]
[TD="class: xl68, bgcolor: transparent"]51
[/TD]
[TD="class: xl68, bgcolor: transparent"]81
[/TD]
[TD="class: xl70, bgcolor: transparent"]1
[/TD]
[TD="class: xl70, bgcolor: transparent"]0
[/TD]
[TD="class: xl70, bgcolor: transparent"]0
[/TD]
[TD="class: xl70, bgcolor: transparent"]1
[/TD]
[TD="class: xl70, bgcolor: transparent"]0
[/TD]
[TD="class: xl70, bgcolor: transparent"]0
[/TD]
[TD="class: xl70, bgcolor: transparent"][/TD]
[TD="class: xl70, bgcolor: transparent"][/TD]
[TD="class: xl70, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="class: xl65, bgcolor: transparent"]NCA Main OR 01
[/TD]
[TD="class: xl71, bgcolor: transparent, align: right"]8:14
[/TD]
[TD="class: xl71, bgcolor: transparent, align: right"]11:29
[/TD]
[TD="class: xl68, bgcolor: transparent"]195
[/TD]
[TD="class: xl68, bgcolor: transparent"]225
[/TD]
[TD="class: xl70, bgcolor: transparent"]1
[/TD]
[TD="class: xl70, bgcolor: transparent"]0
[/TD]
[TD="class: xl70, bgcolor: transparent"]0
[/TD]
[TD="class: xl70, bgcolor: transparent"]1
[/TD]
[TD="class: xl70, bgcolor: transparent"]0
[/TD]
[TD="class: xl70, bgcolor: transparent"]0
[/TD]
[TD="class: xl70, bgcolor: transparent"][/TD]
[TD="class: xl70, bgcolor: transparent"][/TD]
[TD="class: xl70, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="class: xl65, bgcolor: transparent"]NCA Main OR 01
[/TD]
[TD="class: xl71, bgcolor: transparent, align: right"]12:13
[/TD]
[TD="class: xl71, bgcolor: transparent, align: right"]13:08
[/TD]
[TD="class: xl68, bgcolor: transparent"]55
[/TD]
[TD="class: xl68, bgcolor: transparent"]85
[/TD]
[TD="class: xl70, bgcolor: transparent"]1
[/TD]
[TD="class: xl70, bgcolor: transparent"]0
[/TD]
[TD="class: xl70, bgcolor: transparent"]0
[/TD]
[TD="class: xl70, bgcolor: transparent"]1
[/TD]
[TD="class: xl70, bgcolor: transparent"]0
[/TD]
[TD="class: xl70, bgcolor: transparent"]0
[/TD]
[TD="class: xl70, bgcolor: transparent"][/TD]
[TD="class: xl70, bgcolor: transparent"][/TD]
[TD="class: xl70, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="class: xl65, bgcolor: transparent"]NCA Main OR 01
[/TD]
[TD="class: xl71, bgcolor: transparent, align: right"]8:10
[/TD]
[TD="class: xl71, bgcolor: transparent, align: right"]9:05
[/TD]
[TD="class: xl68, bgcolor: transparent"]55
[/TD]
[TD="class: xl68, bgcolor: transparent"]85
[/TD]
[TD="class: xl70, bgcolor: transparent"]1
[/TD]
[TD="class: xl70, bgcolor: transparent"]0
[/TD]
[TD="class: xl70, bgcolor: transparent"]0
[/TD]
[TD="class: xl70, bgcolor: transparent"]1
[/TD]
[TD="class: xl70, bgcolor: transparent"]0
[/TD]
[TD="class: xl70, bgcolor: transparent"]0
[/TD]
[TD="class: xl70, bgcolor: transparent"][/TD]
[TD="class: xl70, bgcolor: transparent"][/TD]
[TD="class: xl70, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="class: xl65, bgcolor: transparent"]NCA Main OR 01
[/TD]
[TD="class: xl71, bgcolor: transparent, align: right"]14:32
[/TD]
[TD="class: xl71, bgcolor: transparent, align: right"]15:05
[/TD]
[TD="class: xl68, bgcolor: transparent"]33
[/TD]
[TD="class: xl68, bgcolor: transparent"]63
[/TD]
[TD="class: xl70, bgcolor: transparent"]1
[/TD]
[TD="class: xl70, bgcolor: transparent"]0
[/TD]
[TD="class: xl70, bgcolor: transparent"]0
[/TD]
[TD="class: xl70, bgcolor: transparent"]0
[/TD]
[TD="class: xl70, bgcolor: transparent"]1
[/TD]
[TD="class: xl70, bgcolor: transparent"]0
[/TD]
[TD="class: xl70, bgcolor: transparent"][/TD]
[TD="class: xl70, bgcolor: transparent"][/TD]
[TD="class: xl70, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="class: xl65, bgcolor: transparent"]NCA Main OR 01
[/TD]
[TD="class: xl71, bgcolor: transparent, align: right"]16:07
[/TD]
[TD="class: xl71, bgcolor: transparent, align: right"]16:49
[/TD]
[TD="class: xl68, bgcolor: transparent"]42
[/TD]
[TD="class: xl68, bgcolor: transparent"]72
[/TD]
[TD="class: xl70, bgcolor: transparent"]0
[/TD]
[TD="class: xl70, bgcolor: transparent"]1
[/TD]
[TD="class: xl70, bgcolor: transparent"]0
[/TD]
[TD="class: xl70, bgcolor: transparent"]0
[/TD]
[TD="class: xl70, bgcolor: transparent"]1
[/TD]
[TD="class: xl70, bgcolor: transparent"]0
[/TD]
[TD="class: xl70, bgcolor: transparent"][/TD]
[TD="class: xl70, bgcolor: transparent"][/TD]
[TD="class: xl70, bgcolor: transparent"][/TD]
[/TR]
</tbody>[/TABLE]
An operating room has a certain number of rooms it can use during given shift. So, if I have time period of say, 7 AM to 3 PM, that is a total of 480 minutes of total time for that room. The next time grouping could be 3 PM to 7 PM and there is 240 minutes available for the room. We have a default turn around time (TAT) of 30 minutes for each case done.
Here's what I would like to do. Given:
Patient occupation of the room time is: [Case End Time or "S"] - [Case Start Time or "B"] = "D"
So, S-B=D
So, Total Case Duration = D+30, which we can call "E"
So, for example, a patient comes into the room at 0700 and leaves at 0830, "D" would equal 90 minutes. Add in the 30 minutes the staff needs to clean or prepare the room, the Total Case Duration would be 120 minutes.
So (S-B)+30=E. In the example, [0830-0700]+30=120.
For a case that starts and ends in a given time slot, the time slot duration would be 120 minutes, easy.
But, if the case ends with less than 30 minutes left in a given time slot, I need to subtract only the time used in that slot and move the remainder to the next slot.
So if, my example, the case started at 1315 and ended at 1445, S-B=90 + 30 is still 120 minutes.
But, the slot time minutes for 7am to 3pm is 105 minutes and the slot time for 3pm to 7pm is 15 minutes.
Conversely, if the case began at 6:30am and ended at 8 am we still have 2 hours of time used, but only 90 minutes count for the time slot of 7am to 3pm
I have cells that pull case start time, case end time, case duration in minutes, case duration in minutes plus the TAT.
I also have Countifs cells that return a value of 1 if the case ends in the time slot and a Countifs that returns a value of 1 if the end case time falls in the given time slot.
What would be a good way to figure out the total of "Slot Minutes" each case is using?
Ideas? Suggestions?
Here is some of the cells I have been using to give a frame of reference,
Thanks,
Will
[TABLE="width: 934"]
<tbody>[TR]
[TD="class: xl65, width: 171, bgcolor: transparent"]Operating Room (Surgery)
[/TD]
[TD="class: xl71, width: 128, bgcolor: transparent"]Start Slot Time
[/TD]
[TD="class: xl71, width: 128, bgcolor: transparent"]Slot End Time
[/TD]
[TD="class: xl68, width: 96, bgcolor: transparent"]Room Minutes
[/TD]
[TD="class: xl68, width: 96, bgcolor: transparent"]Room Time Plus TAT
[/TD]
[TD="class: xl73, width: 68, bgcolor: #C4D79B"]Case Start
0630-1500
[/TD]
[TD="class: xl73, width: 68, bgcolor: #C4D79B"]Case Start
1500-1900
[/TD]
[TD="class: xl73, width: 68, bgcolor: #C4D79B"]Case Start
1900-0000
[/TD]
[TD="class: xl74, width: 68, bgcolor: #DA9694"]Case End
1630-1500
[/TD]
[TD="class: xl74, width: 72, bgcolor: #DA9694"]Case End
1500-1900
[/TD]
[TD="class: xl74, width: 78, bgcolor: #DA9694"]Case End
1900-0000
[/TD]
[TD="class: xl75, width: 68, bgcolor: #FABF8F"]Slot Min
0630-1500
[/TD]
[TD="class: xl75, width: 68, bgcolor: #FABF8F"]Slot Min
1500-1900
[/TD]
[TD="class: xl75, width: 68, bgcolor: #FABF8F"]Slot Min
1900-0000
[/TD]
[/TR]
[TR]
[TD="class: xl65, bgcolor: transparent"]NCA Main OR 01
[/TD]
[TD="class: xl71, bgcolor: transparent, align: right"]9:05
[/TD]
[TD="class: xl71, bgcolor: transparent, align: right"]10:34
[/TD]
[TD="class: xl68, bgcolor: transparent"]89
[/TD]
[TD="class: xl68, bgcolor: transparent"]119
[/TD]
[TD="class: xl70, bgcolor: transparent"]1
[/TD]
[TD="class: xl70, bgcolor: transparent"]0
[/TD]
[TD="class: xl70, bgcolor: transparent"]0
[/TD]
[TD="class: xl70, bgcolor: transparent"]1
[/TD]
[TD="class: xl70, bgcolor: transparent"]0
[/TD]
[TD="class: xl70, bgcolor: transparent"]0
[/TD]
[TD="class: xl70, bgcolor: transparent"][/TD]
[TD="class: xl70, bgcolor: transparent"][/TD]
[TD="class: xl70, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="class: xl65, bgcolor: transparent"]NCA Main OR 01
[/TD]
[TD="class: xl71, bgcolor: transparent, align: right"]11:07
[/TD]
[TD="class: xl71, bgcolor: transparent, align: right"]11:58
[/TD]
[TD="class: xl68, bgcolor: transparent"]51
[/TD]
[TD="class: xl68, bgcolor: transparent"]81
[/TD]
[TD="class: xl70, bgcolor: transparent"]1
[/TD]
[TD="class: xl70, bgcolor: transparent"]0
[/TD]
[TD="class: xl70, bgcolor: transparent"]0
[/TD]
[TD="class: xl70, bgcolor: transparent"]1
[/TD]
[TD="class: xl70, bgcolor: transparent"]0
[/TD]
[TD="class: xl70, bgcolor: transparent"]0
[/TD]
[TD="class: xl70, bgcolor: transparent"][/TD]
[TD="class: xl70, bgcolor: transparent"][/TD]
[TD="class: xl70, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="class: xl65, bgcolor: transparent"]NCA Main OR 01
[/TD]
[TD="class: xl71, bgcolor: transparent, align: right"]8:14
[/TD]
[TD="class: xl71, bgcolor: transparent, align: right"]11:29
[/TD]
[TD="class: xl68, bgcolor: transparent"]195
[/TD]
[TD="class: xl68, bgcolor: transparent"]225
[/TD]
[TD="class: xl70, bgcolor: transparent"]1
[/TD]
[TD="class: xl70, bgcolor: transparent"]0
[/TD]
[TD="class: xl70, bgcolor: transparent"]0
[/TD]
[TD="class: xl70, bgcolor: transparent"]1
[/TD]
[TD="class: xl70, bgcolor: transparent"]0
[/TD]
[TD="class: xl70, bgcolor: transparent"]0
[/TD]
[TD="class: xl70, bgcolor: transparent"][/TD]
[TD="class: xl70, bgcolor: transparent"][/TD]
[TD="class: xl70, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="class: xl65, bgcolor: transparent"]NCA Main OR 01
[/TD]
[TD="class: xl71, bgcolor: transparent, align: right"]12:13
[/TD]
[TD="class: xl71, bgcolor: transparent, align: right"]13:08
[/TD]
[TD="class: xl68, bgcolor: transparent"]55
[/TD]
[TD="class: xl68, bgcolor: transparent"]85
[/TD]
[TD="class: xl70, bgcolor: transparent"]1
[/TD]
[TD="class: xl70, bgcolor: transparent"]0
[/TD]
[TD="class: xl70, bgcolor: transparent"]0
[/TD]
[TD="class: xl70, bgcolor: transparent"]1
[/TD]
[TD="class: xl70, bgcolor: transparent"]0
[/TD]
[TD="class: xl70, bgcolor: transparent"]0
[/TD]
[TD="class: xl70, bgcolor: transparent"][/TD]
[TD="class: xl70, bgcolor: transparent"][/TD]
[TD="class: xl70, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="class: xl65, bgcolor: transparent"]NCA Main OR 01
[/TD]
[TD="class: xl71, bgcolor: transparent, align: right"]8:10
[/TD]
[TD="class: xl71, bgcolor: transparent, align: right"]9:05
[/TD]
[TD="class: xl68, bgcolor: transparent"]55
[/TD]
[TD="class: xl68, bgcolor: transparent"]85
[/TD]
[TD="class: xl70, bgcolor: transparent"]1
[/TD]
[TD="class: xl70, bgcolor: transparent"]0
[/TD]
[TD="class: xl70, bgcolor: transparent"]0
[/TD]
[TD="class: xl70, bgcolor: transparent"]1
[/TD]
[TD="class: xl70, bgcolor: transparent"]0
[/TD]
[TD="class: xl70, bgcolor: transparent"]0
[/TD]
[TD="class: xl70, bgcolor: transparent"][/TD]
[TD="class: xl70, bgcolor: transparent"][/TD]
[TD="class: xl70, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="class: xl65, bgcolor: transparent"]NCA Main OR 01
[/TD]
[TD="class: xl71, bgcolor: transparent, align: right"]14:32
[/TD]
[TD="class: xl71, bgcolor: transparent, align: right"]15:05
[/TD]
[TD="class: xl68, bgcolor: transparent"]33
[/TD]
[TD="class: xl68, bgcolor: transparent"]63
[/TD]
[TD="class: xl70, bgcolor: transparent"]1
[/TD]
[TD="class: xl70, bgcolor: transparent"]0
[/TD]
[TD="class: xl70, bgcolor: transparent"]0
[/TD]
[TD="class: xl70, bgcolor: transparent"]0
[/TD]
[TD="class: xl70, bgcolor: transparent"]1
[/TD]
[TD="class: xl70, bgcolor: transparent"]0
[/TD]
[TD="class: xl70, bgcolor: transparent"][/TD]
[TD="class: xl70, bgcolor: transparent"][/TD]
[TD="class: xl70, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="class: xl65, bgcolor: transparent"]NCA Main OR 01
[/TD]
[TD="class: xl71, bgcolor: transparent, align: right"]16:07
[/TD]
[TD="class: xl71, bgcolor: transparent, align: right"]16:49
[/TD]
[TD="class: xl68, bgcolor: transparent"]42
[/TD]
[TD="class: xl68, bgcolor: transparent"]72
[/TD]
[TD="class: xl70, bgcolor: transparent"]0
[/TD]
[TD="class: xl70, bgcolor: transparent"]1
[/TD]
[TD="class: xl70, bgcolor: transparent"]0
[/TD]
[TD="class: xl70, bgcolor: transparent"]0
[/TD]
[TD="class: xl70, bgcolor: transparent"]1
[/TD]
[TD="class: xl70, bgcolor: transparent"]0
[/TD]
[TD="class: xl70, bgcolor: transparent"][/TD]
[TD="class: xl70, bgcolor: transparent"][/TD]
[TD="class: xl70, bgcolor: transparent"][/TD]
[/TR]
</tbody>[/TABLE]