NamssoB
Board Regular
- Joined
- Jul 8, 2005
- Messages
- 76
- Office Version
- 365
- 2016
- Platform
- Windows
Confusing title, I know...here's what I need:
I have a spreadsheet with a label in Column A, and the data is added each month in the columns to the right. For example:
What I want:
Cell A22: The label (Scheduled), then appended to this label is the Average of the last 6 values in that row. So A22 *should* say "Scheduled, 94.5 Avg", A27 should say "Consults, 47 Avg".
Using this formula below, I'm getting the wrong average and can't figure out why. What am I doing wrong on this, OR is there a better way to do this?
=CONCATENATE("Scheduled ",AVERAGE(OFFSET($A$22,0,COUNTA($B$22:$Z$22)-6,1,1)))
Also, what happens when I get more than "Z" columns of data? I can change it to ZZ, but that's temporary. is there an absolute way to just find the last column with data?
I have a spreadsheet with a label in Column A, and the data is added each month in the columns to the right. For example:
What I want:
Cell A22: The label (Scheduled), then appended to this label is the Average of the last 6 values in that row. So A22 *should* say "Scheduled, 94.5 Avg", A27 should say "Consults, 47 Avg".
Using this formula below, I'm getting the wrong average and can't figure out why. What am I doing wrong on this, OR is there a better way to do this?
=CONCATENATE("Scheduled ",AVERAGE(OFFSET($A$22,0,COUNTA($B$22:$Z$22)-6,1,1)))
Also, what happens when I get more than "Z" columns of data? I can change it to ZZ, but that's temporary. is there an absolute way to just find the last column with data?