» Calculating the Average of Every Nth Value, Excluding Zeros
CATEGORY - Excel Text Formulas
VERSION - All Microsoft Excel Versions
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:
- Microsoft Outlook Version 2002 Step by Step (With CD-ROM)
- Your First Business Plan: A Simple Question and Answer Format Designed to Help You Write Your Own Plan (3rd Ed)
- The Accounting Game : Basic Accounting Fresh from the Lemonade Stand
- Special Edition Using Microsoft Excel 2002
- Business Analysis with Microsoft Excel (2nd Edition)
- AWAKEN THE GIANT WITHIN : HOW TO TAKE IMMEDIATE CONTROL OF YOUR MENTAL, EMOTIONAL, PHYSICAL AND FINANCIAL
No comments have been submitted.

