+ Reply to Thread
Results 1 to 7 of 7

Excel 2007 : standard deviation and if (FORMULA)

  1. #1
    Registered User
    Join Date
    07-17-2012
    Location
    California, USA
    MS-Off Ver
    Excel 2007
    Posts
    3

    standard deviation and if (FORMULA)

    Hi,

    I have several columns of data showing the results of income during specific events but across 8 days. Each day is represented by several columns; ABCD hold data for Monday, EFGH for Tuesday, etc. Each row represents an individual event. The event occured on one day only and is being compared to the other days at the same time.

    So, column C2 (G2, etc) contains the $ amount I want to use in the STD calculation and column A2 (E2, etc) is used to determine whether the amount is C2 is to be included. If A2 is 0 then the amount in C2 is included in the SDTEVP calculation. How do I write this formula?

    I tried this,
    Please Login or Register  to view this content.
    Math wiz/Excel guru I am not so any help would be greatly appreciated!

    Thanks so much!
    emfgirl
    Last edited by emfgirl; 07-17-2012 at 12:50 PM.

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: standard deviation and if (FORMULA)

    Hi emfgirl,

    Welcome to the forum.

    Try using below formula:-

    =STDEVP(IF(AND($A2=0,$E2=0,$I2=0),(C2,G2,K2),""))

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  3. #3
    Registered User
    Join Date
    07-17-2012
    Location
    California, USA
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: standard deviation and if (FORMULA)

    Hi dilipandey,

    Thanks for such a quick response.

    I've tried your formula and it returns the #VALUE! error. I've triple checked the formula to make sure it's applied correctly to my data but it still returns the error.

    Ideas?

    Thanks!
    emfgirl

  4. #4
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: standard deviation and if (FORMULA)

    Hi emfgirl,

    No worries.. check both the formulas in yellow and green cell in attached workbook.. thanks.

    StdDev with If function.xlsx

    Regards,
    DILIPandey

    <click on below 'star' if this helps>

  5. #5
    Registered User
    Join Date
    07-17-2012
    Location
    California, USA
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: standard deviation and if (FORMULA)

    That does it. Thanks!

  6. #6
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: standard deviation and if (FORMULA)

    Probably with a helper column each ...See attached
    Attached Files Attached Files
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  7. #7
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: standard deviation and if (FORMULA)

    you are welcome emfgirl. . .

    Cheers

    Regards,
    DILIPandey

    <click on below star if this helps>

+ 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