Hello, I'm hoping to get help with a formula that will calculate days since a last event.
Best Answer
-
Hi @vmontoya,
You possibly would want to do this with either cross sheet references or sheet summaries rather than by line (largely to prevent duplication of results).
Formula wise, something like this (for a sheet summary on days since Near Miss):
=TODAY() - MAX(COLLECT([Date of incident]:[Date of incident], Classification:Classification, "Near Miss"))
Example output:
If you want to, you can add additional criteria (e.g. by Production area), but if you have a large number of such areas I would probably do this as a separate sheet so you can have the areas listed and then a reference for the column rather than needing to rejig the formula constantly.
Hope this helps, but if you've any problems/questions, just post! 🙂
Answers
-
Hi @vmontoya,
You possibly would want to do this with either cross sheet references or sheet summaries rather than by line (largely to prevent duplication of results).
Formula wise, something like this (for a sheet summary on days since Near Miss):
=TODAY() - MAX(COLLECT([Date of incident]:[Date of incident], Classification:Classification, "Near Miss"))
Example output:
If you want to, you can add additional criteria (e.g. by Production area), but if you have a large number of such areas I would probably do this as a separate sheet so you can have the areas listed and then a reference for the column rather than needing to rejig the formula constantly.
Hope this helps, but if you've any problems/questions, just post! 🙂
-
Thank you, Nick!!
-
No problem, happy to help.
I've had to build something similar to this in the past, so if you have any other questions just ask! 🙂
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 62.9K Get Help
- 379 Global Discussions
- 212 Industry Talk
- 442 Announcements
- 4.6K Ideas & Feature Requests
- 140 Brandfolder
- 129 Just for fun
- 130 Community Job Board
- 449 Show & Tell
- 30 Member Spotlight
- 1 SmartStories
- 302 Events
- 33 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!