How to count projects by status and date range
Hi, I'm trying to count the number projects based 2 criteria: status and date range. Both of criteria are located in separate raw sheet I have been getting #unparseable #invalid operation. Below is sample formula used, basically I'm trying to count projects in year 2020 that have "status" complete:
COUNTIFS({Integration Projects: Raw Data Sheet Range 1}, "Complete" , AND ({Integration 2} >=DATE(2020, 01, 01), <=DATE(2020, 12, 31))).
Can anyone help? Thank you
Best Answer
-
Hi @Paul Newcome , thank you very much, I had to update the reference sheet but it worked!
Now that I'm succeeded calculating number of projects in a certain year, do you know how can I calculate within a certain month of the year?
Answers
-
Try something like this...
=COUNTIFS({Integration Projects: Raw Data Sheet Range 1}, "Complete" , {Integration 2}, IFERROR(YEAR(@cell), 0) = 2020)
-
Hi @Paul Newcome , thank you very much, I had to update the reference sheet but it worked!
Now that I'm succeeded calculating number of projects in a certain year, do you know how can I calculate within a certain month of the year?
-
Yes. You would use an AND statement to reference that same range and then use a MONTH function the same way we used the YEAR funciton.
=COUNTIFS({Integration Projects: Raw Data Sheet Range 1}, "Complete" , {Integration 2}, AND(IFERROR(YEAR(@cell), 0) = 2020, IFERROR(YEAR(@cell), 0) = 7))
-
Thank you @Paul Newcome!
-
Happy to help! 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.5K Get Help
- 402 Global Discussions
- 213 Industry Talk
- 450 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 135 Just for fun
- 56 Community Job Board
- 454 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 296 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!