ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Need help with a formula (https://www.excelbanter.com/excel-worksheet-functions/448505-need-help-formula.html)

dpsgolfer

Need help with a formula
 
I hope someone can help me with this! I am trying to create a formula that will select the last 10 numbers in a row then drop the highest and the lowest number and return an average for the remaining 8 numbers. Row 1 on the worksheet is a list of dates and row 2 is a number for that date. Not all cells in row 2 have data in them some are blank and should not count in when retrieving the last 10.

Any help with this would be great!

Spencer101

Quote:

Originally Posted by dpsgolfer (Post 1610756)
I hope someone can help me with this! I am trying to create a formula that will select the last 10 numbers in a row then drop the highest and the lowest number and return an average for the remaining 8 numbers. Row 1 on the worksheet is a list of dates and row 2 is a number for that date. Not all cells in row 2 have data in them some are blank and should not count in when retrieving the last 10.

Any help with this would be great!


When you say "last 10", do you mean the last 10 dates with a number in row 2?

dpsgolfer

Quote:

Originally Posted by Spencer101 (Post 1610774)
When you say "last 10", do you mean the last 10 dates with a number in row 2?

That is correct.

Ron Rosenfeld[_2_]

Need help with a formula
 
On Fri, 29 Mar 2013 22:19:18 +0000, dpsgolfer wrote:


I hope someone can help me with this! I am trying to create a formula
that will select the last 10 numbers in a row then drop the highest and
the lowest number and return an average for the remaining 8 numbers. Row
1 on the worksheet is a list of dates and row 2 is a number for that
date. Not all cells in row 2 have data in them some are blank and should
not count in when retrieving the last 10.

Any help with this would be great!


This formula must be **array-entered**:

=AVERAGE(LARGE(INDIRECT(ADDRESS(2,LARGE(ISNUMBER($ 2:$2)*
COLUMN($2:$2),{1,2,3,4,5,6,7,8,9,10}))),{2,3,4,5,6 ,7,8,9}))

----------------------------------------

To **array-enter** a formula, after entering
the formula into the cell or formula bar, hold down
<ctrl<shift while hitting <enter. If you did this
correctly, Excel will place braces {...} around the formula.


All times are GMT +1. The time now is 02:26 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com