Sarahmaths
New Member
- Joined
- Jan 20, 2025
- Messages
- 2
- Office Version
- 2019
- Platform
- Windows
Hi,
I have a set of data in which the data will gradually become less zeros. The zeros at the minute are pulling in from other tabs on my spreadsheet.
I am trying to create a rolling average of the 3 most recent tests per student. All tests are already in and the ones not done are zero, those that have been done have a number greater than zero. I need the average of the last 3 that aren't zeros.
I have tried AVERAGE(OFFSET(B3,0,COUNT(B3:K3)-3,1,3)) however this is just returning zero.
If I get rid of the zeros then this works however I need the zeros to be there to pick up the data once it has been put in.
Is there a way of combining what I have above with an averageif where the criteria is that the cell value is bigger than 0?
I have a set of data in which the data will gradually become less zeros. The zeros at the minute are pulling in from other tabs on my spreadsheet.
I am trying to create a rolling average of the 3 most recent tests per student. All tests are already in and the ones not done are zero, those that have been done have a number greater than zero. I need the average of the last 3 that aren't zeros.
I have tried AVERAGE(OFFSET(B3,0,COUNT(B3:K3)-3,1,3)) however this is just returning zero.
If I get rid of the zeros then this works however I need the zeros to be there to pick up the data once it has been put in.
Is there a way of combining what I have above with an averageif where the criteria is that the cell value is bigger than 0?