A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

find for non zero values in a column Median,Mode,STDEV



 
 
Thread Tools Display Modes
  #1  
Old June 24th, 2009, 03:53 AM posted to microsoft.public.excel.worksheet.functions
BillP
external usenet poster
 
Posts: 20
Default find for non zero values in a column Median,Mode,STDEV

Hi,
I have a column Range J2:J300. I have seen from other posts the method of
getting the average(Mean) is
=SUM(J2:J300)/COUNTIF(J2:J300,"0")

I have tried for the STDEV
=STDEV(IF(J2:J300=0,"",J2:J300))
and get #VALUE!

The sheet will have various ranges imported (It is going to be used for
determining the statistics of a packaging machine) within the main range of
J2:J300
If other users are going to have this as a template is there a way to obtain
the Median, Mode, And StDEV of the column taking only positive numbers and
ignoring zero values?

Thank You
Bill

  #2  
Old June 24th, 2009, 07:19 AM posted to microsoft.public.excel.worksheet.functions
Shane Devenshire[_3_]
external usenet poster
 
Posts: 3,333
Default find for non zero values in a column Median,Mode,STDEV

Hi,

You should enter the formula(s) as arrays - press Shfit+Ctrl+Enter.

You can also simpliy the formula to

=STDEV(IF(J2:J300,J2:J300,""))

Also an array.
--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"Billp" wrote:

Hi,
I have a column Range J2:J300. I have seen from other posts the method of
getting the average(Mean) is
=SUM(J2:J300)/COUNTIF(J2:J300,"0")

I have tried for the STDEV
=STDEV(IF(J2:J300=0,"",J2:J300))
and get #VALUE!

The sheet will have various ranges imported (It is going to be used for
determining the statistics of a packaging machine) within the main range of
J2:J300
If other users are going to have this as a template is there a way to obtain
the Median, Mode, And StDEV of the column taking only positive numbers and
ignoring zero values?

Thank You
Bill

  #3  
Old June 24th, 2009, 03:20 PM posted to microsoft.public.excel.worksheet.functions
Bassman62
external usenet poster
 
Posts: 75
Default find for non zero values in a column Median,Mode,STDEV

Hi,

To include only positive numbers in the sample;
=STDEV(IF(J2:J3000,J2:J300,""))
To commit as an array formula hold Ctrl & Shift and press Enter.

Best regards,
Dave


"Billp" wrote in message
...
Hi,
I have a column Range J2:J300. I have seen from other posts the method of
getting the average(Mean) is
=SUM(J2:J300)/COUNTIF(J2:J300,"0")

I have tried for the STDEV
=STDEV(IF(J2:J300=0,"",J2:J300))
and get #VALUE!

The sheet will have various ranges imported (It is going to be used for
determining the statistics of a packaging machine) within the main range
of
J2:J300
If other users are going to have this as a template is there a way to
obtain
the Median, Mode, And StDEV of the column taking only positive numbers and
ignoring zero values?

Thank You
Bill



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 02:05 AM.


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