I want to count past due tasks using 2 date columns.
Hello all,
I'm trying to count overdue tasks by using 2 different date columns. I'm currently using this formula , =COUNTIFS([Hardware Actual Construction NTP]:[Hardware Actual Construction NTP], <[Hardware Planned Construction NTP]:[Hardware Planned Construction NTP])
However, whatever dates get put into the columns the count is always 0 and I'm not sure what I'm doing wrong. I'm hoping I can get it to count if the Actual start date is later than the projected start date.
Best Answer
-
Hi @Cidniz
The easiest way to do this is to add a Helper column doing the check for you and then use this.
Helper column formula:
=IF([Hardware Planned Construction NTP]@row < [Hardware Actual Construction NTP]@row, 1, 0)
Then either:
=SUM([Helper column]:[Helper column]) - if you left the Helper column as a number
=COUNTIF([Helper column]:[Helper column], 1) - if you had the Helper column as a checkbox
Hope this helps, but any questions/problems then just ask! 🙂
Answers
-
Hi @Cidniz
The easiest way to do this is to add a Helper column doing the check for you and then use this.
Helper column formula:
=IF([Hardware Planned Construction NTP]@row < [Hardware Actual Construction NTP]@row, 1, 0)
Then either:
=SUM([Helper column]:[Helper column]) - if you left the Helper column as a number
=COUNTIF([Helper column]:[Helper column], 1) - if you had the Helper column as a checkbox
Hope this helps, but any questions/problems then just ask! 🙂
-
That works perfectly, still new to Smartsheet and it never occurred to me to use a helper column and hide it. Thank you so much for the tip.
-
No problem, glad to have helped! ☺️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.6K Get Help
- 403 Global Discussions
- 215 Industry Talk
- 454 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 136 Just for fun
- 56 Community Job Board
- 459 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 296 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!