Formula to count number of patients within certain timeframes

jedi4life

New Member
Joined
Aug 28, 2019
Messages
3
Hello Excel gurus!

I need help figuring out a formula to calculate thenumber of patients existing within certain timeframes. Our goal is to determine how many nurses weshould schedule during 3 shifts: NOC (graveyard), AM, and PM. Any ideas? I’ve been pulling my hair out on this one.


Failed image code removed
 
Last edited by a moderator:

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
Can you try reposting the image please ?
 
Upvote 0
Sorry everyone. I didn't know the image would appear like that. I'm still new to this.

Assume Col 1 is A, Col 2 is B.

[TABLE="width: 152"]
<colgroup><col width="102" style="width: 76pt; mso-width-source: userset; mso-width-alt: 3612;" span="2"> <tbody>[TR]
[TD="width: 102, bgcolor: transparent, align: right"]4/3/19 2:22
[/TD]
[TD="width: 102, bgcolor: transparent, align: right"]4/4/19 20:21
[/TD]
[/TR]
[TR]
[TD="width: 102, bgcolor: transparent, align: right"]4/3/19 4:54[/TD]
[TD="width: 102, bgcolor: transparent, align: right"]4/4/19 14:07[/TD]
[/TR]
[TR]
[TD="width: 102, bgcolor: transparent, align: right"]4/3/19 11:05[/TD]
[TD="width: 102, bgcolor: transparent, align: right"]4/4/19 13:16[/TD]
[/TR]
[TR]
[TD="width: 102, bgcolor: transparent, align: right"]4/3/19 12:50[/TD]
[TD="width: 102, bgcolor: transparent, align: right"]4/3/19 21:14[/TD]
[/TR]
[TR]
[TD="width: 102, bgcolor: transparent, align: right"]4/3/19 13:08[/TD]
[TD="width: 102, bgcolor: transparent, align: right"]4/4/19 12:52[/TD]
[/TR]
[TR]
[TD="width: 102, bgcolor: transparent, align: right"]4/3/19 16:35[/TD]
[TD="width: 102, bgcolor: transparent, align: right"]4/4/19 16:10[/TD]
[/TR]
[TR]
[TD="width: 102, bgcolor: transparent, align: right"]4/3/19 17:30[/TD]
[TD="width: 102, bgcolor: transparent, align: right"]4/4/19 16:10[/TD]
[/TR]
[TR]
[TD="width: 102, bgcolor: transparent, align: right"]4/3/19 19:40[/TD]
[TD="width: 102, bgcolor: transparent, align: right"]4/4/19 18:21[/TD]
[/TR]
[TR]
[TD="width: 102, bgcolor: white, align: right"]4/4/19 0:25[/TD]
[TD="width: 102, bgcolor: transparent, align: right"]4/4/19 21:34[/TD]
[/TR]
[TR]
[TD="width: 102, bgcolor: transparent, align: right"]4/4/19 0:35[/TD]
[TD="width: 102, bgcolor: transparent, align: right"]4/5/19 19:18[/TD]
[/TR]
[TR]
[TD="width: 102, bgcolor: white, align: right"]4/4/19 2:15[/TD]
[TD="width: 102, bgcolor: transparent, align: right"]4/5/19 14:27[/TD]
[/TR]
[TR]
[TD="width: 102, bgcolor: transparent, align: right"]4/4/19 8:33[/TD]
[TD="width: 102, bgcolor: transparent, align: right"]4/4/19 19:26[/TD]
[/TR]
[TR]
[TD="width: 102, bgcolor: transparent, align: right"]4/4/19 12:50[/TD]
[TD="width: 102, bgcolor: transparent, align: right"]4/5/19 21:03[/TD]
[/TR]
[TR]
[TD="width: 102, bgcolor: white, align: right"]4/4/19 13:50[/TD]
[TD="width: 102, bgcolor: transparent, align: right"]4/7/19 6:45[/TD]
[/TR]
[TR]
[TD="width: 102, bgcolor: white, align: right"]4/4/19 16:36[/TD]
[TD="width: 102, bgcolor: transparent, align: right"]4/5/19 15:15[/TD]
[/TR]
[TR]
[TD="width: 102, bgcolor: transparent, align: right"]4/4/19 20:46[/TD]
[TD="width: 102, bgcolor: transparent, align: right"]4/5/19 12:43[/TD]
[/TR]
[TR]
[TD="width: 102, bgcolor: transparent, align: right"]4/4/19 23:30[/TD]
[TD="width: 102, bgcolor: transparent, align: right"]4/5/19 16:01[/TD]
[/TR]
[TR]
[TD="width: 102, bgcolor: transparent, align: right"]4/4/19 23:36[/TD]
[TD="width: 102, bgcolor: transparent, align: right"]4/5/19 20:44
[/TD]
[/TR]
</tbody>[/TABLE]

Shifts: Assume Col 1 is A, Col 2 is B, Col 3 is C

[TABLE="width: 192"]
<colgroup><col width="64" style="width: 48pt;"> <col width="96" style="width: 72pt; mso-width-source: userset; mso-width-alt: 3413;" span="2"> <tbody>[TR]
[TD="width: 64, bgcolor: transparent"][/TD]
[TD="width: 96, bgcolor: transparent"]From[/TD]
[TD="width: 96, bgcolor: transparent"]To[/TD]
[/TR]
[TR]
[TD="width: 64, bgcolor: transparent"]NOC[/TD]
[TD="bgcolor: transparent, align: right"]23:00[/TD]
[TD="bgcolor: transparent, align: right"]7:00[/TD]
[/TR]
[TR]
[TD="width: 64, bgcolor: transparent"]AM[/TD]
[TD="width: 96, bgcolor: transparent, align: right"]7:01[/TD]
[TD="width: 96, bgcolor: transparent, align: right"]15:00[/TD]
[/TR]
[TR]
[TD="width: 64, bgcolor: transparent"]PM[/TD]
[TD="bgcolor: transparent, align: right"]15:01[/TD]
[TD="bgcolor: transparent, align: right"]22:59
[/TD]
[/TR]
</tbody>[/TABLE]












 
Upvote 0
Hello Michael, sorry about that. I reposted...

