+ Reply to Thread
Results 1 to 2 of 2

STDEV using If(OR...)

  1. #1
    Registered User
    Join Date
    08-27-2012
    Location
    Florida, United States
    MS-Off Ver
    Excel 2007
    Posts
    1

    STDEV using If(OR...)

    Hello,

    I need to calculate a standard deviation based on an If(OR) statement. Specifically, I have two columns, COMPANY and TAT. I need to calculate the standard deviation of TAT if COMPANY is equal to 1, 2, 5, or 12. I have tried using a statement like this: =STDEV(IF(OR(COMPANY="1", COMPANY="2", COMPANY="5", COMPANY="12"), TAT)), and it returns a number but it is not correct. Also, when I change the formula to calculate STDEV for other companies, i.e. =STDEV(IF(OR(COMPANY="3", COMPANY="4", COMPANY="6", COMPANY="11"), TAT)) I get the exact same value. Can anyone help??

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: STDEV using If(OR...)

    tRY:

    =STDEV(IF(ISNUMBER(MATCH(COMPANY,{"3","4","6","11"},0)), TAT))

    Confirmed with CTRL+SHIFT+ENTER.

    Note: If the COMPANY column are actual numbers and not strings that look like numbers, then remove the quote marks from around the numbers in the formula.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

+ 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