+ Reply to Thread
Results 1 to 3 of 3

Stdev / offset function to ignore #N/A

  1. #1
    Forum Contributor
    Join Date
    06-25-2012
    Location
    United Kingdom
    MS-Off Ver
    Excel 2003
    Posts
    179

    Stdev / offset function to ignore #N/A

    Hi im using the formula below but it wont work if there are any n/as unfortunately due to the way the data is presented i can't get rid of the n/a's ive normally dealt with this problem by producing a macro that removes them. But in the case of this set of data it would mean deleting data in other cols.

    How can i use a formula that does the same as this but ignore n/a's? and produces the same answer.


    Please Login or Register  to view this content.
    it just calcs the stdev across the last 30 pieces of data. (or what ever i4 equals)

    Regards,
    J

  2. #2
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Stdev / offset function to ignore #N/A

    Hi,

    I'm struggling to understand how you could offset a cell in row 10 by 30 rows upwards? Are you sure the upper limit on I4 is not 10?

    Anyway, perhaps the following array formula**:

    =STDEV(IF(ISNA(N(OFFSET(AC10,-ROW(INDIRECT("1:"&$I$4))+1,,,))),"",N(OFFSET(AC10,-ROW(INDIRECT("1:"&$I$4))+1,,,))))

    Regards


    **Array formulas are not entered in the same way as 'standard' formulas. Instead of pressing just ENTER, you first hold down CTRL and SHIFT, and only then press ENTER. If you've done it correctly, you'll notice Excel puts curly brackets {} around the formula (though do not attempt to manually insert these yourself).
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  3. #3
    Valued Forum Contributor
    Join Date
    11-02-2012
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003, 2007, 2010
    Posts
    564

    Re: Stdev / offset function to ignore #N/A

    Please Login or Register  to view this content.
    Finish with Ctrl+Shift+Enter
    I kept offset value at 10, values in K1 to K10 in my workbook.

+ 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. using stdev similar to the averageif function
    By DisplacedMic in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-22-2012, 08:52 AM
  3. 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
  4. [SOLVED] Stdev function error!
    By Martin in forum Excel General
    Replies: 0
    Last Post: 04-26-2006, 02:10 AM
  5. STDEV function
    By robcunliffe in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-18-2005, 09:11 AM

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