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
- Customer Resources
- 64.8K Get Help
- 434 Global Discussions
- 138 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 65 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!