+ Reply to Thread
Results 1 to 4 of 4

stdev IF...

  1. #1
    Registered User
    Join Date
    11-21-2006
    Posts
    73

    stdev IF...

    I am having trouble figuring out a way to calulate the stdev of certain values.
    so- what is the stdev of values in column E if the values in column A ="A"?

    essentally I need stdev to function like SUMIF.

    Im attaching my data.

    Also, is there a function that will return the average IF. I am currently summing If, and then dividing by the countIF. is there a function that does the same thing?



    Unrelated question:
    what exactly does ctrl-shift-enter do?
    Attached Files Attached Files

  2. #2
    pinmaster
    Guest
    Hi

    You can use an array formula, something like this:

    =STDEV(IF($A$2:$A$200="A",$B$2:$B$200))
    or
    =STDEV(IF($A$2:$A$200=A2,$B$2:$B$200))

    enter using CTRL+SHIFT+ENTER....after you hit ENTER your formula should look like this {=STDEV(IF($A$2:$A$200=A2,$B$2:$B$200))} the brackets means that it is an array formula.

    you can do the same with the average formula. As for the ctrl+shift+enter, you use those key combination to enter an array formula, I'm not an expert so I won't even try to explain it I'll leave that to the experts.

    Hope this helps
    Jean-Guy

  3. #3
    Registered User
    Join Date
    11-21-2006
    Posts
    73
    works like a charm

    Thank you

  4. #4
    pinmaster
    Guest
    Hi Joshua

    If you're interested, here is a non repeating solution:

    =IF(A2=A3,"",STDEV(IF($A$2:$A$200=A2,$B$2:$B$200)))

    will only calculate on the last instance of a letter in column A

    or

    =IF(A2=A1,"",STDEV(IF($A$2:$A$200=A2,$B$2:$B$200)))

    will only calculate on the first instance of a letter in column A

    again enter using CTRL+SHIFT+ENTER

    Cheers
    Jean-Guy

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1