I have a column with =IF(E2=”W “,H2,IF(I2<>””,I2,””)) in it.
It displays values but when I take an average of the column, it comes up with a divide by zero error.
Is there a special type of average function I need to use for this?
I have a column with =IF(E2=W ,H2,IF(I2<>,I2,)) in it. It displays values but when
Share
I assume that H2 and/or I2 are numbers? Perhaps those numbers are text formatted (in which case AVERAGE, not finding any true numbers will return #DIV/0! error). Try converting like this:
=IF(E2="W ",H2+0,IF(I2<>"",I2+0,""))+0 will convert a text-formatted number to an actual number, then your AVERAGE function should work