» Averaging Values that Correspond with the X Largest Values in a Dynamic Range
CATEGORY - Excel Formula and Function
VERSION - All Microsoft Excel Versions
Column A contains dates of recent basketball games.
Column B contains the number of points scored by a particular player during each game.
Whenever a new game is played, the relevant dates and scores are added to the sheet.
We want to create formulas that will average the most recent X number of scores for each value for X listed in column D. The formulas should automatically update whenever new data is added.
Solution:
Use the AVERAGE, IF, and LARGE functions in the following Array formula:
{=AVERAGE(IF($A$2:$A$65000>=LARGE($A$2:$A$65000,D2),$B$2:$B$65000))}
Book Store:
Recommended Books:
- Microsoft Excel Version 2002 Step by Step
- Special Edition Using Microsoft Outlook 2002
- AWAKEN THE GIANT WITHIN : HOW TO TAKE IMMEDIATE CONTROL OF YOUR MENTAL, EMOTIONAL, PHYSICAL AND FINANCIAL
- Yes, You Can Time the Market!
- Microsoft Access Version 2002 Step by Step
- Learn MS Excel 2002 VBA/XML Programming
No comments have been submitted.


