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
- Customer Resources
- 65.1K Get Help
- 444 Global Discussions
- 141 Industry Talk
- 472 Announcements
- 5K Ideas & Feature Requests
- 83 Brandfolder
- 150 Just for fun
- 71 Community Job Board
- 489 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 301 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!