AVERAGEIF & AVERAGEIFS in Excel

Learn how to use AVERAGEIF and AVERAGEIFS in Excel to calculate conditional averages with real-life examples and simple explanations.

Sometimes, calculating the average of all values is not enough—you want the average of values that meet specific conditions. That’s where Excel’s AVERAGEIF and AVERAGEIFS Functions come in.

These powerful tools let you filter your data based on one or more criteria before calculating the average. In this guide, we’ll explain both functions in an easy-to-understand way, with real-life examples and formulas that you can start using right away.


1. AVERAGEIF Function in Excel

Syntax:

=AVERAGEIF(range, criteria, [average_range])

  • range: The range of cells to apply the condition.
  • criteria: The condition to check.
  • average_range: (Optional) The actual range of numbers to average.

Example 1: Average Sales of a Specific Region

RegionSales
North5000
South7000
North8000
East6000

Formula:

=AVERAGEIF(A2:A5, “North”, B2:B5)

Result: 6500

Real-Life Use Case:

Find the average salary, score, or sales for a single condition like department, product category, or region.

Also Read: Excel AVERAGE Function


2. AVERAGEIFS Function in Excel

Syntax:

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

  • average_range: The range of numbers to average.
  • criteria_range1, criteria1: The first range and its condition.
  • You can add multiple criteria ranges.

Example 2: Average Sales for “North” Region in Q1

RegionQuarterSales
NorthQ15000
SouthQ17000
NorthQ28000
NorthQ16000

Formula:

=AVERAGEIFS(C2:C5, A2:A5, “North”, B2:B5, “Q1”)

Result: 5500

Real-Life Use Case:

Calculate the average of:

  • Sales in a region during a specific quarter
  • Marks of students by subject and gender
  • Attendance filtered by team and month

3. Key Differences Between AVERAGEIF and AVERAGEIFS

FeatureAVERAGEIFAVERAGEIFS
Number of CriteriaOneMultiple
Introduced InExcel 2007Excel 2007
Use CaseSimple filteringComplex filtering

4. Additional Real-Life Examples

Example 3: AVERAGEIF – Average Score for Passed Students

StudentScore
Ravi78
Neha45
Karan82
Simran38

=AVERAGEIF(B2:B5, “>=50”)

Result: 80

Example 4: AVERAGEIFS – Average Salary for IT Team in Delhi

AVERAGEIF and AVERAGEIFS in Excel
Average Salary for IT Team in Delhi = 60000
DepartmentLocationSalary
ITDelhi55000
HRDelhi40000
ITMumbai60000
ITDelhi65000

=AVERAGEIFS(C2:C5, A2:A5, “IT”, B2:B5, “Delhi”)

Result: 60000


5. Common Errors and Tips

  • Use correct cell ranges of equal size.
  • Enclose text criteria in double quotes (e.g., "North").
  • Use comparison operators like ">10000" in quotes.
  • If no value matches the condition, result is #DIV/0! error.

Summary

Excel’s AVERAGEIF and AVERAGEIFS Functions help you analyze data more intelligently by applying conditions to your averages. Whether you’re working in HR, Sales, Finance, or Academics, these functions can simplify your reports and help you make better data-driven decisions.


FAQs

The formula will return an #DIV/0! error because it tries to divide by zero.

Yes. Use ">=01-01-2024" and "<=31-12-2024" as your criteria in AVERAGEIFS.

  • AVERAGE: No condition
  • AVERAGEIF: One condition
  • AVERAGEIFS: Multiple conditions


What’s Next?

In the next post, we’ll learn about the Index and Match in Excel

Spread the love

Leave a Comment

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

Translate »
Scroll to Top