I need a formula to average a array of numbers and to take out a certain amount of highs and lows for a more accurate average. For example, 12345 take out the 1 and 5. Similar to standard deviation.