#1   Report Post  
Stephen
 
Posts: n/a
Default Geomean range

Hi,

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

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

--
Stephen
  #2   Report Post  
N Harkawat
 
Posts: n/a
Default

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..)


"Stephen" wrote in message
...
Hi,

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

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

--
Stephen



  #3   Report Post  
Stephen
 
Posts: n/a
Default

I have tried that, but I do have negatives and therefore need the original
formula

"N Harkawat" wrote:

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..)


"Stephen" wrote in message
...
Hi,

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

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

--
Stephen




  #4   Report Post  
Stephen
 
Posts: n/a
Default

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

"N Harkawat" wrote:

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..)


"Stephen" wrote in message
...
Hi,

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

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

--
Stephen




  #5   Report Post  
N Harkawat
 
Posts: n/a
Default

To exclude the negatives from your formula try this :

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



"Stephen" wrote in message
...
I don't understand why the formula won't allow me to add several ranges
after
each other?

"N Harkawat" wrote:

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..)


"Stephen" wrote in message
...
Hi,

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

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

--
Stephen








  #6   Report Post  
Harlan Grove
 
Posts: n/a
Default

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:o24 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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Passing a range name as an argument to the Index Function Michael Sharpe Excel Discussion (Misc queries) 3 September 5th 12 01:33 PM
ClearContents method on a passed range bryan New Users to Excel 2 January 19th 05 08:49 AM
named range refers to: in a chart Spencer Hutton Excel Discussion (Misc queries) 1 December 14th 04 10:15 PM
range names Pedro Excel Worksheet Functions 1 November 9th 04 06:27 PM
range name Pedro Excel Worksheet Functions 0 November 9th 04 06:22 PM


All times are GMT +1. The time now is 05:36 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"