Forum Discussion
finding the everage from a column of numbers but ignoring the cells in which the value is zero
- Oct 13, 2020
SergeiBaklanThanks!! this works great!! why should there be a coma before the quotation marks in the formula?
meirtu , you are welcome.
It separates second parameter which defines criteria, please see here AVERAGEIF function
- meirtuOct 14, 2020Copper Contributor
SergeiBaklanHi again. actually checking again, this formula does not work! it does not work because in some of the percentage cells in the column there is an #DIV/0! error. This error appears because the sums in some of the cells on which the percentage has to be calculated have not been fed yet, and will only be fed as the year proceeds (it's a monthly interest percentage calculation). Is there a possibility of calculating the percentage in the percentages column without dividing? Because division will allways result in division of zero until all the cells are fed. Or maybe some other solution
Thanks in advance
- SergeiBaklanOct 14, 2020Diamond Contributor
You may wrap it by IFERROR returning in case of error empty text or any other value you prefer
=IFERROR(AVERAGEIF(A1:A6,"<>0"),"")- meirtuOct 15, 2020Copper Contributor
SergeiBaklanThanks, but for some reason it still is not working. The formula yields no result.
I am sending you the actual sheet after writing the formula as you stated. If you would be kind enough to look what is still preventing this from working, I would be so grateful. Please note that the sheet is laid from right to left, and the relevant formula is written in cell E14.
Thanks again
- meirtuOct 14, 2020Copper Contributor
SergeiBaklanThanks Sergei! I will definitely carefully read the tutorial link you sent me to better understand this wonderful formula, and also read about some other formulas which are not clear to me.