+ Reply to Thread
Results 1 to 4 of 4

calculate Standard deviation with three criteria

Hybrid View

  1. #1
    Registered User
    Join Date
    05-15-2022
    Location
    singapore
    MS-Off Ver
    365
    Posts
    4

    calculate Standard deviation with three criteria

    Hi everyone,

    I want to calculate standard deviation if it satisfy three criteria:

    If E2:E500=104 and B2:B500>=G12 and B2:B500<G13 then calculate standard deviation for C2:C500.


    Explanation:
    E2:E500 having different numbers(102,102,103,103,104,104,104) = 104(first condition)
    B2:B500 having different dates(11/02/2022,11/02/2022,12/02/2022,12/02/2022,13/02/2022,13/02/2022,13/02/2022) and G12 have one date(12/02/2022)(Second condition)
    B2:B500 having different dates(11/02/2022,11/02/2022,12/02/2022,12/02/2022,13/02/2022,13/02/2022,13/02/2022) and G13(13/02/2022) have another date(third condition)

    all three must be inculcate to calculate standard deviation for C2:C500.

    please help to write formula for this criteria.

    Thanks & regards

  2. #2
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2503
    Posts
    13,702

    Re: calculate Standard deviation with three criteria

    Welcome to the forum

    Please see the instructions for uploading a sample workbook. (Gold banner at the top of the page >>> HOW TO ATTACH YOUR SAMPLE WORKBOOK:
    Dave

  3. #3
    Valued Forum Contributor
    Join Date
    07-13-2021
    Location
    California, USA
    MS-Off Ver
    2010
    Posts
    513

    Re: calculate Standard deviation with three criteria

    Array-enter (press ctrl+shift+Enter instead of just Enter) the following formula:

    =IFERROR(STDEVP(IF(E2:E500=104, IF(B2:B500>=G12, IF(B2:B500<G13, C2:C500)))), "")

    Change STDEVP to STDEV if you want the sample std dev.

    IFERROR is prudent, just in case there are no rows (or only one row, in the case of STDEV) that meet all 3 criteria.

    In Office 365 Excel, you might no longer need to array-enter the formula; just pressing Enter might be sufficient. I don't know. But I assume ctrl+shift+Enter still works, even if it is not necessary.
    Last edited by curiouscat408; 05-15-2022 at 06:33 PM.

  4. #4
    Registered User
    Join Date
    05-15-2022
    Location
    singapore
    MS-Off Ver
    365
    Posts
    4

    Re: calculate Standard deviation with three criteria

    Thanks!
    its works!

+ 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. Formula DB.DEV.ST for calculate the deviation standard with criteria
    By Ron78 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-22-2018, 05:49 AM
  2. help to calculate standard deviation
    By lana86 in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 03-12-2015, 10:27 PM
  3. [SOLVED] VBA to calculate Standard Deviation
    By schmidtkicker in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-11-2014, 06:17 AM
  4. Calculate Standard Deviation
    By goss in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-05-2013, 05:11 AM
  5. Need a more efficient way to calculate Standard Deviation
    By StevenAlberta in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 07-24-2012, 03:17 PM
  6. Calculate one standard deviation from mean
    By missyreiber in forum Excel General
    Replies: 3
    Last Post: 09-08-2010, 11:40 AM
  7. How to calculate 2 standard deviation?
    By Li in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-12-2005, 05:06 PM

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