CRusso1216
New Member
- Joined
- May 16, 2017
- Messages
- 5
Good afternoon! I have to calculate the length of stay (LOS) of patients in the hospital. Some can be here for over 24 hours. When I use the formula =EndTime-StartTime + (EndTime<StartTime) it returns a time less than 24 hours, so a LOS of 24 hours and 22 minutes looks like 0:22:00 rather than 24:22:00. I have formatted the cell [h]:mm:ss. I feel like I have searched every message board on the internet and have tried different formulas and formatting, but it still will not return a time over 24 hours. Any help would be appreciated. I'm currently calculating hundreds of values by hand!
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD="align: center"]H[/TD]
[TD="align: center"]I[/TD]
[TD="align: center"]J[/TD]
[TD="align: center"]K[/TD]
[TD="align: center"]L[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Start Date[/TD]
[TD]Start Time[/TD]
[TD]End Date[/TD]
[TD]End Time[/TD]
[TD]LOS[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]6/12/17[/TD]
[TD]21:04:00[/TD]
[TD]6/13/17[/TD]
[TD]21:26:04[/TD]
[TD]0:22:04[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD="align: center"]H[/TD]
[TD="align: center"]I[/TD]
[TD="align: center"]J[/TD]
[TD="align: center"]K[/TD]
[TD="align: center"]L[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Start Date[/TD]
[TD]Start Time[/TD]
[TD]End Date[/TD]
[TD]End Time[/TD]
[TD]LOS[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]6/12/17[/TD]
[TD]21:04:00[/TD]
[TD]6/13/17[/TD]
[TD]21:26:04[/TD]
[TD]0:22:04[/TD]
[/TR]
</tbody>[/TABLE]