Geomean range

S

Stephen

Hi,

I am using this formula to calculate a geomean, but would like to omit line
13 and 17 and 19 in the o9:eek:24 range.

{=EXP(AVERAGE(LN(1+O9:O24)))-1}
 
N

N Harkawat

Stephen
Will this work
=geomean(O9:O12,O14:O16,O18,O20:O24)

Or is there a criterion to exclude those(like exclude all negatives etc..)
 
S

Stephen

I don't understand why the formula won't allow me to add several ranges after
each other?
 
N

N Harkawat

To exclude the negatives from your formula try this :

{=PRODUCT(1+IF(O9:O24>0,O9:O24))^(1/COUNTIF(O9:O24,">0"))-1}
array entered
 
H

Harlan Grove

Stephen wrote...
I am using this formula to calculate a geomean, but would like to omit line
13 and 17 and 19 in the o9:eek:24 range.

{=EXP(AVERAGE(LN(1+O9:O24)))-1}

=EXP(AVERAGE(LN(1+O9:012),LN(1+O14:O16),LN(1+O18),LN(1+O20:O24)))-1
or

=EXP(SUM(LN(1+O9:O24)*{1;1;1;1;0;1;1;1;0;1;0;1;1;1;1;1})/13)-1
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top