LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Creating Custom Function: TRIMSTDEV

? application.StDev(array(1,4,3,7,8,2,3,2))
2.49284690951645

Works with an array.

--
Regards,
Tom Ogilvy

"Norvin Laudon" wrote in message
...
Hi,

I need to create a custom function similar to TRIMMEAN, but instead of
computing an average, it will compute a standard deviation. You pass it a
range, and a "percent" value to ignore at either end of the range.

I'll list the steps the function needs to perform:

1. Sort the passed range
2. Remove the lowest "percent" cells, and the highest "percent" cells from
the population.
3. Compute the STDEV on the remaining cells.

Questions:

How can I modify the range (i.e. sort it, remove cells, etc,) without
modifying the actual cells?
I could create an array from the range and modify that, but I think I

still
need to convert it back to a range to use the STDEV function...

Any tips?

Thanks,
Norvin




 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating Custom Buttons bauman78 Excel Discussion (Misc queries) 3 August 26th 09 04:23 AM
Creating a custom formula axr0284 Excel Worksheet Functions 8 February 11th 08 12:25 PM
Creating a Custom Form Shelia Excel Discussion (Misc queries) 1 December 7th 06 11:29 PM
Creating custom charts Taebaek Charts and Charting in Excel 1 November 27th 06 10:10 PM
Creating a Custom Excel Function to Calculate Gini Coefficients [email protected] Excel Worksheet Functions 3 February 21st 06 10:15 PM


All times are GMT +1. The time now is 08:26 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"