I need some help getting a formula to calculate the average of 4 non contiguous cells that have a number and text (ie cell P10= "86.79% of green apples").
I need to average 4 cells P10,P19,P28,P37.
P10= 86.79% of green apples
P19= 88.73% of green apples
P28= 0% of green apples
P37= 0% of green apples
Currently I have this:
and P46= 43.88% of green apples
So it's calculating the average but I need it to not include P28 and P37 since they are zero and need P46 to say 87.76% of green apples.
However P10,P19,P28,P37 all are also updated based on other inputs so if the sheet gets updated and P28 becomes 85.77%, I would then need P46 to updated to 87.10% since it would've taken the average of 3 numbers instead of just the 2.
I think my formula should be an AVERAGEIF function, but don't know how to make it work with multiple cells like this.
Thanks for taking a look, and let me know what other information is needed, if any.
Bookmarks