Deprecated: Assigning the return value of new by reference is deprecated in /home/meewella/www/simplepound/wp-includes/cache.php on line 99

Deprecated: Assigning the return value of new by reference is deprecated in /home/meewella/www/simplepound/wp-includes/query.php on line 21

Deprecated: Assigning the return value of new by reference is deprecated in /home/meewella/www/simplepound/wp-includes/theme.php on line 576

Deprecated: Assigning the return value of new by reference is deprecated in /home/meewella/www/simplepound/wp-content/plugins/social_bookmarks/social_bookmarks.php on line 61

Deprecated: Assigning the return value of new by reference is deprecated in /home/meewella/www/simplepound/wp-content/plugins/social_bookmarks/social_bookmarks.php on line 76

Deprecated: Assigning the return value of new by reference is deprecated in /home/meewella/www/simplepound/wp-content/plugins/social_bookmarks/social_bookmarks.php on line 79

Deprecated: Assigning the return value of new by reference is deprecated in /home/meewella/www/simplepound/wp-content/plugins/social_bookmarks/social_bookmarks.php on line 242

Deprecated: Assigning the return value of new by reference is deprecated in /home/meewella/www/simplepound/wp-content/plugins/social_bookmarks/social_view_admin.php on line 424

Deprecated: Assigning the return value of new by reference is deprecated in /home/meewella/www/simplepound/wp-content/plugins/social_bookmarks/social_view_public.php on line 125

Warning: Cannot modify header information - headers already sent by (output started at /home/meewella/www/simplepound/wp-includes/cache.php:99) in /home/meewella/www/simplepound/wp-content/plugins/what_would_seth_godin_do.php on line 86

Warning: Cannot modify header information - headers already sent by (output started at /home/meewella/www/simplepound/wp-includes/cache.php:99) in /home/meewella/www/simplepound/wp-includes/feed-rss2-comments.php on line 8
Comments on: Geometric mean with negative numbers http://simplepound.meewella.com/geometric-mean-with-negative-numbers.php A trip down personal finance lane. Wed, 08 Feb 2012 01:13:15 +0000 http://wordpress.org/?v=2.5 By: Steve http://simplepound.meewella.com/geometric-mean-with-negative-numbers.php#comment-15486 Steve Thu, 01 Dec 2011 01:32:11 +0000 http://simplepound.meewella.com/?p=316#comment-15486 Yeah, this didn't work on Excel 2007 Yeah, this didn’t work on Excel 2007

]]>
By: Steve http://simplepound.meewella.com/geometric-mean-with-negative-numbers.php#comment-15485 Steve Thu, 01 Dec 2011 01:21:15 +0000 http://simplepound.meewella.com/?p=316#comment-15485 @ABC You're array formula doesn't work @ABC You’re array formula doesn’t work

]]>
By: Steve http://simplepound.meewella.com/geometric-mean-with-negative-numbers.php#comment-15484 Steve Thu, 01 Dec 2011 01:19:37 +0000 http://simplepound.meewella.com/?p=316#comment-15484 Anyone tried this on Excel 2007? Anyone tried this on Excel 2007?

]]>
By: Omar http://simplepound.meewella.com/geometric-mean-with-negative-numbers.php#comment-8754 Omar Sat, 27 Mar 2010 09:04:58 +0000 http://simplepound.meewella.com/?p=316#comment-8754 I thing those you are having trouble is for non empty data cell. Delete those two line and change the syntx if require this will work fine. I thing those you are having trouble is for non empty data cell. Delete those two line and change the syntx if require this will work fine.

]]>
By: Omar http://simplepound.meewella.com/geometric-mean-with-negative-numbers.php#comment-8753 Omar Sat, 27 Mar 2010 09:02:39 +0000 http://simplepound.meewella.com/?p=316#comment-8753 Hi thanks, This was really helpful. I copy the code and try with little changes waht I required and it worked on excel. Hi thanks,

This was really helpful. I copy the code and try with little changes waht I required and it worked on excel.

]]>
By: Ng http://simplepound.meewella.com/geometric-mean-with-negative-numbers.php#comment-6997 Ng Thu, 05 Nov 2009 06:26:41 +0000 http://simplepound.meewella.com/?p=316#comment-6997 yes , I tried your solution, but I got the following syntax error for this line: ’ compute product for non-empty data cells Please advise as above. yes , I tried your solution, but I got the following syntax error for this line: ’ compute product for non-empty data cells

Please advise as above.

]]>
By: Robin http://simplepound.meewella.com/geometric-mean-with-negative-numbers.php#comment-1595 Robin Fri, 06 Feb 2009 03:36:51 +0000 http://simplepound.meewella.com/?p=316#comment-1595 I tried your solution, but I got the following syntax error for this line: ’ compute product for non-empty data cells Please advise. I tried your solution, but I got the following syntax error for this line: ’ compute product for non-empty data cells

Please advise.

]]>
By: abc http://simplepound.meewella.com/geometric-mean-with-negative-numbers.php#comment-473 abc Tue, 15 Jul 2008 22:47:48 +0000 http://simplepound.meewella.com/?p=316#comment-473 Just a passer-by who hates VB and likes a challenge :) Just a passer-by who hates VB and likes a challenge :)

]]>
By: Kirsten http://simplepound.meewella.com/geometric-mean-with-negative-numbers.php#comment-472 Kirsten Mon, 14 Jul 2008 22:33:00 +0000 http://simplepound.meewella.com/?p=316#comment-472 So, before it keeps me up all night - who <em><strong>are</strong></em> you? Since you seem to know me, or at the very least you know P... ?! (Use the "Contact" menu entry to send me an email) Thx! :-D So, before it keeps me up all night - who are you? Since you seem to know me, or at the very least you know P… ?!