Sorry everyone. I didn't know the image would appear like that. I'm still new to this.

Assume Col 1 is A, Col 2 is B.

[TABLE="class: cms_table"]
<tbody>[TR]
[TD="width: 102, bgcolor: transparent, align: right"]4/3/19 2:22[/TD]
[TD="width: 102, bgcolor: transparent, align: right"]4/4/19 20:21[/TD]
[/TR]
[TR]
[TD="width: 102, bgcolor: transparent, align: right"]4/3/19 4:54[/TD]
[TD="width: 102, bgcolor: transparent, align: right"]4/4/19 14:07[/TD]
[/TR]
[TR]
[TD="width: 102, bgcolor: transparent, align: right"]4/3/19 11:05[/TD]
[TD="width: 102, bgcolor: transparent, align: right"]4/4/19 13:16[/TD]
[/TR]
[TR]
[TD="width: 102, bgcolor: transparent, align: right"]4/3/19 12:50[/TD]
[TD="width: 102, bgcolor: transparent, align: right"]4/3/19 21:14[/TD]
[/TR]
[TR]
[TD="width: 102, bgcolor: transparent, align: right"]4/3/19 13:08[/TD]
[TD="width: 102, bgcolor: transparent, align: right"]4/4/19 12:52[/TD]
[/TR]
[TR]
[TD="width: 102, bgcolor: transparent, align: right"]4/3/19 16:35[/TD]
[TD="width: 102, bgcolor: transparent, align: right"]4/4/19 16:10[/TD]
[/TR]
[TR]
[TD="width: 102, bgcolor: transparent, align: right"]4/3/19 17:30[/TD]
[TD="width: 102, bgcolor: transparent, align: right"]4/4/19 16:10[/TD]
[/TR]
[TR]
[TD="width: 102, bgcolor: transparent, align: right"]4/3/19 19:40[/TD]
[TD="width: 102, bgcolor: transparent, align: right"]4/4/19 18:21[/TD]
[/TR]
[TR]
[TD="width: 102, bgcolor: white, align: right"]4/4/19 0:25[/TD]
[TD="width: 102, bgcolor: transparent, align: right"]4/4/19 21:34[/TD]
[/TR]
[TR]
[TD="width: 102, bgcolor: transparent, align: right"]4/4/19 0:35[/TD]
[TD="width: 102, bgcolor: transparent, align: right"]4/5/19 19:18[/TD]
[/TR]
[TR]
[TD="width: 102, bgcolor: white, align: right"]4/4/19 2:15[/TD]
[TD="width: 102, bgcolor: transparent, align: right"]4/5/19 14:27[/TD]
[/TR]
[TR]
[TD="width: 102, bgcolor: transparent, align: right"]4/4/19 8:33[/TD]
[TD="width: 102, bgcolor: transparent, align: right"]4/4/19 19:26[/TD]
[/TR]
[TR]
[TD="width: 102, bgcolor: transparent, align: right"]4/4/19 12:50[/TD]
[TD="width: 102, bgcolor: transparent, align: right"]4/5/19 21:03[/TD]
[/TR]
[TR]
[TD="width: 102, bgcolor: white, align: right"]4/4/19 13:50[/TD]
[TD="width: 102, bgcolor: transparent, align: right"]4/7/19 6:45[/TD]
[/TR]
[TR]
[TD="width: 102, bgcolor: white, align: right"]4/4/19 16:36[/TD]
[TD="width: 102, bgcolor: transparent, align: right"]4/5/19 15:15[/TD]
[/TR]
[TR]
[TD="width: 102, bgcolor: transparent, align: right"]4/4/19 20:46[/TD]
[TD="width: 102, bgcolor: transparent, align: right"]4/5/19 12:43[/TD]
[/TR]
[TR]
[TD="width: 102, bgcolor: transparent, align: right"]4/4/19 23:30[/TD]
[TD="width: 102, bgcolor: transparent, align: right"]4/5/19 16:01[/TD]
[/TR]
[TR]
[TD="width: 102, bgcolor: transparent, align: right"]4/4/19 23:36[/TD]
[TD="width: 102, bgcolor: transparent, align: right"]4/5/19 20:44[/TD]
[/TR]
</tbody>[/TABLE]


Shifts: Assume Col 1 is A, Col 2 is B, Col 3 is C

[TABLE="class: cms_table"]
<tbody>[TR]
[TD="width: 64, bgcolor: transparent"][/TD]
[TD="width: 96, bgcolor: transparent"]From[/TD]
[TD="width: 96, bgcolor: transparent"]To[/TD]
[/TR]
[TR]
[TD="width: 64, bgcolor: transparent"]NOC[/TD]
[TD="bgcolor: transparent, align: right"]23:00[/TD]
[TD="bgcolor: transparent, align: right"]7:00[/TD]
[/TR]
[TR]
[TD="width: 64, bgcolor: transparent"]AM[/TD]
[TD="width: 96, bgcolor: transparent, align: right"]7:01[/TD]
[TD="width: 96, bgcolor: transparent, align: right"]15:00[/TD]
[/TR]
[TR]
[TD="width: 64, bgcolor: transparent"]PM[/TD]
[TD="bgcolor: transparent, align: right"]15:01[/TD]
[TD="bgcolor: transparent, align: right"]22:59[/TD]
[/TR]
</tbody>[/TABLE]


 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,183
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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