Average between two date columns based on a specific condition
I want to calculate the average days between two date columns for a specific status (ABC).
I have a column for the average days named: "Avg Days (Req to Sent)" and this is my formula
=IF([Type]@row = "ABC", [Sent Date]@row - [Requested Date]@row, "Not ABC")
This works.
Now I want to calculate the average days from this column and ofcourse only the ones that have a number, because for the ones that don't satisfy the logic above it writes "Not ABC" in the cell. I put this formula in the sheet summary but I'm getting "#BLOCKED"
=AVG(COLLECT([Avg Days (Req to Sent)]:[Avg Days (Req to Sent)], [Avg Days (Req to Sent)]:[Avg Days (Req to Sent)], ISNUMBER(@cell)))
What am I doing wrong here?
Appreciate the help!!! :)
Answers
-
How about an AVERAGEIF function @jerry123 ?
Rather than collecting and averaging, you could use an average if the cell is a number.
=AVERAGEIF([Avg Days (Req to Sent)]:[Avg Days (Req to Sent)], ISNUMBER(@cell))
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63K Get Help
- 380 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
- 305 Events
- 34 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!