» Calculating the Average of Every Nth Value, Excluding Zeros
CATEGORY - Excel Text Formulas
VERSION - All Microsoft Excel Versions
Problem: 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.
Solution:
Use the AVERAGE, IF, MOD, and ROW functions as shown in the following Array formula:
{=AVERAGE(IF((MOD(ROW($A$2:$A$13)-ROW($A$2)+1,C2)=0)*($A$2:$A$13<>0),$A$2:$A$13))}

Book Store:
Recommended Books:
- How to Use Financial Statements: A Guide to Understanding the Numbers
- Marketing Plans That Work, Targeting Growth and Profitability
- Absolute Beginner's Guide to Microsoft Excel 2002
- VBA for Modelers: Developing Decision Support Systems Using Microsoft« Excel
- The Fall of Advertising and the Rise of PR
- The One Page Business Plan: Start With a Vision, Build a Company!
No comments have been submitted.

