Creating a daily census count

Mrocks013

New Member
Joined
Mar 5, 2015
Messages
2
Preface: This is my first post.

I am attempting to create a daily census table for a 12 bed facility based on client admission and discharge dates.
The date of discharge should not be counted.


Book1
ABC
1Client NameAdmission DateDischarge Date
2Margaret7/30/20158/6/2015
3Derek7/30/20158/5/2015
4Leslie7/30/20157/31/2015
5Ian7/30/20157/31/2015
6James7/31/20158/5/2015
7Kathleen8/2/20158/6/2015
8Pieter8/2/20158/7/2015
9Matthew8/3/20158/8/2015
10Danielle8/3/20158/8/2015
11Ernesto8/3/20158/10/2015
12Devon8/4/20158/5/2015
13Robert8/4/20158/10/2015
14Erik8/5/20158/7/2015
15Curtis8/5/20158/10/2015
16Perri8/5/20158/11/2015
17Daniel8/5/20158/7/2015
18Brittany8/6/20158/11/2015
19Kerry8/6/20158/10/2015
20Ryli8/7/20158/13/2015
21Meaghan8/8/20158/12/2015
22Cory8/8/20158/12/2015
23Charles8/8/20158/12/2015
24Michael8/10/20158/17/2015
25John8/10/20158/17/2015
26Kimberly8/10/20158/15/2015
27Christopher8/12/20158/14/2015
28Justin8/12/20158/12/2015
29Lisa8/12/20158/18/2015
30andrew8/12/20158/17/2015
31Jacquelin8/12/20158/17/2015
32Kathyleen8/13/20158/19/2015
33Steven8/13/20158/19/2015
34Laurie8/14/20158/19/2015
35Elias8/14/20158/18/2015
36Devon8/15/20158/23/2015
37Zachary8/16/20158/24/2015
38John8/17/20158/21/2015
39Larry8/17/20158/23/2015
40Shane8/17/20158/24/2015
41Richard8/18/20158/24/2015
42Katherine8/18/20158/20/2015
43Alex8/18/20158/22/2015
44Adam8/19/20158/27/2015
45Tessa8/20/20158/26/2015
46Terri8/21/20158/27/2015
47Matt8/21/20158/27/2015
48Thomas8/22/20158/22/2015
49Steven8/22/20158/24/2015
50Austin8/23/20158/31/2015
Sheet1
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Welcome to the forum.

Exactly what are you trying to achieve? Do you wish to count the number of persons admitted per date?
 
Upvote 0
Welcome to the MrExcel board!

Is this what you mean?

E3 and F2 copied down.

Excel Workbook
ABCDEF
1Client NameAdmission DateDischarge DateDateCount
2Margaret30/7/20156/8/201530/7/20154
3Derek30/7/20155/8/201531/7/20153
4Leslie30/7/201531/7/20151/8/20153
5Ian30/7/201531/7/20152/8/20155
6James31/7/20155/8/20153/8/20158
7Kathleen2/8/20156/8/20154/8/201510
8Pieter2/8/20157/8/20155/8/201511
9Matthew3/8/20158/8/20156/8/201511
10Danielle3/8/20158/8/20157/8/20159
11Ernesto3/8/201510/8/20158/8/201510
12Devon4/8/20155/8/20159/8/201510
13Robert4/8/201510/8/201510/8/20159
14Erik5/8/20157/8/201511/8/20157
15Curtis5/8/201510/8/201512/8/20158
16Perri5/8/201511/8/201513/8/20159
17Daniel5/8/20157/8/201514/8/201510
18Brittany6/8/201511/8/201515/8/201510
19Kerry6/8/201510/8/201516/8/201511
20Ryli7/8/201513/8/201517/8/201510
21Meaghan8/8/201512/8/201518/8/201511
22Cory8/8/201512/8/201519/8/20159
23Charles8/8/201512/8/201520/8/20159
24Michael10/8/201517/8/201521/8/201510
25John10/8/201517/8/201522/8/201510
26Kimberly10/8/201515/8/201523/8/20159
27Christopher12/8/201514/8/201524/8/20155
28Justin12/8/201512/8/201525/8/20155
29Lisa12/8/201518/8/201526/8/20154
30andrew12/8/201517/8/201527/8/20151
31Jacquelin12/8/201517/8/201528/8/20151
32Kathyleen13/8/201519/8/201529/8/20151
33Steven13/8/201519/8/201530/8/20151
34Laurie14/8/201519/8/201531/8/20150
35Elias14/8/201518/8/2015
36Devon15/8/201523/8/2015
37Zachary16/8/201524/8/2015
38John17/8/201521/8/2015
39Larry17/8/201523/8/2015
40Shane17/8/201524/8/2015
41Richard18/8/201524/8/2015
42Katherine18/8/201520/8/2015
43Alex18/8/201522/8/2015
44Adam19/8/201527/8/2015
45Tessa20/8/201526/8/2015
46Terri21/8/201527/8/2015
47Matt21/8/201527/8/2015
48Thomas22/8/201522/8/2015
49Steven22/8/201524/8/2015
50Austin23/8/201531/8/2015
Census
 
