Apr 27 2021 11:30 AM
Hi!
I have to calculate the average sprint velocity from a table where:
- Column A = Sprint # (1 through 28 where 28 is at the top)
- Column B = sprint velocity
So based on the above table, the user will select the number of sprints he/she wants to go back for the average velocity calculation. Say the user selects 6 from the drop-down, then only the last 6 sprints' velocity should be used for the calculation of average velocity (sprints 28,27,26,25,24, and 23).
As I already had this formula working on Google Sheets, I'm trying to convert it into Excel but haven't figured out a way to do so. Apparently, the formula ROW which returns a range can't be used with AVERAGEIF like Google Sheets does...
Google Sheets formula:
=ARRAYFORMULA(AVERAGEIF(ROW(INDIRECT(Veloc_SPs))-3, "<="&F8,INDIRECT(Veloc_SPs))))
Can you please assist based on sample spreadsheet attached?
Also, please notice that I have a cell with the velocity range from column B defined as a named Range so I can use that name in my formula.
Thank you in advance!
Apr 27 2021 11:49 AM
SolutionApr 27 2021 12:14 PM
Apr 27 2021 12:32 PM
May 11 2021 12:11 AM
In my opinion, working with row numbers is a distraction created by normal spreadsheet practice; the underlying problem rarely depends on the placement of the data on the worksheet. In this case, there is a more meaningful index 'sprints' to build upon. You know how many there are and how many you wish to use; problem solved!
= AVERAGEIFS(Velocity, Sprints,">"&(COUNT(Sprints)-usedSprints))
Using range operations to identify the required data can provide a sound basis for solution building but, in this case, they are derived from the 'sprints' counter and I think simply using the counter offers a more direct approach.
Apr 27 2021 11:49 AM
Solution