(Use the “Contact” menu entry to send me an email)

Thx! :-D

]]>
By: Kirsten http://simplepound.meewella.com/geometric-mean-with-negative-numbers.php#comment-471 Kirsten Mon, 14 Jul 2008 22:20:28 +0000 http://simplepound.meewella.com/?p=316#comment-471 Oops... I apologise. I mistook you for a friend of mine from Uni who has a habit of leaving comments with names like "ABC". I take all my swearing back and return to my polite self to say "Thanks very much. Impressive effort". I just wish you would have told me all this <em>before</em> I spent hours to come up with the code in the post... :-( Oops… I apologise. I mistook you for a friend of mine from Uni who has a habit of leaving comments with names like “ABC”. I take all my swearing back and return to my polite self to say “Thanks very much. Impressive effort”.

I just wish you would have told me all this before I spent hours to come up with the code in the post… :-(

]]>
By: abc http://simplepound.meewella.com/geometric-mean-with-negative-numbers.php#comment-470 abc Mon, 14 Jul 2008 21:06:31 +0000 http://simplepound.meewella.com/?p=316#comment-470 Doh, and I was trying to be too clever for my own good. It's actually possible to condense your 410 characters into 21. That's a decrease of 95% or 0.05 :-P =GEOMEAN((A1:A<em>N</em>+1)/1)</code> Doh, and I was trying to be too clever for my own good. It’s actually possible to condense your 410 characters into 21. That’s a decrease of 95% or 0.05 :-P

=GEOMEAN((A1:AN+1)/1)

]]>
By: abc http://simplepound.meewella.com/geometric-mean-with-negative-numbers.php#comment-469 abc Mon, 14 Jul 2008 21:03:11 +0000 http://simplepound.meewella.com/?p=316#comment-469 I don't think I am who you think I am - I'm not in academia either. However, I think it says a lot about VBA that I did manage to condense your thirty lines of code into one :-P I don’t think I am who you think I am - I’m not in academia either.

However, I think it says a lot about VBA that I did manage to condense your thirty lines of code into one :-P

]]>
By: Kirsten http://simplepound.meewella.com/geometric-mean-with-negative-numbers.php#comment-468 Kirsten Mon, 14 Jul 2008 20:49:38 +0000 http://simplepound.meewella.com/?p=316#comment-468 ARGH. Conversation over. I guess there is a reason you stayed in academia and I left... :-) Can I just repeat? ARGH. ARGH. Conversation over. I guess there is a reason you stayed in academia and I left… :-)

Can I just repeat? ARGH.

]]>
By: abc http://simplepound.meewella.com/geometric-mean-with-negative-numbers.php#comment-467 abc Mon, 14 Jul 2008 20:44:10 +0000 http://simplepound.meewella.com/?p=316#comment-467 I still think I tick all your boxes :) You just need to remember to enter array formulae with Ctrl+Shift+Enter (and you don't need to type in the curly brackets yourself - Excel adds them automatically). I still think I tick all your boxes :) You just need to remember to enter array formulae with Ctrl+Shift+Enter (and you don’t need to type in the curly brackets yourself - Excel adds them automatically).

]]>
By: Kirsten http://simplepound.meewella.com/geometric-mean-with-negative-numbers.php#comment-466 Kirsten Mon, 14 Jul 2008 20:39:51 +0000 http://simplepound.meewella.com/?p=316#comment-466 Apologies if I wasn't terribly clear... my problem basically was that I want to maintain an Excel spreadsheet with stock or fund performances on a weekly and/or monthly basis. Unfortunately stocks go down as well as up so I can't be sure that I won't have a negative value among the results. Since you can't compute the geometric mean if negative numbers are involved, I needed a way to both convert percentages to 1.x or 0.x values AND subsequently compute the mean. And I refuse to keep my stock performances as 0.9 instead of -10%. Hence I had to find a way to do the conversion in the background, "remember" the values and compute the mean of those. I see what you're trying to do with the formula, but then I'm also refusing to believe that you can express my 30 lines of code in one single line! :-D Luckily, Excel proves me right and gives me a big fat #VALUE! when I try to use your formula on my old -10% and 30% example. :-) Apologies if I wasn’t terribly clear… my problem basically was that I want to maintain an Excel spreadsheet with stock or fund performances on a weekly and/or monthly basis. Unfortunately stocks go down as well as up so I can’t be sure that I won’t have a negative value among the results.

Since you can’t compute the geometric mean if negative numbers are involved, I needed a way to both convert percentages to 1.x or 0.x values AND subsequently compute the mean. And I refuse to keep my stock performances as 0.9 instead of -10%. Hence I had to find a way to do the conversion in the background, “remember” the values and compute the mean of those.

I see what you’re trying to do with the formula, but then I’m also refusing to believe that you can express my 30 lines of code in one single line! :-D Luckily, Excel proves me right and gives me a big fat #VALUE! when I try to use your formula on my old -10% and 30% example.

:-)

]]>