COUNTIFS problem

kidiowa

New Member
Joined
Apr 19, 2011
Messages
6
Here's my problem. I'm using a worksheet for monitoring medication administration in our ICU. This is the formula that I'm using that works great (so far):

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

Now that we added some more wards within our ICU (PCU-S and PCU-M) the countif is not capturing the data of the PCU. I've tried adding the wildcard * in front of ICU in the above formula (ex: "*CU*") but get an error that only displays the formula. Is there an easy fix to get the formula to recognize the "CU" within these searches? No other wards have CU within their names. Any help is greatly appreciated. Thanks! Jim
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
That should work.....

=COUNTIFS('PRN Total'!A:A,"*CU*",'PRN Total'!$E:$E,">120")+COUNTIFS('PRN Total'!A:A,"*CU*",'PRN Total'!$E:$E,"")
 
Upvote 0
This does not error for me

=COUNTIFS('PRN Total'!A:A,"ICU*",'PRN Total'!$E:$E,">120")+COUNTIFS('PRN Total'!A:A,"*CU*",'PRN Total'!$E:$E,"")
 
Upvote 0
That should work.....

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


I've tried that and still got the same error. For some reason the * in front of the CU is throwing something off, can't figure it out for the life of me.
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,707
Members
452,939
Latest member
WCrawford

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