Count ifs with date range

Imran Azam

Board Regular
Joined
Mar 15, 2011
Messages
103
HI Guys

i am trying to create a formula where it does a count if the date range condition is matched else bring back blank, below is the data

NameStateCreated On
AlexQualified30/04/2019
AlexQualified01/05/2019
AlexQualified28/05/2019
AlexQualified03/03/2019
JamesNot Qualified04/05/2019
JamesQualified05/05/2019
JamesQualified06/05/2019
JamesNot Qualified07/05/2019
JamesNot Qualified08/05/2019

<colgroup><col><col><col><col></colgroup><tbody>
</tbody>


the logic i am trying to use is if Name is Alex and State = Qualified and created on is between 01/05/2019 and 30/05/2019( i just want may data) then return the count of the name, the formula i have done is below but it isn't working

=COUNTIFS(Name,"Alex",state,"Qualified",Created on,">=01/05/2019",D:D,Created on,"<=30/5/2019)/COUNTIF(Name,"Alex")

can anyone help with this?

thanks
 
thanks what if i want the date range from 01/01.2019 to 01/05/2018, can this be done using same formula?
It depends on whether or not you want to include the May 1 date in your count. If so, then you will need to do something like Marcelo should to include that date.
If not, you can use the formula that Repush just posted (which will NOT include the May 1 dates).
 
Upvote 0

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.

Forum statistics

Threads
1,214,914
Messages
6,122,211
Members
449,074
Latest member
cancansova

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