Solved

Multiple AverageIf(s)

Posted on 2013-06-12
1
308 Views
Last Modified: 2013-06-12
I need to get the average for several reason codes that are in several different columns I was able to figure out how to calculate for one or two columns of data, but receive a Div/0 or #valve errror when I try to do more than a couple. Can someone help.     Attaching the workbook.  The two formulas that I was able to get were =AVERAGEIF(B1:B25,A33,A1:B25) and =AVERAGEIF(D1:F25,A34,C1:F25)
AverageIF.xlsx
0
Comment
Question by:jmac001
1 Comment
 
LVL 23

Accepted Solution

by:
NBVC earned 500 total points
ID: 39241761
You are trying to find the average of all the values that have either of the reasons listed beside them?

Try:

=SUMPRODUCT(SUMIF($B$2:$P$25,$A$30:$A$41,$A$2:$O$25))/SUMPRODUCT(COUNTIF($B$2:$P$25,$A$30:$A$41))
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Approximate matching with VLOOKUP and MATCH seems to me to be a greatly under-used technique, and one which is vital for getting good performance out of large lookups. Until recently I would always have advised using an exact match for simplicity an…
This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question