Skip to main content

How do I calculate a statistic on blocks of data?

To calculate a statistic on blocks of data (ex: mean of every 5 rows) use the following formula:

cell(index() * n + offset, ocol) = mean([index() * (n-1):index() * (n-1) + (n-1), icol: icol])

where n = the number of rows in the block, the offset is the number of rows down where the final result will be stored, ocol is the output column number and icol is the input column number.

Scroll to Top
Synergy Software
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.