For each value of n found in column C, we want to calculate the average of every nth cell from List1. We also want to exclude any zeros from the calculation.
Use the AVERAGE, IF, MOD, and ROW functions as shown in the following Array formula:
Screenshot // Calculating the Average of Every Nth Value, Excluding Zeros
The applications/code on this site are distributed as is and without warranties or liability. In no event shall the owner of the copyrights, or the authors of the applications/code be liable for any loss of profit, any problems or any damage resulting from the use or evaluation of the applications/code.