Forum Discussion
Need Help on stopping the #DIV/0! error.
- Nov 19, 2020
Hi there,
There are two ways to solve this problem.
1 - You must change blank cell into 0. = =IF(AVERAGE(A2>=0),AVERAGE(A2), "")
In this case your formula will work perfect.
2 - If you don't want to change, then use Iferror function. - =IFERROR(IF(AVERAGE(A2>=0),AVERAGE(A2), ""),"0")
Ilgar_Zarbaliyev Thank you very much. The second suggestion is exactly what I needed to fix the error. The first wouldn't have worked with the results I needed because the monthly average that would result in a "blank" I cannot have averaged into the YTD Rolling Average. The second takes into account that the Blank would not be counted into the calculation, and still clears the error.
I appreciate your assistance with this. You are a lifesaver!
Thank you for your best response mark