Hi Everyone,
Hoping to get some help with a formula.
I have a calendar spreadsheet each day is in a column and different names on the rows. I need to calculate the total of the last 7 values entered in the columns for each row. Some rows start on the first column and some do not.
Here is the formula:
=IF((COUNT(E8:AP8)=0),"",(IF((COUNT(E8:AP8)>=7),SUM(OFFSET(E8,0,COUNT(E8:AP8)-7,1,31)),SUM(E8:AP8))))
I know this formula might be a bit convoluted but it's mostly working. The only problem is that rows that the first value does not start on E8 (the first column) the formula is simply adding up all the values in that row with no offset.
Sample spreadsheet attached.
Note: I am using this formula in Google Sheets.
Bookmarks