+ Reply to Thread
Results 1 to 4 of 4

STDEV of values from last 6 months.

  1. #1
    Registered User
    Join Date
    01-22-2014
    Location
    Australai
    MS-Off Ver
    Excel 2003(Work) Excel 2011 (Home)
    Posts
    6

    STDEV of values from last 6 months.

    Hi all,

    I have large range of dates each column a with mean strength test results in coloumn D.

    Any ideas on how i can calculate stdev of values from all results in previous six months from date shown in column a?

    I want to do this at end of every month. but date range is dynamic and changes as number of tests is not consitant.

    Cheers
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    06-26-2010
    Location
    Austin, TX
    MS-Off Ver
    Excel 2010
    Posts
    1,673

    Re: STDEV of values from last 6 months.

    Try this in E10:
    =STDEV(IF($A$9:A10-A10>=-180,$D$9:D10,""))
    Use Ctrl-Shift-Enter so that it is entered as an array formula. Then drag down the rest of your data.

    I 'cheated' for this proof of concept, the 180 is my simple 6 month check. If this looks like it is working for you, then I would recommend improving that check to something more accurate (DATEDIF?).
    Pauley
    --------
    If I helped with your issue, I'd appreciate a rep bump (hit the '*' icon to the bottom left of this post).

  3. #3
    Registered User
    Join Date
    01-22-2014
    Location
    Australai
    MS-Off Ver
    Excel 2003(Work) Excel 2011 (Home)
    Posts
    6

    Re: STDEV of values from last 6 months.

    Thanks Pauley,

    works will with estimate of six months. Cant figure out how to incorporate dateif into function. and one got ideas?

    Cheers

    Kym

  4. #4
    Forum Expert
    Join Date
    06-26-2010
    Location
    Austin, TX
    MS-Off Ver
    Excel 2010
    Posts
    1,673

    Re: STDEV of values from last 6 months.

    This should do it (again, enter the formula with ctrl-shift-enter):
    =STDEV(IF(DATEDIF($A$9:A10,A10,"m")<=6,$D$9:D10,""))

    Be warned. This is an array formula, and as the list gets longer, this calculation could tie up some resources and CPU cycles.

+ 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. Replies: 2
    Last Post: 12-01-2011, 08:36 AM
  2. Calculating stdev when values include #n/a
    By macaonghus in forum Excel General
    Replies: 2
    Last Post: 09-14-2009, 08:52 AM
  3. AVERAGE and STDEV of values that were included in COUNTIFS
    By sstecklein in forum Excel General
    Replies: 1
    Last Post: 08-28-2009, 06:09 PM
  4. Replies: 3
    Last Post: 01-27-2009, 09:57 PM
  5. Replies: 2
    Last Post: 07-16-2007, 10:54 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