Countifs help please - falling at the third

HuskyJones

New Member
Joined
Sep 30, 2015
Messages
41
Office Version
  1. 365
Platform
  1. Windows
Hi all
Can you tell me where i'm going wrong here.

I'm trying to get Patient does not equal "General Practice" has a "Wells Score DVT" of 2 or more and has had any imaging from AO, AP, AQ (the patient in green cells)

I can get it as far as =COUNTIFS('Raw Data'!$J:$J,"<>General Practice",'Raw Data'!$AF:$AF,">=2") but as soon as i enter the last bit i go to #VALUE!

=COUNTIFS('Raw Data'!$J:$J,"<>General Practice",'Raw Data'!$AF:$AF,">=2",'Raw Data'!A03:AQ1003,"1")

THANK YOU Hive!!
1705501372860.png
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Maybe this correction?:
=COUNTIFS('Raw Data'!$J:$J,"<>General Practice",'Raw Data'!$AF:$AF,">=2",'Raw Data'!$AQ:$AQ,"1")
 
Upvote 0
Maybe this correction?:
=COUNTIFS('Raw Data'!$J:$J,"<>General Practice",'Raw Data'!$AF:$AF,">=2",'Raw Data'!$AQ:$AQ,"1")
Thanks for quick reply, no doesn't work with $AO3:$AQ1003 or $AQ3:$AQ1003 (ideally need it to count if in any of the three cols)
 
Upvote 0
You should select ranges that are of the same size.
Like this:

Book1
HIJAFAQ
43General Practice11
5Other text 0120
6Other text 0231
7Other text 0341
8Other text 0410
9General Practice20
10Other text 0631
11Other text 0740
12Other text 0811
13Other text 0910
Raw Data
Cell Formulas
RangeFormula
H4H4=COUNTIFS('Raw Data'!J:J,"<>General Practice", 'Raw Data'!AF:AF, ">=2", 'Raw Data'!AQ:AQ, "1")


Or like this
Book1
HIJAFAQ
43General Practice11
5Other text 0120
6Other text 0231
7Other text 0341
8Other text 0410
9General Practice20
10Other text 0631
11Other text 0740
12Other text 0811
13Other text 0910
Raw Data
Cell Formulas
RangeFormula
H4H4=COUNTIFS('Raw Data'!J3:J100,"<>General Practice", 'Raw Data'!AF3:AF100, ">=2", 'Raw Data'!AQ3:AQ100, "1")
 
Upvote 0
Solution
You should select ranges that are of the same size.
Like this:

Book1
HIJAFAQ
43General Practice11
5Other text 0120
6Other text 0231
7Other text 0341
8Other text 0410
9General Practice20
10Other text 0631
11Other text 0740
12Other text 0811
13Other text 0910
Raw Data
Cell Formulas
RangeFormula
H4H4=COUNTIFS('Raw Data'!J:J,"<>General Practice", 'Raw Data'!AF:AF, ">=2", 'Raw Data'!AQ:AQ, "1")


Or like this
Book1
HIJAFAQ
43General Practice11
5Other text 0120
6Other text 0231
7Other text 0341
8Other text 0410
9General Practice20
10Other text 0631
11Other text 0740
12Other text 0811
13Other text 0910
Raw Data
Cell Formulas
RangeFormula
H4H4=COUNTIFS('Raw Data'!J3:J100,"<>General Practice", 'Raw Data'!AF3:AF100, ">=2", 'Raw Data'!AQ3:AQ100, "1")
THANK YOU!!! it worked <3
 
Upvote 0
THANK YOU!!! it worked <3
The marked solution has been changed accordingly. In your future questions, please mark the post as the solution that actually answered your question, instead of your feedback message as it will help future readers. No further action is required for this thread.
 
Upvote 0

Forum statistics

Threads
1,215,091
Messages
6,123,062
Members
449,090
Latest member
fragment

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