+ Reply to Thread
Results 1 to 4 of 4

Calculating downside deviation ignoring blank cells

  1. #1
    Registered User
    Join Date
    10-17-2012
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    8

    Calculating downside deviation ignoring blank cells

    I have created a formula to calculate the downside deviation of data set. The formula basically takes the standard deviation only of values within the data set that are below a certain threshold value. The formula works fine if there are no blank cells in the array containing the data. However, if there are blank cells the formula will assume these have a value of zero and the downside deviation calcultion will be different than if there were no blanks. I would like to adjust the formula so that it yields the same result whether or not there an any blank cells within the array.

    The current formula I am using is :

    =STDEV(IF(B2:B8<E3,B2:B8))

    where B2:B8 is the array containing the data and E3 is the threshold value. I have attached spreadsheet with a sample data set and corresponding calculations to illustrate the issue.

    Many thank in advance.
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    10-17-2012
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Calculating downside deviation ignoring blank cells

    I have still been unable to solve the problem described above and perhams this is not something that can be solved by using formulas. I would like to ask whether the problem could perhaps more easily be tackled using a macro solution?

  3. #3
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Calculating downside deviation ignoring blank cells

    Array formula should be entered with Ctrl+Shift+Enter

    Try this in E5 cell
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Hope that helps!


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  4. #4
    Registered User
    Join Date
    10-17-2012
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Calculating downside deviation ignoring blank cells

    Many thanks Sixthsense. That works perftectly! A very elegant solution indeed.

+ 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