Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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. |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]() |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
"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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
"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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
"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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
"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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do I write a VLOOKUP function that returns 0's, not neg vals? | Excel Worksheet Functions | |||
auto calc on, but have to edit (f2) cells to force re-calc..help! | Excel Worksheet Functions | |||
GEOMEAN Function | Excel Worksheet Functions | |||
How get rid of these errors if cell has no vals? | Excel Worksheet Functions | |||
Geomean range | Excel Worksheet Functions |