Skip to content
Free Excel Tutorials
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Data Analysis

  • Error Bars in Excel
  • Conditional Formatting Icon Sets Examples in Excel
  • Excel Line Chart
  • How to create dynamic reference table name in Excel
  • Excel Bar Chart

References

  • How to reference named range different sheet in Excel
  • How to use Excel OFFSET function
  • How to retrieve first match between two ranges in Excel
  • Count rows with at least n matching values
  • How to use Excel MATCH Function

Data Validations

  • Excel Data validation allow weekday only
  • Excel Data validation must contain specific text
  • Excel Data validation allow uppercase only
  • Excel Data validation whole percentage only
  • Excel Data validation number multiple 100

AVERAGEIFS function: Description, Usage, Syntax, Examples and Explanation

by

What is AVERAGEIFS function in Excel?

AVERAGEIFS function is one of Statistical functions in Microsoft Excel that returns the average (arithmetic mean) of all cells that meet multiple criteria.

Syntax of AVERAGEIFS function

AVERAGEIFS(average_range, criteria_range1, criteria1, [criteria_range2, criteria2], …)

The AVERAGEIFS function syntax has the following arguments:

  • Average_range    Required. One or more cells to average, including numbers or names, arrays, or references that contain numbers.
  • Criteria_range1, criteria_range2, …    Criteria_range1 is required, subsequent criteria_ranges are optional. 1 to 127 ranges in which to evaluate the associated criteria.
  • Criteria1, criteria2, …    Criteria1 is required, subsequent criteria are optional. 1 to 127 criteria in the form of a number, expression, cell reference, or text that define which cells will be averaged. For example, criteria can be expressed as 32, “32”, “>32”, “apples”, or B4.

AVERAGEIFS formula explanation

  • If average_range is a blank or text value, AVERAGEIFS returns the #DIV0! error value.
  • If a cell in a criteria range is empty, AVERAGEIFS treats it as a 0 value.
  • Cells in range that contain TRUE evaluate as 1; cells in range that contain FALSE evaluate as 0 (zero).
  • Each cell in average_range is used in the average calculation only if all of the corresponding criteria specified are true for that cell.
  • Unlike the range and criteria arguments in the AVERAGEIF function, in AVERAGEIFS each criteria_range must be the same size and shape as sum_range.
  • If cells in average_range cannot be translated into numbers, AVERAGEIFS returns the #DIV0! error value.
  • If there are no cells that meet all the criteria, AVERAGEIFS returns the #DIV/0! error value.
  • You can use the wildcard characters, question mark (?) and asterisk (*), in criteria. A question mark matches any single character; an asterisk matches any sequence of characters. If you want to find an actual question mark or asterisk, type a tilde (~) before the character.
Worked Example:   Average response time per month in Excel

Note: The AVERAGEIFS function measures central tendency, which is the location of the center of a group of numbers in a statistical distribution. The three most common measures of central tendency are:

  • Average     which is the arithmetic mean, and is calculated by adding a group of numbers and then dividing by the count of those numbers. For example, the average of 2, 3, 3, 5, 7, and 10 is 30 divided by 6, which is 5.
  • Median     which is the middle number of a group of numbers; that is, half the numbers have values that are greater than the median, and half the numbers have values that are less than the median. For example, the median of 2, 3, 3, 5, 7, and 10 is 4.
  • Mode     which is the most frequently occurring number in a group of numbers. For example, the mode of 2, 3, 3, 5, 7, and 10 is 3.
Worked Example:   Average by month in Excel

For a symmetrical distribution of a group of numbers, these three measures of central tendency are all the same. For a skewed distribution of a group of numbers, they can be different.

Examples of AVERAGEIFS function

Steps to follow:

1. Open a new Excel worksheet.

2. Copy data in the following table below and paste it in cell A1

Note: For formulas to show results, select them, press F2 key on your keyboard and then press Enter.

