AVERAGEIFS Function in Excel

Excel AVERAGEIFS Function

Averageifs function in excel is used to find the average from the target range of cells when there is more than one condition to be met, for a single condition we used averageif but for multiple conditions we use averageifs, it can take arguments where the first argument is the range column which average needs to be calculated and rest are the criteria range and followed by criteria.

Ok, now look at the syntax of the Excel AVERAGEIFS function, then we will move to the example section.

AVERAGEIFS Function in Excel syntax
  • Average Range: for the range of cells, we need to take the average
  • Criteria Range 1: on the basis, we need to take the average out, so in this argument, we need to select that column.
  • Criteria1: In the above mentioned Criteria Range 1 for which value we need to consider the average.
  • Criteria Range 2: this is the second criteria range to take the average out, so in this argument, we need to select that second column.
  • Criteria2: In the above mentioned Criteria Range 2 for which value we need to consider the average.

Note: Logical value TRUE or FALSE is considered as 1 and 0. Even zero value is considered for average.

Examples

You can download this AVERAGEIFS Function Excel Template here – AVERAGEIFS Function Excel Template

Example #1

Lest look the exmple.

  1. For example, assume you want to take out the average sales of the product in a particular region in a particular month, and below is the data to demonstrate.


    AVERAGEIFS Function in Excel example 1.1
    In the above data, we need to take the average of the region “North” for the month “Mar.” So here we need to look at two criteria’s to take the average out.

  2. Open AVERAGEIFS function now.

    AVERAGEIFS Function in Excel example 1.2

  3. Since we need to take the average Sales to select the “Sales” column for the Average Range argument.

    AVERAGEIFS Function in Excel example 1.3

  4. The next argument is Criteria Range 1, so select the 9*“Region” column as the reference.

    AVERAGEIFS Function in Excel example 1.4

  5. For this criteria range, we need the average of the “East” region, so mention the Criteria 1 as “East.”

    averageifs example 1.4

  6. The next argument is Criteria Range 2, so select the “Month” column as the reference.

    averageifs example 1.5

  7. Criteria 2 is from the Criteria Range 2, for which month we need to take the average out. We need average for “Mar” month, so mention this in Criteria 2.

    averageifs example 1.6

  8. Now press Enter to get the result.

    example 1.7

So, average sales for the region “East” for the month “Mar” is 2067.67.

Example #2

We can also use operator symbols in the criteria part of the Excel AVERAGEIFS function. For example, look at the below data.

example 2.1

From this data, we need to take the average sale between two dates. First, we need to take the average sales between 27-Apr-2019 to 26-May-2019, then average sales between 26-May-2019 to 17-Jun-2019.

These criteria should be supplied with the logical operator in excelLogical Operator In ExcelIn Excel, logical operators, also known as comparison operators, are used to compare two or more values. Depending on whether the condition matching is true or false, these operators return the output.read more symbols.

  • Let’s open the AVERAGEIFS function in D4 cell now.
example 2.2
  • Select the Average Range as the “Sales” column.
example 2.3
  • Next, select the Criteria Range 1 as a Date column.
example 2.5
  • Criteria 1 should be greater than 27-Apr-2019; first, mention the greater than symbol in double-quotes then combine this with D3 cell.
AVERAGEIFS Function in Excel example 2.6
  • Now again for Criteria Range 2, select the Date column.
AVERAGEIFS Function in Excel example 2.7
  • Next, Criteria 2 is we need the average sales for the date lesser than 26-May -2019. So enter less than symbol in double-quotes and combine it with E3 cell.
AVERAGEIFS Function in Excel example 2.8
  • Press the Enter key to get the average.
AVERAGEIFS Function in Excel example 2.9
  • So, average sales between 27-Apr-2019 to 26-May-2019 is 4620.8. Now similarly, we need the average sales between 25-May-2019 to 18-Jun-2019; just copy and paste the formula from D4 cell to D8 cell.
AVERAGEIFS Function in Excel example 2.10

Here we got the average sales as 3770.21. So from this, we can conclude that average sales are more in the first time period, i.e., 27-Apr-2019 to 26-May-2019.

Like this, we can use this function to take the average of numbers based on multiple criteria.

Recommended Articles

This has been a guide to AVERAGEIFS Function in Excel. Here we discuss how to calculate the average of numbers based on multiple criteria along with examples and downloadable templates. You can learn more about excel functions from the following articles –

  • 35+ Courses
  • 120+ Hours
  • Full Lifetime Access
  • Certificate of Completion
LEARN MORE >>