Forum Discussion
Elli_viivi
Aug 14, 2023Copper Contributor
Problem with every 5 row average function
Hello! I have a very large table (over 45000 rows so manual calculation is not an option) and I want to calculate the averages for every 5 rows. My data starts at row 2 and the first row is title...
- Aug 14, 2023
Patrick2788 I read the request slightly differently and that they need to average every set of 5 rows (1-5, 6-10, etc...) so I suggest this:
=BYROW(WRAPROWS(values, 5),LAMBDA(vector, AVERAGE(vector)))
mtarler
Aug 14, 2023Silver Contributor
Patrick2788 I read the request slightly differently and that they need to average every set of 5 rows (1-5, 6-10, etc...) so I suggest this:
=BYROW(WRAPROWS(values, 5),LAMBDA(vector, AVERAGE(vector)))
Elli_viivi
Aug 14, 2023Copper Contributor
Thank you so much this worked!!!!
And yes I meant average of set of 5 rows 🙂
And yes I meant average of set of 5 rows 🙂