Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default Excluding "0" in standard deviations

Hi,
In calculation standard deviations I am using the formular
=SUBTOTAL(7;B2:B100) which appears to work nicely when filtering. However, it
also includes cells with "0". Can anyone tell me, how the formular needs to
be changed so only numbers "0" is included?
Many thanks in advance,
Niclas
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 793
Default Excluding "0" in standard deviations

Subtotal works only on filtered set... so you should get ther right answer if
you filter out the cells with 0.
It does include cells which are hidden... to exclude hidden cells use 107
instead of 7.

"Niclas" wrote:

Hi,
In calculation standard deviations I am using the formular
=SUBTOTAL(7;B2:B100) which appears to work nicely when filtering. However, it
also includes cells with "0". Can anyone tell me, how the formular needs to
be changed so only numbers "0" is included?
Many thanks in advance,
Niclas

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default Excluding "0" in standard deviations

Thanks, filtering is of course a possibility. I hadn't thought of that.
But is there also a clever way to have this done automatically? I have a
great number of columns where I need to calculate std.dev., so this would be
much preferable, not least as I will also be filtering on other criteria.

Niclas

"Sheeloo" skrev:

Subtotal works only on filtered set... so you should get ther right answer if
you filter out the cells with 0.
It does include cells which are hidden... to exclude hidden cells use 107
instead of 7.

"Niclas" wrote:

Hi,
In calculation standard deviations I am using the formular
=SUBTOTAL(7;B2:B100) which appears to work nicely when filtering. However, it
also includes cells with "0". Can anyone tell me, how the formular needs to
be changed so only numbers "0" is included?
Many thanks in advance,
Niclas

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,104
Default Excluding "0" in standard deviations

Do you really need to use SUBTOTAL?

How about =STDEV(IF(A1:A80,A1:A8)) which is an array formula and must be
entered with CTRL+SHIFT+ENTER
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"Niclas" wrote in message
...
Hi,
In calculation standard deviations I am using the formular
=SUBTOTAL(7;B2:B100) which appears to work nicely when filtering. However,
it
also includes cells with "0". Can anyone tell me, how the formular needs
to
be changed so only numbers "0" is included?
Many thanks in advance,
Niclas



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default Excluding "0" in standard deviations

Thanks, I've already tried this formula, but it returns a value for the full
dataset (0), irrespective of any filtering. The subtotal on the other hand
does respect the filtering, yet also includes the "0". So at this point, none
of the two alternative fulfill my needs. Hope you can help with another
option.

Niclas

"Bernard Liengme" skrev:

Do you really need to use SUBTOTAL?

How about =STDEV(IF(A1:A80,A1:A8)) which is an array formula and must be
entered with CTRL+SHIFT+ENTER
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"Niclas" wrote in message
...
Hi,
In calculation standard deviations I am using the formular
=SUBTOTAL(7;B2:B100) which appears to work nicely when filtering. However,
it
also includes cells with "0". Can anyone tell me, how the formular needs
to
be changed so only numbers "0" is included?
Many thanks in advance,
Niclas




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 can I alphabetize data excluding words like "a" and "the"? Faith Excel Discussion (Misc queries) 6 November 11th 09 05:50 PM
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
Count Common Denominator, but excluding "#value!" Jman Excel Worksheet Functions 4 April 2nd 08 08:35 PM
Standard font in a "New Microsoft Excel Worksheet.xls" wont change Prunetart Excel Discussion (Misc queries) 0 September 15th 06 10:36 AM
Count occurences of "1"/"0" (or"TRUE"/"FALSE") in a row w. conditions in the next BCB New Users to Excel 7 May 13th 06 10:02 PM


All times are GMT +1. The time now is 09:22 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"