Countifs between a Date Range

CuriousBritt

New Member
Joined
May 17, 2017
Messages
1
I have a list of projects that have a start and end date in an excel file. I want to find out how many projects were live for each month.

For Example, here is some data:

Project 1 started 11/1/2014 and ended 10/31/2015.
Project 2 started 12/1/2014 and ended 3/30/2015.

From that data, I need a formula to be able to find the live projects for each month. Below is what I would like to accomplish:

Live Projects for November 2014: 1
Live Projects for December 2014: 2
......
Live Projects for March 2015: 2
Live Projects for April 2015: 1

I've tried Countifs("start date", ">"&monthstartdatecell, "end date", "<"&monthenddatecell) but that doesn't work :mad:

Project 111/1/201410/31/2015
Project 212/1/20153/30/2015
Project 310/28/20146/5/2015
Project 43/5/201410/5/2014
Project 51/15/20141/15/2015

<tbody>
</tbody>
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Re: HELP: Countifs between a Date Range

Welcome to the Board!

Your formula will only return records that started and ended within the same month!
You want to count records where they started before the end of the month, and ended after the start of the month.
So you want this structure:
Code:
[COLOR=#333333]Countifs("[/COLOR][B][I]start date[/I]", "<=" & [B][I]monthenddatecell[/I], "[I][B]end date[/B]", ">=" & [B][I]monthstartdatecell[/I]) [/B][/I][/B][/B]
 
Last edited:
Upvote 0

Forum statistics

Threads
1,216,077
Messages
6,128,685
Members
449,463
Latest member
Jojomen56

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