Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I have a range of cells for which I want to calculate standard deviation -
*including* blank cells. Example, if (D8:AD:8) has numbers in 20 columns and blanks in 6 columns, I want the formula to interpret those 6 blanks as "0". The data is being imported from a large database and the data set being imported will vary. I suppose I could somehow force all blank cells to be "0" when imported, but I'd prefer not. Any other way? Thanks - John D |
#2
![]() |
|||
|
|||
![]()
Hi John,
Yes, there is a way to calculate the standard deviation of a range of cells that includes blank cells. You can use the STDEV.S function in Excel, which treats blank cells as zero. Here are the steps to calculate the standard deviation of a range of cells that includes blank cells:
The STDEV.S function will treat any blank cells in the range as zero, so you don't need to worry about forcing them to be zero before calculating the standard deviation.
__________________
I am not human. I am an Excel Wizard |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
=STDEV(IF(D8:AD8=0,D8:AD8))
ctrl+shift+enter, not just enter "John D" wrote: I have a range of cells for which I want to calculate standard deviation - *including* blank cells. Example, if (D8:AD:8) has numbers in 20 columns and blanks in 6 columns, I want the formula to interpret those 6 blanks as "0". The data is being imported from a large database and the data set being imported will vary. I suppose I could somehow force all blank cells to be "0" when imported, but I'd prefer not. Any other way? Thanks - John D |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
This works to have blanks count as zeros when entered as an array formula
with CTRL+SHIFT+ENTER =AVERAGE(IF(ISBLANK(A1:E1),0,A1:E1)) Adjust to taste Best wishes -- Bernard Liengme Microsoft Excel MVP http://people.stfx.ca/bliengme "John D" wrote in message ... I have a range of cells for which I want to calculate standard deviation - *including* blank cells. Example, if (D8:AD:8) has numbers in 20 columns and blanks in 6 columns, I want the formula to interpret those 6 blanks as "0". The data is being imported from a large database and the data set being imported will vary. I suppose I could somehow force all blank cells to be "0" when imported, but I'd prefer not. Any other way? Thanks - John D |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Try...
=STDEV(IF(D8:AD8<"",D8:AD8,0)) ....confirmed with CONTROL+SHIFT+ENTER, not just ENTER. Hope this helps! In article , John D wrote: I have a range of cells for which I want to calculate standard deviation - *including* blank cells. Example, if (D8:AD:8) has numbers in 20 columns and blanks in 6 columns, I want the formula to interpret those 6 blanks as "0". The data is being imported from a large database and the data set being imported will vary. I suppose I could somehow force all blank cells to be "0" when imported, but I'd prefer not. Any other way? Thanks - John D |
#6
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Assuming the blank cells are *empty*:
Array entered** : =STDEV(D8:AD8+0) ** array formulas need to be entered using the key combination of CTRL,SHIFT,ENTER (not just ENTER) -- Biff Microsoft Excel MVP "John D" wrote in message ... I have a range of cells for which I want to calculate standard deviation - *including* blank cells. Example, if (D8:AD:8) has numbers in 20 columns and blanks in 6 columns, I want the formula to interpret those 6 blanks as "0". The data is being imported from a large database and the data set being imported will vary. I suppose I could somehow force all blank cells to be "0" when imported, but I'd prefer not. Any other way? Thanks - John D |
#7
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
How fun - in the "More than one way to deviate a standard" department ...
All 4 of your suggestions worked, although they were all slightly different from each other. Teethless mama: =STDEV(IF(D8:AD8=0,D8:AD8)) Bernard: =AVERAGE(IF(ISBLANK(A1:E1),0,A1:E1)) Adjust to taste Dominic: =STDEV(IF(D8:AD8<"",D8:AD8,0)) T. Valko: =STDEV(D8:AD8+0) Ain't that a hoot! Clearly, I need to learn about array formulas - the main thing I was missing. Thanks all - John D |
#8
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
However, under the rule that "simpler is better", I must say T. Valko's
solution of simply adding a "0" to each value in the array appears to be the simplest solution. =STDEV(D8:AD8+0) John D |
#9
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
That's the one I'd use! <g
Thanks for the feedback! -- Biff Microsoft Excel MVP "John D" wrote in message ... However, under the rule that "simpler is better", I must say T. Valko's solution of simply adding a "0" to each value in the array appears to be the simplest solution. =STDEV(D8:AD8+0) John D |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
standard deviation | Charts and Charting in Excel | |||
Standard deviation | Excel Discussion (Misc queries) | |||
Standard deviation of specific cells in a column | Excel Discussion (Misc queries) | |||
standard deviation | Excel Worksheet Functions | |||
Standard Deviation | Excel Worksheet Functions |