Help on fiormula: countifs
Hi all, please need your advice for the correct formula for getting the count of projects that are active within a specific month? We would like to track the number of projects that are still active for 2018.
I'm trying the formula below but I'm getting an #INCORRECT ARGUMENT error.
=COUNTIFS(Stage:Stage, [Forecasted End Date]:[Forecasted End Date], IFERROR(AND(MONTH(@cell) <= 1, YEAR(@cell) = 2018), Status:Status, "active"))
The Stage headers that are active are called:
Planning
Strategy
Tender
Evaluation
Contract
Thanks in advance for the response.
Kind regards,
Grace
Comments
-
I would suggest rethinking your formula.
1. There 5 Stages that are considered active. Perhaps there are fewer that are not considered active?
2. What about a project that is active in 2018 but ends in January 2019?
3. I would put this formula into a separate column (check box). It can be incorporated directly into the COUNTIFS, but it isn't pretty
=IF(OR(AND(Start@row < DATE(2018, 1, 1), Finish@row < DATE(2018, 1, 1)), AND(Start@row > DATE(2018, 12, 31), Finish@row > DATE(2018, 12, 31))), 0, 1)
This will be checked if the Start or Finish date occurs in 2018.
4. For the Status:Status check, use OR("Planning", "Strategy", etc...) or flip it based on #1 above to NOT(OR("Completed", etc...)
I hope that gets you started.
Craig
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.8K Get Help
- 437 Global Discussions
- 138 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 67 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!