Forum Discussion
robfaas22
Feb 23, 2019Copper Contributor
SUM formula using Absolute Ref to add cells located in rows below, increments when Inserting new row
My spreadsheet will be maintaining statistics for player performance in a sports league. I will be maintaining multiple Summary Rows (1 to 4) that calculate Last 4 Weeks, Last 8 Weeks, Last 12 Weeks, and All Time statistics. I want the rows to always be the most recent week first and then going back in time sequentially for all prior weeks and I need those 4 Summary Rows to be located at the top of the spreadsheet.
So when I Insert a new row onto Row 5 - I don't want the Absolute References of the formulas in the Summary Rows (located above) to change. It needs to always remain starting with Row 5.
Unfortunately it does change. All other help sources I have gone to only deal with the scenario of the Summary Row being located below the rows being added.
I have the summary rows located at the top because I want to be able to print off these as reports for a player showing his summary rows at the top followed by the most recent weekly performance and prior weeks listed below.
- TwifooSilver ContributorAssuming you want to obtain the averages from B5:B95, representing the scores from Day 1 to Day 91, the formulas for B1:B4 are these:
B1=AVERAGE(INDEX(B:B,5):INDEX(B:B,32))
B2=AVERAGE(INDEX(B:B,5):INDEX(B:B,60))
B3=AVERAGE(INDEX(B:B,5):INDEX(B:B,88))
B4=AVERAGE(INDEX(B:B,5):INDEX(B:B,COUNTA(A:A)))
The above formulas also assume that A1:A4 contain the labels Last 4 weeks, Last 8 weeks, Last 12 weeks, and All time, respectively.- robfaas22Copper Contributor
Twifoo wrote:
Assuming you want to obtain the averages from B5:B95, representing the scores from Day 1 to Day 91, the formulas for B1:B4 are these:
B1=AVERAGE(INDEX(B:B,5):INDEX(B:B,32))
B2=AVERAGE(INDEX(B:B,5):INDEX(B:B,60))
B3=AVERAGE(INDEX(B:B,5):INDEX(B:B,88))
B4=AVERAGE(INDEX(B:B,5):INDEX(B:B,COUNTA(A:A)))
The above formulas also assume that A1:A4 contain the labels Last 4 weeks, Last 8 weeks, Last 12 weeks, and All time, respectively.Hi Twifoo,
First off, let me say that I frequent user of Excel but by no means am I a power user/expert. I have grown to be good at basic things and quite often my spreadsheets are printed as reports.
As you can see from the attachment, this is a very simple set of column additions. Each Type of Score has a different Points value, which is calculated in the Total Points column for the 4 Summary Rows. I then divide by the number of weeks to determine the 4 weeks, 8 weeks, 13 weeks and career running averages.
I use the row in between the 2 grey rows to pull in player totals from the This Week's Game Results Page (eg. Feb 20-19). I save these as separate page tabs in the same file so I have a permanent record.
On the individual Player Statistics Pages, my intention then, was to Copy / Insert that row (latest week's results) using absolute values into the Week 1 row (below 2nd grey row). Unfortunately I don't see a way to Insert with absolute values like you can using Paste. So what I am doing instead (more work) - is copy all rows from Week 1 down to the Last Week and Paste on top of Week 2. So Week 1 and Week 2 are identical temporarily. I then do a Copy / Paste (with absolute values) of Latest Week on top of Week 1.
This is quite tedious, but ideally I just wanted this to be 1 step instead of 2 as I have to do this for over 30 players.
- TwifooSilver ContributorAssuming your screenshot is in A1:U20, the formulas you need are:
F5=SUM(INDEX(F:F,12):INDEX(F:F,15))
F6=SUM(INDEX(F:F,12):INDEX(F:F,19))
F7=SUM(INDEX(F:F,12):INDEX(F:F,24))
F8=SUM(INDEX(F:F,12):INDEX(F:F,63))
F10=INDEX(F:F,12)
S5=MIN(COUNT(E12:E63),52)
S6=MIN(COUNT(E12:E63),13)
S7=MIN(COUNT(E12:E63),8)
S8=MIN(COUNT(E12:E63),4)