+ Reply to Thread
Results 1 to 11 of 11

Thread: Excel 2007 Standard Deviation of non-contiguous ranges with max and min removed

  1. #1
    Registered User
    Join Date
    10-25-2010
    Location
    Ohio
    MS-Off Ver
    Excel 2003
    Posts
    10

    Excel 2007 Standard Deviation of non-contiguous ranges with max and min removed

    I have a spreadsheet where I am trying to calculate the STDEV of numbers in a non-contiguous range, with the MAX and MIN numbers taken out.
    I've named the non-contiguous range, as noted in the sample below, but I'm getting a #VALUE error. the range "month1" in the sample below, includes two columns of data (months 1 and 13).
    THANK YOU! in advance for any help.

    =STDEVP(IF(month1<>MAX(month1),IF(month1<>"",IF(month1<>MIN(month1),month1))))

  2. #2
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    Apparently I can't say
    MS-Off Ver
    Apparently I can't say
    Posts
    8,274

    Re: Excel 2007 Standard Deviation of non-contiguous ranges with max and min removed

    Your post does not comply with Rule 8 of our Forum RULES. Cross-posting is when you post the same question in other forums on the web. You'll find people are disinclined to respond to cross-posts because they may be wasting their time solving a problem that has been solved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser)to the cross-post. Expect cross-posts without a link to be closed a message will be posted by the moderator explaining why. We are here to help so help us help you!

    Read this to understand why we ask you to do this.

  3. #3
    Registered User
    Join Date
    10-25-2010
    Location
    Ohio
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: Excel 2007 Standard Deviation of non-contiguous ranges with max and min removed

    I will remove the post from Mr. Excel (if I can figure out how). PLEASE allow me to get some assistance. Innocent mistake; I didn't know cross-posting was a no-no.
    Thanks,
    Andy

  4. #4
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    Apparently I can't say
    MS-Off Ver
    Apparently I can't say
    Posts
    8,274

    Re: Excel 2007 Standard Deviation of non-contiguous ranges with max and min removed

    Please read what I wrote - you need to provide links to any cross posts you have made. That's all!

  5. #5
    Registered User
    Join Date
    10-25-2010
    Location
    Ohio
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: Excel 2007 Standard Deviation of non-contiguous ranges with max and min removed

    Here is a cross-link to the same post in another forum:

    http://www.mrexcel.com/forum/showthread.php?t=560435

  6. #6
    Registered User
    Join Date
    10-25-2010
    Location
    Ohio
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: Excel 2007 Standard Deviation of non-contiguous ranges with max and min removed


  7. #7
    Forum Moderator daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2007
    Posts
    10,056

    Re: Excel 2007 Standard Deviation of non-contiguous ranges with max and min removed

    Try this version

    =STDEV(SMALL(month1,ROW(INDIRECT("2:"&COUNT(month1)-1))))

    confirmed with CTRL+SHIFT+ENTER

    [Note that this will remove just a single instance of the MAX and MIN values - not all if those values are duplicated.......]
    Last edited by daddylonglegs; 06-28-2011 at 09:14 AM.
    Audere est facere

  8. #8
    Registered User
    Join Date
    10-25-2010
    Location
    Ohio
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: Excel 2007 Standard Deviation of non-contiguous ranges with max and min removed

    Thanks for the try, but I'm getting a DIV/0! error.
    Also, I'll need to omit duplicate MIN and MAX values from the analysis.

  9. #9
    Forum Moderator daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2007
    Posts
    10,056

    Re: Excel 2007 Standard Deviation of non-contiguous ranges with max and min removed

    Ok, the problem is that even when you define a single range to be two columns you still can't use that range in functions that don't accept two columns - in my suggested formula COUNT and SMALL will accept those.

    Try defining your ranges differently, e.g. assuming month1 is sheet1 B2:B100 and N2:N100 then change the definition to this [in "refers to" box]

    =CHOOSE({1,2},sheet1!$B$2:$B$100,sheet1!$N$2:$N$100)

    Now you can use your original formula......
    Audere est facere

  10. #10
    Registered User
    Join Date
    10-25-2010
    Location
    Ohio
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: Excel 2007 Standard Deviation of non-contiguous ranges with max and min removed

    That's got it!
    I would have never gotten that, and I consider myself pretty good in Excel.
    So thank you very much!!

  11. #11
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    Apparently I can't say
    MS-Off Ver
    Apparently I can't say
    Posts
    8,274

    Re: Excel 2007 Standard Deviation of non-contiguous ranges with max and min removed

    One last thing, please:

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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.2.0