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
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 471 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!