You can adjust the column widths to see all the data, if need be.

Student First Second Final
Quiz Quiz Exam
Grade Grade Grade
Emilio 75 85 87
Julie 94 80 88
Hans 86 93 Incomplete
Frederique Incomplete 75 75
Formula Description Result
=AVERAGEIFS(B2:B5, B2:B5, “>70”, B2:B5, “<90”) Average first quiz grade that falls between 70 and 90 for all students (80.5). The score marked “Incomplete” is not included in the calculation because it is not a numerical value. 75
=AVERAGEIFS(C2:C5, C2:C5, “>95”) Average second quiz grade that is greater than 95 for all students. Because there are no scores greater than 95, #DIV0! is returned. #DIV/0!
=AVERAGEIFS(D2:D5, D2:D5, “<>Incomplete”, D2:D5, “>80”) Average final exam grade that is greater than 80 for all students (87.5). The score marked “Incomplete” is not included in the calculation because it is not a numerical value. 87.5
Worked Example:   Average response time per month in Excel

Example 2

Type Price Town Number of Bedrooms Garage?
Cozy Rambler 230000 Issaquah 3 No
Snug Bungalow 197000 Bellevue 2 Yes
Cool Cape Codder 345678 Bellevue 4 Yes
Splendid Split Level 321900 Issaquah 2 Yes
Exclusive Tudor 450000 Bellevue 5 Yes
Classy Colonial 395000 Bellevue 4 No
Formula Description Result
=AVERAGEIFS(B2:B7, C2:C7, “Bellevue”, D2:D7, “>2”,E2:E7, “Yes”) Average price of a home in Bellevue that has at least 3 bedrooms and a garage 397839
=AVERAGEIFS(B2:B7, C2:C7, “Issaquah”, D2:D7, “<=3”,E2:E7, “No”) Average price of a home in Issaquah that has up to 3 bedrooms and no garage 230000

Post navigation

Previous Post:

CUBEVALUE function: Description, Usage, Syntax, Examples and Explanation

Next Post:

DVARP function: Description, Usage, Syntax, Examples and Explanation

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Learn Basic Excel

Ribbon
Workbook
Worksheets
Format Cells
Find & Select
Sort & Filter
Templates
Print
Share
Protect
Keyboard Shortcuts

Categories

  • Charts
  • Data Analysis
  • Data Validation
  • Excel Functions
    • Cube Functions
    • Database Functions
    • Date and Time Functions
    • Engineering Functions
    • Financial Functions
    • Information Functions
    • Logical Functions
    • Lookup and Reference Functions
    • Math and Trig Functions
    • Statistical Functions
    • Text Functions
    • Web Functions
  • Excel VBA
  • Excel Video Tutorials
  • Formatting
  • Grouping
  • Others

Logical Functions

  • IFERROR function: Description, Usage, Syntax, Examples and Explanation
  • IF, AND, OR and NOT Functions Examples in Excel
  • IF function: Description, Usage, Syntax, Examples and Explanation
  • XOR function: Description, Usage, Syntax, Examples and Explanation
  • How to use Excel OR Function

Date Time

  • Get first day of month in Excel
  • YEAR function: Description, Usage, Syntax, Examples and Explanation
  • Get age from birthday in Excel
  • MONTH function: Description, Usage, Syntax, Examples and Explanation
  • WEEKDAY function: Description, Usage, Syntax, Examples and Explanation

Grouping

  • Running count group by n size in Excel
  • How to randomly assign people to groups in Excel
  • Categorize text with keywords in Excel
  • Map text to numbers in Excel
  • Group numbers with VLOOKUP in Excel

General

  • Advanced Number Formats in Excel
  • How to calculate percentage discount in Excel
  • How to Insert Cells, Row and Rows in Excel
  • Lock Cells in a Worksheet Excel
  • Find, Select, Replace and Go To Special in Excel
© 2023 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning