Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Why do I get #NUM! for a GEOMEAN calc on a set of positive vals

I have a set of around 400 values in a sheet which range between 1 and
200,000. When I try to calculate the GEOMEAN value I get a #NUM! result. If I
calculate the accumulating GEOMEAN (A1:A1, A1:A2, A1:A3 etc.) I find that the
#NUM! starts when I hit the 174th item, which looks normal at about 139. If I
calculate the GEOMEAN in chunks of 50 values (A1:A50, A2:A51, A3:A52 ...
A150:A199 etc.) the calculation goes past this 174th item with no problems.
If I manually edit the value, I can set it to any number from 0 to 51 and
the calculation will take place correctly; however, the #NUM! returns at the
calculation of the 175th item.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Why do I get #NUM! for a GEOMEAN calc on a set of positive vals

Yoe get a NUM error if the dataset includes negative values, zeroes or (and
most likely) with a very large dataset you are hitting a number larger than
Excel can handle so it bombs with a NUM error.

use instead

=EXP(AVERAGE(LN(A1:A300)))

Entered as an array ctrl+shift+enter. It will wobble for neg's and zeroes
but overcomes the Excel max va,ue problem.

Mike

"Nick Curties" wrote:

I have a set of around 400 values in a sheet which range between 1 and
200,000. When I try to calculate the GEOMEAN value I get a #NUM! result. If I
calculate the accumulating GEOMEAN (A1:A1, A1:A2, A1:A3 etc.) I find that the
#NUM! starts when I hit the 174th item, which looks normal at about 139. If I
calculate the GEOMEAN in chunks of 50 values (A1:A50, A2:A51, A3:A52 ...
A150:A199 etc.) the calculation goes past this 174th item with no problems.
If I manually edit the value, I can set it to any number from 0 to 51 and
the calculation will take place correctly; however, the #NUM! returns at the
calculation of the 175th item.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Why do I get #NUM! for a GEOMEAN calc on a set of positive val

Thanks for the reply. When I use the formula you provided, I get a #VALUE!
result. All the values I'm using are positive and I have tried copying the
values to a different area to ensure there is nothing strange in any of the
cells and rounding to the nearest integer. For information, the Geometric
mean is just below 60 when the error occurs.

"Mike H" wrote:

Yoe get a NUM error if the dataset includes negative values, zeroes or (and
most likely) with a very large dataset you are hitting a number larger than
Excel can handle so it bombs with a NUM error.

use instead

=EXP(AVERAGE(LN(A1:A300)))

Entered as an array ctrl+shift+enter. It will wobble for neg's and zeroes
but overcomes the Excel max va,ue problem.

Mike

"Nick Curties" wrote:

I have a set of around 400 values in a sheet which range between 1 and
200,000. When I try to calculate the GEOMEAN value I get a #NUM! result. If I
calculate the accumulating GEOMEAN (A1:A1, A1:A2, A1:A3 etc.) I find that the
#NUM! starts when I hit the 174th item, which looks normal at about 139. If I
calculate the GEOMEAN in chunks of 50 values (A1:A50, A2:A51, A3:A52 ...
A150:A199 etc.) the calculation goes past this 174th item with no problems.
If I manually edit the value, I can set it to any number from 0 to 51 and
the calculation will take place correctly; however, the #NUM! returns at the
calculation of the 175th item.

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Why do I get #NUM! for a GEOMEAN calc on a set of positive val

Did you enter it as an array?

Type the formula then with the cursor still in the formula bar hit

Ctrl+Shift+Enter

Mike

"Nick Curties" wrote:

Thanks for the reply. When I use the formula you provided, I get a #VALUE!
result. All the values I'm using are positive and I have tried copying the
values to a different area to ensure there is nothing strange in any of the
cells and rounding to the nearest integer. For information, the Geometric
mean is just below 60 when the error occurs.

"Mike H" wrote:

Yoe get a NUM error if the dataset includes negative values, zeroes or (and
most likely) with a very large dataset you are hitting a number larger than
Excel can handle so it bombs with a NUM error.

use instead

=EXP(AVERAGE(LN(A1:A300)))

Entered as an array ctrl+shift+enter. It will wobble for neg's and zeroes
but overcomes the Excel max va,ue problem.

Mike

"Nick Curties" wrote:

I have a set of around 400 values in a sheet which range between 1 and
200,000. When I try to calculate the GEOMEAN value I get a #NUM! result. If I
calculate the accumulating GEOMEAN (A1:A1, A1:A2, A1:A3 etc.) I find that the
#NUM! starts when I hit the 174th item, which looks normal at about 139. If I
calculate the GEOMEAN in chunks of 50 values (A1:A50, A2:A51, A3:A52 ...
A150:A199 etc.) the calculation goes past this 174th item with no problems.
If I manually edit the value, I can set it to any number from 0 to 51 and
the calculation will take place correctly; however, the #NUM! returns at the
calculation of the 175th item.



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Why do I get #NUM! for a GEOMEAN calc on a set of positive val

No, but when I did I got the required result; thanks very much. I've never
used arrays before, so this gives me something new to play with.

Thanks again.
Nick

"Mike H" wrote:

Did you enter it as an array?

Type the formula then with the cursor still in the formula bar hit

Ctrl+Shift+Enter

Mike

"Nick Curties" wrote:

Thanks for the reply. When I use the formula you provided, I get a #VALUE!
result. All the values I'm using are positive and I have tried copying the
values to a different area to ensure there is nothing strange in any of the
cells and rounding to the nearest integer. For information, the Geometric
mean is just below 60 when the error occurs.

"Mike H" wrote:

Yoe get a NUM error if the dataset includes negative values, zeroes or (and
most likely) with a very large dataset you are hitting a number larger than
Excel can handle so it bombs with a NUM error.

use instead

=EXP(AVERAGE(LN(A1:A300)))

Entered as an array ctrl+shift+enter. It will wobble for neg's and zeroes
but overcomes the Excel max va,ue problem.

Mike

"Nick Curties" wrote:

I have a set of around 400 values in a sheet which range between 1 and
200,000. When I try to calculate the GEOMEAN value I get a #NUM! result. If I
calculate the accumulating GEOMEAN (A1:A1, A1:A2, A1:A3 etc.) I find that the
#NUM! starts when I hit the 174th item, which looks normal at about 139. If I
calculate the GEOMEAN in chunks of 50 values (A1:A50, A2:A51, A3:A52 ...
A150:A199 etc.) the calculation goes past this 174th item with no problems.
If I manually edit the value, I can set it to any number from 0 to 51 and
the calculation will take place correctly; however, the #NUM! returns at the
calculation of the 175th item.

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Why do I get #NUM! for a GEOMEAN calc on a set of positive val

Yor welcome and thanks for the feedback

"Nick Curties" wrote:

No, but when I did I got the required result; thanks very much. I've never
used arrays before, so this gives me something new to play with.

Thanks again.
Nick

"Mike H" wrote:

Did you enter it as an array?

Type the formula then with the cursor still in the formula bar hit

Ctrl+Shift+Enter

Mike

"Nick Curties" wrote:

Thanks for the reply. When I use the formula you provided, I get a #VALUE!
result. All the values I'm using are positive and I have tried copying the
values to a different area to ensure there is nothing strange in any of the
cells and rounding to the nearest integer. For information, the Geometric
mean is just below 60 when the error occurs.

"Mike H" wrote:

Yoe get a NUM error if the dataset includes negative values, zeroes or (and
most likely) with a very large dataset you are hitting a number larger than
Excel can handle so it bombs with a NUM error.

use instead

=EXP(AVERAGE(LN(A1:A300)))

Entered as an array ctrl+shift+enter. It will wobble for neg's and zeroes
but overcomes the Excel max va,ue problem.

Mike

"Nick Curties" wrote:

I have a set of around 400 values in a sheet which range between 1 and
200,000. When I try to calculate the GEOMEAN value I get a #NUM! result. If I
calculate the accumulating GEOMEAN (A1:A1, A1:A2, A1:A3 etc.) I find that the
#NUM! starts when I hit the 174th item, which looks normal at about 139. If I
calculate the GEOMEAN in chunks of 50 values (A1:A50, A2:A51, A3:A52 ...
A150:A199 etc.) the calculation goes past this 174th item with no problems.
If I manually edit the value, I can set it to any number from 0 to 51 and
the calculation will take place correctly; however, the #NUM! returns at the
calculation of the 175th item.

  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,231
Default Why do I get #NUM! for a GEOMEAN calc on a set of positive vals

"Mike H" wrote...
Yoe get a NUM error if the dataset includes negative values, zeroes or (and
most likely) with a very large dataset you are hitting a number larger than
Excel can handle so it bombs with a NUM error.

use instead

=EXP(AVERAGE(LN(A1:A300)))

....

FWIW, you could use

=EXP(SUMPRODUCT(LN(A1:A300)/COUNT(A1:A300)))

which doesn't require array entry and should provide more precision (only
one decimal place given the OP's range of values).


  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,231
Default Why do I get #NUM! for a GEOMEAN calc on a set of positive vals

"Ron Rosenfeld" wrote...
....
. . . I don't know what algorithm Excel uses to
calculate GEOMEAN, but if it something like

=POWER(PRODUCT(A1:An),1/COUNT(A1:An))

....

Bingo!

And, FWIW, Gnumeric used the same algorithm until a few people (me included)
pointed out its shortcomings. The Gnumeric team fixed it. And OpenOffice
Calc has always used a better algorithm. Will Microsoft ever fix Excel's
GEOMEAN?


  #10   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,651
Default Why do I get #NUM! for a GEOMEAN calc on a set of positive vals

On Sat, 23 Jun 2007 12:55:46 -0700, "Harlan Grove" wrote:

Will Microsoft ever fix Excel's GEOMEAN?


I guess I won't hold my breath waiting!

But wait -- they did change the LINEST algorithm after, what, 15+ years?
--ron


  #11   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,231
Default Why do I get #NUM! for a GEOMEAN calc on a set of positive vals

"Ron Rosenfeld" wrote...
On Sat, 23 Jun 2007 12:55:46 -0700, "Harlan Grove"
wrote:
Will Microsoft ever fix Excel's GEOMEAN?


I guess I won't hold my breath waiting!

But wait -- they did change the LINEST algorithm after, what, 15+ years?


Yeah, but that was after a substantial amount of journal articles had
pointed out just how bad Excel's regression functions were. I doubt
researchers are going to waste their time picking on GEOMEAN. That's my job
(along with MOD).


  #12   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,651
Default Why do I get #NUM! for a GEOMEAN calc on a set of positive vals

On Sat, 23 Jun 2007 13:32:37 -0700, "Harlan Grove" wrote:

"Ron Rosenfeld" wrote...
On Sat, 23 Jun 2007 12:55:46 -0700, "Harlan Grove"
wrote:
Will Microsoft ever fix Excel's GEOMEAN?


I guess I won't hold my breath waiting!

But wait -- they did change the LINEST algorithm after, what, 15+ years?


Yeah, but that was after a substantial amount of journal articles had
pointed out just how bad Excel's regression functions were. I doubt
researchers are going to waste their time picking on GEOMEAN. That's my job
(along with MOD).


Yes, I was being facetious. And I applaud your efforts.

One of the inexplicable facts, to me, was that they already had access to a
pretty good algorithm in the graphing module.
--ron
  #13   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,231
Default Why do I get #NUM! for a GEOMEAN calc on a set of positive vals

"Ron Rosenfeld" wrote...
....
One of the inexplicable facts, to me, was that they already had access to a
pretty good algorithm in the graphing module.


Which implies that the graphics team reinvented the wheel, but happily they
decided to make it round rather than rectangular.


  #14   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 837
Default Why do I get #NUM! for a GEOMEAN calc on a set of positive val

Which [chart trendline] they "improved" in 2007 to the point that it is no
longer trustworthy
http://groups.google.com/group/micro...353c068ee07b94
http://groups.google.com/group/micro...28cd532baaa078
http://groups.google.com/group/micro...752db0fedc2cbf

Jerry

"Ron Rosenfeld" wrote:
....
One of the inexplicable facts, to me, was that they already had access to a
pretty good algorithm in the graphing module.

  #15   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,651
Default Why do I get #NUM! for a GEOMEAN calc on a set of positive val

On Mon, 25 Jun 2007 05:11:01 -0700, Jerry W. Lewis
wrote:

Which [chart trendline] they "improved" in 2007 to the point that it is no
longer trustworthy
http://groups.google.com/group/micro...353c068ee07b94
http://groups.google.com/group/micro...28cd532baaa078
http://groups.google.com/group/micro...752db0fedc2cbf

Jerry

"Ron Rosenfeld" wrote:
...
One of the inexplicable facts, to me, was that they already had access to a
pretty good algorithm in the graphing module.



I have Office 2007 (free upgrade for me) sitting on my desk and have been
hesitant to install it. You've just brought up another reason!
--ron
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
How do I write a VLOOKUP function that returns 0's, not neg vals? dbsavoy Excel Worksheet Functions 4 August 24th 06 05:26 PM
auto calc on, but have to edit (f2) cells to force re-calc..help! Curt Excel Worksheet Functions 3 February 13th 06 06:05 PM
GEOMEAN Function KD Excel Worksheet Functions 8 January 28th 06 09:02 AM
How get rid of these errors if cell has no vals? Jay Excel Worksheet Functions 3 March 4th 05 08:07 PM
Geomean range Stephen Excel Worksheet Functions 5 January 19th 05 08:23 PM


All times are GMT +1. The time now is 11:00 AM.

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"