Upvote 0
Thank you both for responding. Peter hit it on the head! Thank you very much!!
You are very welcome. Glad it's what you wanted. :)

(For any future questions, try to keep the sample data a bit smaller, so long as it is still representative of the issues. Keeps the posts & thread a bit easier to read & navigate.)
 
Upvote 0
I have a similar problem that I need help with. I have a list of ventilated patients for which I know the start and end dates - see below. I am trying to figure out how I can calculate the average number of ventilated patients during a particular day of the month (How many ventilated patients we had on 2/5/16 for example). Is there some calculation that can help with this?

Thank you.

Procedure/Treatment Start DateProcedure/Treatment Stop Date
2/2/16 12:08 PM2/2/16 7:50 PM
2/2/16 8:00 PM2/4/16 2:30 PM
2/3/16 2:25 AM2/5/16 12:44 AM
2/3/16 8:45 AM2/3/16 12:20 PM
2/3/16 12:30 PM2/10/16 4:50 PM
2/3/16 9:42 PM2/4/16 4:30 PM
2/4/16 5:00 AM2/5/16 7:46 AM
2/5/16 3:31 PM2/6/16 12:40 PM
2/5/16 10:10 PM2/12/16 9:00 AM
2/6/16 12:17 AM2/6/16 5:00 PM
2/6/16 3:38 PM2/7/16 12:15 PM
2/7/16 2:45 AM2/7/16 6:06 AM
2/7/16 1:13 PM2/12/16 10:30 AM
2/8/16 5:01 AM2/11/16 2:55 PM
2/8/16 8:00 AM2/22/16 10:35 PM
2/8/16 11:00 PM3/11/16 1:35 PM
2/8/16 11:38 PM2/9/16 4:15 PM
2/9/16 9:30 AM2/10/16 2:47 PM
2/9/16 4:37 PM2/12/16 12:30 PM

<tbody>
</tbody><colgroup><col span="2"></colgroup>
 
Upvote 0
Your question isn't clear to me. You mentioned an average but then gave a specific date.

This should give you an actual count of patients whose treatment dates included at least part of the date in question. In this example, it is the yellow rows that have been counted.
Note that my dates are in d/mm/yyyy format.

Post back with more details, including the expected result, if this is not what you wanted.

Excel Workbook
ABCDE
22/02/2016 12:08 PM2/02/2016 07:50 PMDate5/02/2016
32/02/2016 08:00 PM4/02/2016 02:30 PMCount5
43/02/2016 02:25 AM5/02/2016 12:44 AM
53/02/2016 08:45 AM3/02/2016 12:20 PM
63/02/2016 12:30 PM10/02/2016 04:50 PM
73/02/2016 09:42 PM4/02/2016 04:30 PM
84/02/2016 05:00 AM5/02/2016 07:46 AM
95/02/2016 03:31 PM6/02/2016 12:40 PM
105/02/2016 10:10 PM12/02/2016 09:00 AM
116/02/2016 12:17 AM6/02/2016 05:00 PM
126/02/2016 03:38 PM7/02/2016 12:15 PM
137/02/2016 02:45 AM7/02/2016 06:06 AM
147/02/2016 01:13 PM12/02/2016 10:30 AM
158/02/2016 05:01 AM11/02/2016 02:55 PM
168/02/2016 08:00 AM22/02/2016 10:35 PM
178/02/2016 11:00 PM11/03/2016 01:35 PM
188/02/2016 11:38 PM9/02/2016 04:15 PM
199/02/2016 09:30 AM10/02/2016 02:47 PM
209/02/2016 04:37 PM12/02/2016 12:30 PM
Count
 
Upvote 0

Forum statistics

Threads
1,215,634
Messages
6,125,938
Members
449,275
Latest member
jacob_mcbride

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