COUNTIFS with multiple criteria

kidiowa

New Member
Joined
Apr 19, 2011
Messages
6
Hi guys, newbie here with a question. I have a spread sheet I'm using to pull medication data (I'm an Informatics RN) about meds effectiveness that is charted <30 minutes and >120 minutes after administration. I use this formula to pull the numbers for our ICU unit:

=COUNTIFS('PRN Total'!A:A,"ICU*",'PRN Total'!$E:$E,">120")+COUNTIFS('PRN Total'!A:A,"ICU*",'PRN Total'!$E:$E,"")

My problem is this. We recently broke our ICU unit into a stepdown unit (Progressive Care Unit), and want to pull the same type of numbers in the above formula within that formula (combining ICU and PCU together). The numbers for the PCU will count in the same ICU data set on another page. I tried adding

+COUNTIFS('PRN Total'!A:A,"PROGRESSIVE*",'PRN Total'!$E:$E,">120")+COUNTIFS('PRN Total'!A:A,"PROGRESSIVE*",'PRN Total'!$E:$E,"")

at the end of the first formula but keep getting an error message. Does anyone know of a way to get a count of meds that meet these criteria?
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
It just shows part of the formula in the cell, i've tried other way and will get the #VALUE! error, but I think that one was due to fat fingers mistyping. is there something special I need to put in between the two formulas within the cell to combine their findings?
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,286
Members
452,902
Latest member
Knuddeluff

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