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.4K Get Help
- 424 Global Discussions
- 221 Industry Talk
- 465 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 145 Just for fun
- 62 Community Job Board
- 463 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 301 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!