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
- Customer Resources
- 66.7K Get Help
- 438 Global Discussions
- 152 Industry Talk
- 497 Announcements
- 5.3K Ideas & Feature Requests
- 85 Brandfolder
- 155 Just for fun
- 77 Community Job Board
- 509 Show & Tell
- 34 Member Spotlight
- 2 SmartStories
- 307 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!