Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default calculate the stdev of an array using text as the criteria

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.

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default calculate the stdev of an array using text as the criteria

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.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default calculate the stdev of an array using text as the criteria

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.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,346
Default calculate the stdev of an array using text as the criteria

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.

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default calculate the stdev of an array using text as the criteria

Isn't that what Mike already said?

--
Biff
Microsoft Excel MVP


"Shane Devenshire" wrote in
message ...
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
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
Match criteria with an array of criteria JohnB Excel Worksheet Functions 4 November 18th 08 10:56 PM
stdev of an array? Monte Milanuk[_2_] Excel Discussion (Misc queries) 3 July 20th 08 12:59 AM
Calculate true/false value based on array text input Christian[_2_] Excel Worksheet Functions 3 March 21st 07 09:28 PM
How do I run the STDEV function with multiple criteria? JLMcCracken Excel Worksheet Functions 1 August 12th 06 07:45 PM
Array with two criteria ultra vires Excel Discussion (Misc queries) 2 March 3rd 06 09:26 AM


All times are GMT +1. The time now is 04:34 PM.

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

About Us

"It's about Microsoft Excel"