Forum Discussion
BobW40746
Nov 28, 2024Copper Contributor
AVERAGE 10 Non-Contiguous Cells BUT IGNORE any cell with a Value=0
Have a worksheet that needs to AVERAGE a bunch of non-contiguous cells (For example: A10, B13, D6, K18, L12) where some of the cell will have $X.xx values and some will be 0.00. To get a true averag...
- Nov 28, 2024
=SUM(A10,B13,D6,K18,L12)/((A10<>0)+(B13<>0)+(D6<>0)+(K18<>0)+(L12<>0))
BobW40746
Nov 29, 2024Copper Contributor
Thanks! I tried it and it works. Not quite as 'elegant' as hoped, but it does the job and that is what matters. I sincerely appreciate your reply!!
HansVogelaar
Nov 29, 2024MVP
An alternative would be to use formulas in a contiguous range of cells
=A10
=B13
=D6
=K18
=L12
And then use the AVERAGEIF function on that range:
=AVERAGEIF(contiguous_range, "<>0")