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))))
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.
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
Please read what I wrote - you need to provide links to any cross posts you have made. That's all!
Here is a cross-link to the same post in another forum:
http://www.mrexcel.com/forum/showthread.php?t=560435
Link to post at ozgrid:
http://www.ozgrid.com/forum/showthre...143#post562143
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
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.
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
That's got it!
I would have never gotten that, and I consider myself pretty good in Excel.
So thank you very much!!![]()
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
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks