Count Days down to a due date
If I have a "Due Date" column, and I want another column to calculate the amount of days leading up to that date… what formula would be created? It would be marked "Closed" if completed and "Open" if not completed.
Additionally when that item is passed the "due date" and still "Open" we would like to count the amount of days overdue in a negative number. What would we use here?
Best Answer
-
It sounds like the column you are placing the formula into is formatted as Date, but (if I understand your case correctly) it should be Text/Number.
Answers
-
=IF(AND(ISDATE([Due Date]@row), Status@row = "Open"), [Due Date]@row - TODAY(), "")
This assumes you have a column titled Status.
-
@Carson Penticuff
This gives me #Date Expected
-
It sounds like the column you are placing the formula into is formatted as Date, but (if I understand your case correctly) it should be Text/Number.
-
Oh my goodness - You are right! My apologies. Thank you!
-
-
Is there a way to make the negative numbers red?
-
You can do this with conditional formatting.
-
You have saved my Friday Brain !! Thank you so much. I should have known that. Just assumed it was within the formula
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
- 142 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!