Fixing a formula

datadummy

Active Member
Joined
Mar 16, 2017
Messages
313
Office Version
  1. 365
Platform
  1. Windows
I am seeking assistance in fixing a formula that is resulting in either #Div/O or #VALUE , here is my current formula,

=COUNTIFS('Raw May'!E1:E1200,"General Medicine",'Raw May'!AU1:AU1200,"Yes")/COUNTIFS('Raw May'!E1:E1200,"General Medicine",'Raw May'!AU1:AU1200,"Yes",'Raw May'!AU1:AU1200,"No",'Raw May'!AU1:AU1200,"Nurse Clarified Concerns")

The column AU does have blanks in the column and am not sure if that is causing the issue or not.
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Its because you have conflicting rules in the later part of the formula

"COUNTIFS('Raw May'!E1:E1200,"General Medicine",'Raw May'!AU1:AU1200,"Yes",'Raw May'!AU1:AU1200,"No",'Raw May'!AU1:AU1200,"Nurse Clarified Concerns")"

Are you saying that you want to count if Column E has General Medicine and Column AU has Yes,no or Nurse Clarified in it? The way you have the formula written means it needs to satisty all those things at once which is impossible.

You need to either have multiple countifs added together or use SUM like below

=SUM(COUNTIFS(AU:AU,{"Yes";"No";"Nurse Clarified"},E:E,"General Medicine"))
 
Upvote 0
Perhaps...

=COUNTIFS('Raw May'!E1:E1200,"General Medicine",'Raw May'!AU1:AU1200,"Yes")/COUNTIFS('Raw May'!E1:E1200,"General Medicine",'Raw May'!AU1:AU1200,"?*")

if AU cannot but have Yes, No, Nurse Clarified Converns, and blanks tha must be excluded from the ratio you are looking for.

Otherwise, the more specific (see also the ardykav post)…

=COUNTIFS('Raw May'!E1:E1200,"General Medicine",'Raw May'!AU1:AU1200,"Yes")/SUM(COUNTIFS('Raw May'!E1:E1200,"General Medicine",'Raw May'!AU1:AU1200,{"Yes","No","Nurse Clarified Concerns"}))
 
Upvote 0
Ok that worked, but now I am noticing that the data in column AU has multiple entries so my thought is I would like to count any entry in column AU but omit any blanks any thoughts on how to achieve that? Would I simply put ""?
 
Upvote 0
Ok that worked, but now I am noticing that the data in column AU has multiple entries so my thought is I would like to count any entry in column AU but omit any blanks any thoughts on how to achieve that? Would I simply put ""?

The denominator of

=COUNTIFS('Raw May'!E1:E1200,"General Medicine",'Raw May'!AU1:AU1200,"Yes")/COUNTIFS('Raw May'!E1:E1200,"General Medicine",'Raw May'!AU1:AU1200,"?*")

does just that.

Counting all of the text values of AU...

=COUNTIFS('Raw May'!AU1:AU1200,"?*")


 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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