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
- 64.2K Get Help
- 419 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 141 Just for fun
- 58 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 299 Events
- 38 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!