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
Check out the Formula Handbook template!