Hi there.
Is there a way to make IFERROR(x, t) return a "t" result that would ignored by AVERAGE()?
I tried this: AVERAGE(IFERROR(x, ""), IFERROR(y, "")), but unfortunately this doesn't work as expected. There is a subtle difference between inputting "" to the AVERAGE() function and referencing a blank cell...
If there is no direct solution, is there a somewhat indirect -yet simple- approach? I tried to play with AGGREGATE() or AVERAGEIF(), but I couldn't find a proper answer.
Thanks in advance for your help!
PS: "x" and "y" are actually long expressions, I'd rather not duplicate them in the formula. I also would like to proceed in one single step (one formula, no intermediate cell).
Is there a way to make IFERROR(x, t) return a "t" result that would ignored by AVERAGE()?
I tried this: AVERAGE(IFERROR(x, ""), IFERROR(y, "")), but unfortunately this doesn't work as expected. There is a subtle difference between inputting "" to the AVERAGE() function and referencing a blank cell...
If there is no direct solution, is there a somewhat indirect -yet simple- approach? I tried to play with AGGREGATE() or AVERAGEIF(), but I couldn't find a proper answer.
Thanks in advance for your help!
PS: "x" and "y" are actually long expressions, I'd rather not duplicate them in the formula. I also would like to proceed in one single step (one formula, no intermediate cell).