Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Multiple AverageIf(s)

Posted on 2013-06-12
1
Medium Priority
?
334 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 2000 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

[Webinar] Cloud Security

In this webinar you will learn:

-Why existing firewall and DMZ architectures are not suited for securing cloud applications
-How to make your enterprise “Cloud Ready”, and fix your aging DMZ architecture
-How to transform your enterprise and become a Cloud Enabler

Question has a verified solution.

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

You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
This article describes a serious pitfall that can happen when deleting shapes using VBA.
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.

886 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