Statistical
Excel 2007
◉ 6 views
=AVERAGEIFS()
Returns the average (arithmetic mean) of all cells that meet multiple criteria.
Applies To:
Excel for Microsoft 365Excel for Microsoft 365 for MacExcel 2024Excel 2024 for MacExcel 2021Excel 2021 for MacExcel 2019Excel 2016Excel Web App
=AVERAGEIFS(average_range, criteria_range1, criteria1, [criteria_range2, criteria2], ...)
Hover argument names in the table for details.
Output typeNumber
Popularity60 / 100
VolatileNo
Dynamic ArrayNo
📥 Download sample .xlsx — Coming soon
▦ Try in Playground
Dedicated file for this function — safe & lightweight · sample data + live formulas
⬇ Download Sample Workbook
A dedicated .xlsx for =AVERAGEIFS() with Persian sample data & live formulas — open in Excel and practice.
- Sheet “Sample” — data table + formula in place
- Sheet “Guide” — syntax, arguments & tips from this page
- Instant & secure (token + rate limit)
🧠 🧠 Quiz this function
%d questions — syntax, example & errors — test yourself!
◧ Arguments
| Argument | Type | Required | Description |
|---|---|---|---|
average_range |
Any type | Required | One or more cells to average, including numbers or names, arrays, or references that contain numbers. |
criteria_range1 |
Any type | Required | , criteria_range2, … Criteria_range1 is required, subsequent criteria_ranges are optional. 1 to 127 ranges in which to evaluate the associated criteria. |
criteria1 |
Any type | Required | , 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. |
▣ Examples
میانگین نمره آزمون اول بین ۷۰ تا ۹۰ برای همه دانشآموزان (۸۰٫۵). نمرهای که «ناتمام» ثبت شده در محاسبه لحاظ نمیشود چون مقدار عددی نیست.
=AVERAGEIFS(B2:B5, B2:B5, ">70", B2:B5, "<90")
میانگین نمره آزمون دوم بزرگتر از ۹۵ برای همه دانشآموزان. چون هیچ نمرهای بزرگتر از ۹۵ نیست، خطای #DIV0! برگردانده میشود.
=AVERAGEIFS(C2:C5, C2:C5, ">95")
میانگین نمره امتحان پایانی بزرگتر از ۸۰ برای همه دانشآموزان (۸۷٫۵). نمرهای که «ناتمام» ثبت شده در محاسبه لحاظ نمیشود چون مقدار عددی نیست.
=AVERAGEIFS(D2:D5, D2:D5, "<>Incomplete", D2:D5, ">80")
میانگین قیمت خانهای در بلویو که دستکم ۳ اتاقخواب و گاراژ دارد.
=AVERAGEIFS(B2:B7, C2:C7, "Bellevue", D2:D7, ">2",E2:E7, "Yes")
میانگین قیمت خانهای در ایساکوا که حداکثر ۳ اتاقخواب دارد و گاراژ ندارد.
=AVERAGEIFS(B2:B7, C2:C7, "Issaquah", D2:D7, "<=3",E2:E7, "No")
✦ Tips
- 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 average_range.
- If cells in average_range cannot be translated into numbers, AVERAGEIFS returns the #DIV0! 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.
- 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.
- 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.
⚠ Common Errors
#DIV/0!
If there are no cells that meet all the criteria, AVERAGEIFS returns the #DIV/0! error value.
Fix: Check the criteria or handle the error with IFERROR
💬 Comments & Q&A 0 approved
🔒 Your comment will be published after review.Share your thoughts — visible after admin approval
No comments yet — be the first!