Adding IFERROR to AVG(COLLECT
Hi, I am needing to add an IFERROR to the following formula to return a "-" if no data is present. I attempted to use a few examples seen in other questions but it keeps giving an invalid argument.
=AVG(COLLECT([FPY %]:[FPY %], Date:Date, AND(@cell >= DATE(2020, 11, 29), @cell <= DATE(2021, 1, 2))))
Best Answer
-
=iferror(AVG(COLLECT([FPY %]:[FPY %], Date:Date, AND(@cell >= DATE(2020, 11, 29), @cell <= DATE(2021, 1, 2)))),"-")
I didn't check your formula, but if the formula is correct above is how you would add an iferror to it.
Answers
-
=iferror(AVG(COLLECT([FPY %]:[FPY %], Date:Date, AND(@cell >= DATE(2020, 11, 29), @cell <= DATE(2021, 1, 2)))),"-")
I didn't check your formula, but if the formula is correct above is how you would add an iferror to it.
-
Well not sure what I was entering wrong before but that did the trick. Thank you for the help.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 472 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!