Average Days from Days Opened formula
I have a formula in a column for the number of a days a ticket has been opened.
=IF(Status@row <> "Completed", TODAY() - [Created Date]@row, "")
I want to add a metric in the sheet summary to tell me the average days of open tickets. I am using =ROUND(AVG([Days Opened]:[Days Opened], 1)), but this is accounting for closed tickets. How can I add a formula to only average the lines will values aka open tickets?
Best Answer
-
You would need to incorporate a COLLECT function.
=ROUND(AVG(COLLECT([Days Opened]:[Days Opened], [Days Opened]:[Days Opened], @cell <> "")), 1)
Answers
-
You would need to incorporate a COLLECT function.
=ROUND(AVG(COLLECT([Days Opened]:[Days Opened], [Days Opened]:[Days Opened], @cell <> "")), 1)
-
Thank you, that worked!
-
Happy to help. 👍️
-
Is there a way to use this formula and filter just by the assigned user?
-
@Kpennington You would add another range/criteria set in the COLLECT function.
-
Am I thinking of this correctly?
=ROUND(AVG(COLLECT([Days Opened]:[Days Opened], [Days Opened]:[Days Opened], @cell <> ""),([Assigned To]:[Assigned To], [Assigned To]:[Assigned To], @cell, "Katie Pennington"))), 1)
-
@Kpennington It would go inside of the COLLECT function.
=ROUND(AVG(COLLECT([Days Opened]:[Days Opened], [Days Opened]:[Days Opened], @cell <> "", [Assigned To]:[Assigned To], @cell = "Katie Pennington")), 1)
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!