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