This was really helpful. I copy the code and try with little changes waht I required and it worked on excel.
]]>Please advise as above.
]]>Please advise.
]]>(Use the “Contact” menu entry to send me an email)
Thx! ![]()
I just wish you would have told me all this before I spent hours to come up with the code in the post… ![]()
=GEOMEAN((A1:AN+1)/1)
]]>However, I think it says a lot about VBA that I did manage to condense your thirty lines of code into one ![]()
Can I just repeat? ARGH.
]]>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!
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.
![]()