How to display Days Elapsed only if Status is Open?
Like the title says, I'd like to only show the number of days elapsed when the status is on Open. I'm currently using this formula:
=IFERROR(NETWORKDAYS([Report Date]@row, [Due Date]@row), "")
Any tips would be highly appreciated!
Answers
-
In your current scheme, think it would be something like:
=IFERROR(IF(Status@row="Open",NETWORKDAYS([Report Date]@row, [Due Date]@row),""),"")
However, the formula above would only seem to change if the "Report Date" is updated, and then only to show how long over or under the "Due Date" that "Report Date" is, which would be more like "Days to Due Date".
Assuming the "Report Date" is the start of the item, if you're looking to calculate "Days Elapsed" from the "Report Date" to the current day and then stop that calculation when the item is "Resolved", you may want to
- Add a "Resolved Date" column
- Write a workflow triggered "when rows are changed" When "Status" changes to "Closed", with the action as "Record a date" in the "Resolved Date" column
- Write the following formula in the "Days Elapsed" column: =IF(ISBLANK([Resolved Date]@row), NETWORKDAYS([Report Date]@row, TODAY()), NETWORKDAYS([Report Date]@row, [Resolved Date]@row))
-
The top formula did exactly what I wanted, thank you! Just wondering if it's possible to leave it blank instead of a dash. But its not a big deal.
I'll create the Resolved column and see if that bottom formula works better for us in the long run.
Thanks again!
-
Excellent!
Sounds good! I made some tweaks to the process and formula in an edit after additional thought... definitely reference those if needed.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.7K Get Help
- 406 Global Discussions
- 218 Industry Talk
- 456 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 136 Just for fun
- 57 Community Job Board
- 459 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 297 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!