Calculating Geometric Standard Deviation with Range Including Blanks

briggss1

Board Regular
Joined
Oct 23, 2006
Messages
64
Running GSD on a series of cells that holds up to 20 values maximum, of which I want to calculate the GSD and exclude the cells in the range that are empty. Straight forward GSD formula fails if no blank value is detected.

In cells A3: T3 is a table of sample values. Not all are filled. Example, A3:C3 are: .1, 3, and 4 respectively. Running a GSD formula =EXP(STDEV(LN(A3:C3))) yields a correct GSD value of 3.82. However for the life of me I cannot remember how to run the GSD on the entire range whereby it ignores the blanks and only produces a GSD based on nonblank values.

How do I exclude the blank cells in my formula?
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
When I use your example I get 2.078425, not 3.82
See if the formula in B6 helps. Depending on your version of Excel you may need to enter the formula as an array with CTRL-SHIFT-ENTER.

Book1
ABC
1
2
3134
4
52.078425
62.078425
Sheet1
Cell Formulas
RangeFormula
B5B5=EXP(STDEV(LN(A3:C3)))
B6B6=EXP(STDEV((IF(A3:T3<>"",LN(A3:T3)))))
 
Upvote 0
That worked, thanks! Now I can do away with a whole set of hidden columns that I was using to place the LN value or text (the GSD disregards text).
 
Upvote 0

Forum statistics

Threads
1,214,897
Messages
6,122,151
Members
449,068
Latest member
shiz11713

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top