I have a column of values that are the result of an IF equation and I want to take the average of these values excluding blank cells.
The IF function used is:
=IF(D2="C","4",IF(D2="C+","5",IF(D2="B","6",IF(D2="B+","7",IF(D2="A-","8",IF(D2="A","9",IF(D2="A+","10","")))))))
So now I have a column made up of values ranging from 4-10 and some blank cells and I want to take the average of this column using
=AVERAGEIF(E2:E42,"<>0")
This resulted in a #DIV/0! error so I tried using
=IF(COUNT(E2:E42)>0,AVERAGE(E2:E42),"")
which resulted in a blank cell meaning the IF statement was false.
Why isn't the average function recognizing all the values in column E? I made sure all the cells were formatted as numbers. I'm assuming this problem is because all the values in column E are the results of an equation but I don't know how to get around
this.
Hoping someone could help!
Thanks