+ Reply to Thread
Results 1 to 3 of 3

Excluding the 2 lowest and 2 highest values from a rolling STDEV

  1. #1
    Registered User
    Join Date
    11-22-2011
    Location
    DE
    MS-Off Ver
    Excel 2007
    Posts
    2

    Excluding the 2 lowest and 2 highest values from a rolling STDEV

    Currently I have written this formula which allows me to take calculate the standard deviation for a rolling 18 week range:

    =STDEV(OFFSET(INDEX('[2011 NA Weekly.xlsx]Sheet1'!$B$5:$BA$5,,COUNT('[2011 NA Weekly.xlsx]Sheet1'!$B$5:$BA$5)),,-17,1,18))


    However, I can't figure out how to exclude the two highest and two lowest values from this range. Any help is appreciated. Thanks!
    Last edited by hike22; 11-22-2011 at 04:11 PM.

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,721

    Re: Excluding the 2 lowest and 2 highest values from a rolling STDEV

    Try this

    =STDEV(SMALL(OFFSET(INDEX('[2011 NA Weekly.xlsx]Sheet1'!$B$5:$BA$5,,COUNT('[2011 NA Weekly.xlsx]Sheet1'!$B$5:$BA$5)),,-17,1,18),{3,4,5,6,7,8,9,10,11,12,13,14,15,16}))
    Audere est facere

  3. #3
    Registered User
    Join Date
    11-22-2011
    Location
    DE
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Excluding the 2 lowest and 2 highest values from a rolling STDEV

    daddylonglegs thanks so much! that worked perfectly!

+ 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