PC Review


Reply
Thread Tools Rate Thread

calculate the stdev of an array using text as the criteria

 
 
Crypes
Guest
Posts: n/a
 
      24th Feb 2009
I'm trying to calculate the stdev of a tester's results and compare it with
other testers.
B4:B15 has the testers' names
C$4:C15 has the test results that I want to calculate the Stdev for.

If I put in =Sum(IF(B$4:B15="DM",C$4:C15,0)), I get the right sum
If I put in =STDEV(IF(B$4:B15="DM",C$4:C15,0)), I get a number that is
definitely not the Stdev

I am trying to avoid having to go and individually select each test result
for each tester because the cells will have to be updated each time a tester
enters a value.

If you could help, that would be great.

Thanks.

 
Reply With Quote
 
 
 
 
Mike H
Guest
Posts: n/a
 
      24th Feb 2009
Hi,

Your formula was nearly correct try this array entered

=STDEV(IF(B$4:B15="DM",C$4:C15))

This is an array formula which must be entered with CTRL+Shift+Enter and NOT
'just enter. If you do it correctly then Excel will put curly brackets around
'the formula{}. You can't type these yourself. If you Edit the ranges
'then you must re-enter as An array

Mike

"Crypes" wrote:

> I'm trying to calculate the stdev of a tester's results and compare it with
> other testers.
> B4:B15 has the testers' names
> C$4:C15 has the test results that I want to calculate the Stdev for.
>
> If I put in =Sum(IF(B$4:B15="DM",C$4:C15,0)), I get the right sum
> If I put in =STDEV(IF(B$4:B15="DM",C$4:C15,0)), I get a number that is
> definitely not the Stdev
>
> I am trying to avoid having to go and individually select each test result
> for each tester because the cells will have to be updated each time a tester
> enters a value.
>
> If you could help, that would be great.
>
> Thanks.
>

 
Reply With Quote
 
Mike H
Guest
Posts: n/a
 
      24th Feb 2009
I should have explained that the reason your formula didn't work was because
you gave it a false option for when the column b didn't = "DM" and it was
using that zero option in the STDEV calculation when DM = FALSE

leaving out the FALSE option makes it evaluate nothing when DM =FALSE

Mike


"Mike H" wrote:

> Hi,
>
> Your formula was nearly correct try this array entered
>
> =STDEV(IF(B$4:B15="DM",C$4:C15))
>
> This is an array formula which must be entered with CTRL+Shift+Enter and NOT
> 'just enter. If you do it correctly then Excel will put curly brackets around
> 'the formula{}. You can't type these yourself. If you Edit the ranges
> 'then you must re-enter as An array
>
> Mike
>
> "Crypes" wrote:
>
> > I'm trying to calculate the stdev of a tester's results and compare it with
> > other testers.
> > B4:B15 has the testers' names
> > C$4:C15 has the test results that I want to calculate the Stdev for.
> >
> > If I put in =Sum(IF(B$4:B15="DM",C$4:C15,0)), I get the right sum
> > If I put in =STDEV(IF(B$4:B15="DM",C$4:C15,0)), I get a number that is
> > definitely not the Stdev
> >
> > I am trying to avoid having to go and individually select each test result
> > for each tester because the cells will have to be updated each time a tester
> > enters a value.
> >
> > If you could help, that would be great.
> >
> > Thanks.
> >

 
Reply With Quote
 
Shane Devenshire
Guest
Posts: n/a
 
      24th Feb 2009
Hi,

In other words you should change your formula to:

=STDEV(IF(B$4:B15="DM",C$4:C15,""))
or
=STDEV(IF(B$4:B15="DM",C$4:C15))

because

=STDEV(IF(B$4:B15="DM",C$4:C15,))
or
=STDEV(IF(B$4:B15="DM",C$4:C15,0))

will return incorrect results.

All of these are Array entered - Ctrl+Shift+Enter
--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"Mike H" wrote:

