+ Reply to Thread
Results 1 to 4 of 4

Standard deviation if "MALE" AND not blank

  1. #1
    Registered User
    Join Date
    02-22-2018
    Location
    Brazil
    MS-Off Ver
    1801
    Posts
    41

    Standard deviation if "MALE" AND not blank

    Hello
    I have been trying to use that formula

    =STDEV.S(IF('used data'!C:C="MALE";'used data'!U:U))

    On 'used data'!C:C I have the gender, and on 'used data'!U:U I have the values I want to find the standard deviation. Apparently, the formula works fine if there are no blanks, but when there are blanks in the 'used data'!U:U column, if seems to include the blanks in the calculation (I have no blanks in the Gender column, and I tested it by removing the blanks on my values column manually).

    Then, I have tried

    =STDEV.S(IF(AND('used data'!U:U<>"";'used data'!C:C="MALE");'used data'!U:U))
    =STDEV.S(IF(AND('used data'!U:U>0;'used data'!C:C="MALE");'used data'!U:U))

    I have tried both with and without ctrl+shift+enter, to no avail.

    Does anyone know how to solve this problem?

    Best regards,
    Diogo

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Standard deviation if "MALE" AND not blank

    =STDEV.S(IF((C:C = "MALE") * (U:U <> ""), U:U))

    But I wouldn't use full-column references.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    02-22-2018
    Location
    Brazil
    MS-Off Ver
    1801
    Posts
    41

    Re: Standard deviation if "MALE" AND not blank

    thank you VERY MUCH, I was going nuts!

    Why is using full columns not recommended though?

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Standard deviation if "MALE" AND not blank

    Why do a million calculations when you need a tiny fraction of that?

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Standard Deviation for Last "n" values in a column not including blanks
    By Phillycheese5 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-27-2013, 11:16 AM
  2. how to create a "lrunning" standard deviation (for Borda's substitution method)
    By wonderdunder in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-16-2013, 11:19 AM
  3. Replies: 4
    Last Post: 07-15-2013, 02:50 PM
  4. Replies: 3
    Last Post: 05-10-2013, 07:20 AM
  5. Excel Function that differentiates "male" from "female" names with 900+ names
    By doylehargrove in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-17-2012, 06:00 PM
  6. [SOLVED] Standard deviation with "N/A" in some of the cells
    By Lv27 in forum Excel General
    Replies: 2
    Last Post: 08-21-2012, 05:28 AM
  7. Replies: 3
    Last Post: 02-16-2011, 02:55 PM
  8. Replies: 3
    Last Post: 12-14-2006, 01:36 PM

Tags for this Thread

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