Multiple terms in Countifs statement

Paul15

New Member
Joined
Jun 25, 2020
Messages
44
Office Version
  1. 2019
Platform
  1. Windows
Dear All,

I have a statement which calculates the number of entries in a sheet in any given month which works fine.

=COUNTIFS(SaMSEncounters!$B:$B,">="&AB19,SaMSEncounters!$B:$B,"<="&EOMONTH(AB19,0))

January 01/01/2021 1
February 01/02/2021 1
March 01/03/2021 3


I now wish to extend this statement to incorporate a second clause. So I want the statement to calculate the number of entries per month, as above where the second clause is say "John".
So if in March there are a total of 3 entries but John accounts for only 2, then the answer should be 2

I have tried this but it does not provide what I was hoping for.

=COUNTIFS(SaMSEncounters!$S:$S,”John”,SaMSEncounters!$B:$B,">="&AQ23,SaMSEncounters!$B:$B,"<="&EOMONTH(AQ23,0))

Any help please

Regards

paul
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
have worked this one out, herewith:

=COUNTIFS(SaMSEncounters!$S:$S,"John",SaMSEncounters!$B:$B,">="&AQ23,SaMSEncounters!$B:$B,"<="&EOMONTH(AQ23,0))
 
Upvote 0
Solution

Forum statistics

Threads
1,214,918
Messages
6,122,257
Members
449,075
Latest member
staticfluids

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