Hello,
I have a range of cells that contain variuos positive or zero numbers, and I want to calculate the geometric mean of the range, but I need a way to exclude the zeros. I tried to use the GEOMEAN function hoping it will ignore the zeros, but it didn't. I tried to write some kind of combination of IF and PRODUCT functions, but wasn't successful. And unfortunately the PRODUCTIF function doesn't exist yet.
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]N1[/TD]
[TD]N2[/TD]
[TD]N3[/TD]
[TD]N4[/TD]
[TD]N5[/TD]
[TD]Geometric mean[/TD]
[/TR]
[TR]
[TD]4.6[/TD]
[TD]8.5[/TD]
[TD]9.2[/TD]
[TD]7.3[/TD]
[TD]0[/TD]
[TD]#NUM![/TD]
[/TR]
[TR]
[TD]3.9[/TD]
[TD]4.4[/TD]
[TD]9.1[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD]#NUM![/TD]
[/TR]
[TR]
[TD]2.3[/TD]
[TD]8.2[/TD]
[TD]1.7[/TD]
[TD]5.2[/TD]
[TD]4.6[/TD]
[TD]3.77529[/TD]
[/TR]
</tbody>[/TABLE]
Any help would be appreciated.
P.S. If there are zeros in the range of cells, they would appear at the rightmost column(s), if this info is of any help.
I have a range of cells that contain variuos positive or zero numbers, and I want to calculate the geometric mean of the range, but I need a way to exclude the zeros. I tried to use the GEOMEAN function hoping it will ignore the zeros, but it didn't. I tried to write some kind of combination of IF and PRODUCT functions, but wasn't successful. And unfortunately the PRODUCTIF function doesn't exist yet.
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]N1[/TD]
[TD]N2[/TD]
[TD]N3[/TD]
[TD]N4[/TD]
[TD]N5[/TD]
[TD]Geometric mean[/TD]
[/TR]
[TR]
[TD]4.6[/TD]
[TD]8.5[/TD]
[TD]9.2[/TD]
[TD]7.3[/TD]
[TD]0[/TD]
[TD]#NUM![/TD]
[/TR]
[TR]
[TD]3.9[/TD]
[TD]4.4[/TD]
[TD]9.1[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD]#NUM![/TD]
[/TR]
[TR]
[TD]2.3[/TD]
[TD]8.2[/TD]
[TD]1.7[/TD]
[TD]5.2[/TD]
[TD]4.6[/TD]
[TD]3.77529[/TD]
[/TR]
</tbody>[/TABLE]
Any help would be appreciated.
P.S. If there are zeros in the range of cells, they would appear at the rightmost column(s), if this info is of any help.