COUNTIF formula Help!!!!!!

Runner10

New Member
Joined
Aug 10, 2015
Messages
18
I have 2 columns of data. The left column is whether the individual has good or bad behavior. The right column is whether the individual had a positive or negative experience in the emergency room. I have this formula below, which tells me if the one individual had both bad behavior AND a negative emergency room experience.

=IF(AND(BI10=7,AX10=3),"Yes","No")



However, I have over 400 individuals in my study. How can I adjust this formula to tell me how many individuals had both bad behavior AND a negative emergency room experience? I'm thinking I have to add COUNT or COUNTIF into the above formula? But I'm not sure how to set this all up.


Any help would be appreciated. Thank you.
 
And I dare to think that:


  1. =SUMPRODUCT(--(A16:A417=1),1-ISNUMBER(MATCH(B16:B417,ExcludeList,0)))
  2. =COUNTIFS(A16:A417,1)-SUMPRODUCT(COUNTIFS(A16:A417,1,B16:B417,ExcludeList))

[1] is faster than [2].

I've not tested it, but I would also agree that you are right.

I was just commenting the "costly".
From what I understood CountIf() and similar functions are, at least now, quite efficient.
 
Upvote 0

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
[...]
I was just commenting the "costly".
From what I understood CountIf() and similar functions are, at least now, quite efficient.

That's good news. I'm curious though whether they are as good as the FREQUENCY function we use in some set ups
 
Upvote 0

Forum statistics

Threads
1,217,394
Messages
6,136,363
Members
450,006
Latest member
DaveLlew

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