> I should have explained that the reason your formula didn't work was because
> you gave it a false option for when the column b didn't = "DM" and it was
> using that zero option in the STDEV calculation when DM = FALSE
>
> leaving out the FALSE option makes it evaluate nothing when DM =FALSE
>
> Mike
>
>
> "Mike H" wrote:
>
> > Hi,
> >
> > Your formula was nearly correct try this array entered
> >
> > =STDEV(IF(B$4:B15="DM",C$4:C15))
> >
> > This is an array formula which must be entered with CTRL+Shift+Enter and NOT
> > 'just enter. If you do it correctly then Excel will put curly brackets around
> > 'the formula{}. You can't type these yourself. If you Edit the ranges
> > 'then you must re-enter as An array
> >
> > Mike
> >
> > "Crypes" wrote:
> >
> > > I'm trying to calculate the stdev of a tester's results and compare it with
> > > other testers.
> > > B4:B15 has the testers' names
> > > C$4:C15 has the test results that I want to calculate the Stdev for.
> > >
> > > If I put in =Sum(IF(B$4:B15="DM",C$4:C15,0)), I get the right sum
> > > If I put in =STDEV(IF(B$4:B15="DM",C$4:C15,0)), I get a number that is
> > > definitely not the Stdev
> > >
> > > I am trying to avoid having to go and individually select each test result
> > > for each tester because the cells will have to be updated each time a tester
> > > enters a value.
> > >
> > > If you could help, that would be great.
> > >
> > > Thanks.
> > >

 
Reply With Quote
 
T. Valko
Guest
Posts: n/a
 
      25th Feb 2009
Isn't that what Mike already said?

--
Biff
Microsoft Excel MVP


"Shane Devenshire" <(E-Mail Removed)> wrote in
message news:E7048D16-7738-4518-BEC0-(E-Mail Removed)...
> Hi,
>
> In other words you should change your formula to:
>
> =STDEV(IF(B$4:B15="DM",C$4:C15,""))
> or
> =STDEV(IF(B$4:B15="DM",C$4:C15))
>
> because
>
> =STDEV(IF(B$4:B15="DM",C$4:C15,))
> or
> =STDEV(IF(B$4:B15="DM",C$4:C15,0))
>
> will return incorrect results.
>
> All of these are Array entered - Ctrl+Shift+Enter
> --
> If this helps, please click the Yes button
>
> Cheers,
> Shane Devenshire
>
>
> "Mike H" wrote:
>
>> I should have explained that the reason your formula didn't work was
>> because
>> you gave it a false option for when the column b didn't = "DM" and it was
>> using that zero option in the STDEV calculation when DM = FALSE
>>
>> leaving out the FALSE option makes it evaluate nothing when DM =FALSE
>>
>> Mike
>>
>>
>> "Mike H" wrote:
>>
>> > Hi,
>> >
>> > Your formula was nearly correct try this array entered
>> >
>> > =STDEV(IF(B$4:B15="DM",C$4:C15))
>> >
>> > This is an array formula which must be entered with CTRL+Shift+Enter
>> > and NOT
>> > 'just enter. If you do it correctly then Excel will put curly brackets
>> > around
>> > 'the formula{}. You can't type these yourself. If you Edit the ranges
>> > 'then you must re-enter as An array
>> >
>> > Mike
>> >
>> > "Crypes" wrote:
>> >
>> > > I'm trying to calculate the stdev of a tester's results and compare
>> > > it with
>> > > other testers.
>> > > B4:B15 has the testers' names
>> > > C$4:C15 has the test results that I want to calculate the Stdev for.
>> > >
>> > > If I put in =Sum(IF(B$4:B15="DM",C$4:C15,0)), I get the right sum
>> > > If I put in =STDEV(IF(B$4:B15="DM",C$4:C15,0)), I get a number that
>> > > is
>> > > definitely not the Stdev
>> > >
>> > > I am trying to avoid having to go and individually select each test
>> > > result
>> > > for each tester because the cells will have to be updated each time a
>> > > tester
>> > > enters a value.
>> > >
>> > > If you could help, that would be great.
>> > >
>> > > Thanks.
>> > >



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
stdev of an array? Monte Milanuk Microsoft Excel Misc 5 28th Nov 2010 09:09 AM
AVERAGE, STDEV, SEM with criteria robotman Microsoft Excel Programming 0 28th Sep 2007 11:01 PM
Calculate true/false value based on array text input Christian Microsoft Excel Worksheet Functions 3 21st Mar 2007 09:28 PM
How do I run the STDEV function with multiple criteria? JLMcCracken Microsoft Excel Worksheet Functions 1 12th Aug 2006 07:45 PM
Using SUMPRODUCT or an Array to calculate formulas with multiple criteria? jim_0068 Microsoft Excel Discussion 5 14th Jun 2006 12:04 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:40 PM.