+ Reply to Thread
Results 1 to 4 of 4

STDEV with multiple conditions

  1. #1
    Registered User
    Join Date
    04-13-2018
    Location
    Orlando, FL
    MS-Off Ver
    2010 & 2016
    Posts
    2

    STDEV with multiple conditions

    Hi all,

    I have a population of test data within which I want to analyze the distribution of the individual subsets.

    Right now I have a formula written like this:

    =STDEV.S(IF(AND(DataSheet!$S:$S=Statistics!A3,DataSheet!$AT:$AT=Statistics!B3),DataSheet!$BC:$BC))

    Here, I have two conditions specified with AND:

    DataSheet!$S:$S=Statistics!A3,DataSheet!$AT:$AT=Statistics!B3

    For the IF conditions

    IF(AND(),DataSheet!$BC:$BC)

    This should result in an array input for the formula STDEV.S... but I am getting a result of 0.

    I have done this same calculation with Matlab for verification and (obviously) the σ is not zero... I am not so great at working with Excel functions so please advise

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: STDEV with multiple conditions

    Hello and welcome to the forum.

    With arrays, AND is written by multiplying two arrays together (and add for OR).

    Since I don't have a sample sheet in front of me, all that I can do is correct the syntax for your formula. That is:

    =STDEV.S(IF((DataSheet!$S:$S=Statistics!A3)*(DataSheet!$AT:$AT=Statistics!B3),DataSheet!$BC:$BC)) Ctrl Shift Enter

    Since this is an array formula, you will want to limit your ranges instead of using whole column references (i.e. change $S:$S to something like $S$2:$S$1000).

  3. #3
    Registered User
    Join Date
    04-13-2018
    Location
    Orlando, FL
    MS-Off Ver
    2010 & 2016
    Posts
    2

    Re: STDEV with multiple conditions

    Ah, yes- totally a syntax problem.

    Thank you, best regards

  4. #4
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: STDEV with multiple conditions

    You're welcome. Happy to help.

+ 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] STDEV IF function with multiple criteria
    By thaphthia in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-26-2021, 12:30 AM
  2. STDEV multiple criteria
    By Nicole2017 in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 04-12-2017, 05:40 AM
  3. [SOLVED] Median StDEV IF Wildcards Multiple Criteria within Dates
    By almugs in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-28-2016, 02:11 PM
  4. Calculate Stdev for a group of cells based on multiple conditions
    By dsgeller in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-14-2014, 09:58 AM
  5. Replies: 3
    Last Post: 01-27-2009, 09:57 PM
  6. Averaging and STDev based upon conditions
    By KrisM27 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-21-2007, 06:45 AM
  7. How do I run the STDEV function with multiple criteria?
    By JLMcCracken in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-12-2006, 02:50 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