abistricer
New Member
- Joined
- Mar 3, 2013
- Messages
- 1
I amhaving an issue coming up with an accurate formula for the situation i have below: i have 3 categories 0-20,21-45 and 46-65. i have another two columnssaying where the patient is coming from (Hospital, LCHSA or outpatient) and theamount of hours are required per pateint.
I am looking for a formula to automatically tell me how many patients havehours in one of the 3 options.
such as in Hospital under 0-20 I would like to automatically put in 2 under the category seeing that there are 3 hospitals with 2 patients with hours of 0-20 and 1 patient in hospital under 21-45<o></o>
thank you for your help!!
[TABLE="width: 756"]
<tbody>[TR]
[TD]Place of patient[/TD]
[TD]Patient hours[/TD]
[TD][/TD]
[TD][/TD]
[TD]0-20[/TD]
[TD]21-45[/TD]
[TD]46-65[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Hospital[/TD]
[TD="align: right"]1[/TD]
[TD][/TD]
[TD]Hospital[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]LCHSA[/TD]
[TD="align: right"]15[/TD]
[TD][/TD]
[TD]LCHSA[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Outpatient[/TD]
[TD="align: right"]8[/TD]
[TD][/TD]
[TD]Outpatient[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Hospital[/TD]
[TD="align: right"]40[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Hospital[/TD]
[TD="align: right"]15[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]LCHSA[/TD]
[TD="align: right"]13[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]LCHSA[/TD]
[TD="align: right"]45[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Outpatient[/TD]
[TD="align: right"]38[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
<o></o>
I am looking for a formula to automatically tell me how many patients havehours in one of the 3 options.
such as in Hospital under 0-20 I would like to automatically put in 2 under the category seeing that there are 3 hospitals with 2 patients with hours of 0-20 and 1 patient in hospital under 21-45<o></o>
thank you for your help!!
[TABLE="width: 756"]
<tbody>[TR]
[TD]Place of patient[/TD]
[TD]Patient hours[/TD]
[TD][/TD]
[TD][/TD]
[TD]0-20[/TD]
[TD]21-45[/TD]
[TD]46-65[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Hospital[/TD]
[TD="align: right"]1[/TD]
[TD][/TD]
[TD]Hospital[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]LCHSA[/TD]
[TD="align: right"]15[/TD]
[TD][/TD]
[TD]LCHSA[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Outpatient[/TD]
[TD="align: right"]8[/TD]
[TD][/TD]
[TD]Outpatient[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Hospital[/TD]
[TD="align: right"]40[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Hospital[/TD]
[TD="align: right"]15[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]LCHSA[/TD]
[TD="align: right"]13[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]LCHSA[/TD]
[TD="align: right"]45[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Outpatient[/TD]
[TD="align: right"]38[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
<o></o>