Attempting to Forecast Ongoing Projects
I have a Smartsheet with start and end dates for given projects. I am trying to create a calculation Sheet that will give me the number of ongoing projects within a specific month and year so I can forecast the number of ongoing projects we will have.
I tried several variations with the "COUNTIFS" function, but cannot seem to get it right. The closest I've come is the following, which does spit out a number. However, when I double checked it using filters on the sheet itself, it does not match :(
=COUNTIFS({Start Date}, AND(IFERROR(MONTH(@cell), 0) <= MONTH(Month@row), IFERROR(YEAR(@cell), 0) <= YEAR(Month@row)), {End Date}, AND(IFERROR(MONTH(@cell), 0) > MONTH(Month@row), IFERROR(YEAR(@cell), 0) >= YEAR(Month@row)))
From project list:
From calculations sheet:
Answers
-
It looks like you may just be missing an = sign!
You're currently looking for if the Start Date is less than or equal to the month and year of your date, and if the End Date month is greater than the month (but not equal to) and the Year is equal to or greater than.
This means your current number would have been excluding any of your rows that ended in the same month as your Month cell.
Try adding in the = where I've bolded it and see if this now gives you the correct number:
=COUNTIFS({Start Date}, AND(IFERROR(MONTH(@cell), 0) <= MONTH(Month@row), IFERROR(YEAR(@cell), 0) <= YEAR(Month@row)), {End Date}, AND(IFERROR(MONTH(@cell), 0) >= MONTH(Month@row), IFERROR(YEAR(@cell), 0) >= YEAR(Month@row)))
Cheers,
Genevieve
Need more help? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋 | Global Discussions
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 472 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 496 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!