Back to Blog

AVERAGEIF in Excel: Complete Guide with Examples | SheetXAI

D
David DeSouza
Dec 1, 2025
Vector illustration showing two stylized human figures interacting with a large spreadsheet table. A male figure on the left holds a yellow tablet, while a female figure on the right gestures toward the table. The spreadsheet has a coral red header bar and displays a grid with dark grey and light blue horizontal bars representing data entries. The table shows alternating rows of light grey and yellow, suggesting processed or highlighted data. The scene represents collaborative data analysis and conditional averaging operations in a modern, clean design style.

The Problem

You need to find the average sales, but only for the 'East' region. A regular AVERAGE function would include all regions.

The Easy Way: Use SheetXAI

If you don't want to mess with formulas, the fastest way to do this is simply by asking.

With SheetXAI, you can open the sidebar and type:

Calculate the average revenue for the 'East' region.

SheetXAI will instantly write the formula or script for you and fill the cells. It handles the syntax so you can focus on the result.

The Manual Way: The Formulas You Need

To do this manually, you need to use: AVERAGEIF.

1. AVERAGEIF

Calculates the average of cells that meet a single condition.

Syntax: =AVERAGEIF(range, criteria, [average_range])

  • range: The range of cells to evaluate against the criteria.
  • criteria: The condition that must be met (e.g., 'East', '>100', 'Active').
  • [average_range]: The actual cells to average. If omitted, uses the range parameter.

Example: Average Revenue column where Region is 'East'.

Understanding the Logic

  1. Check the condition: Look at Region column for 'East'.
  2. If it matches: Include the corresponding Revenue value.
  3. Calculate average: Average all the matching Revenue values.

This is like SUMIF but instead of summing, it calculates the average.

The Final Formula:

=AVERAGEIF(A:A, "East", B:B)

Conclusion

Now you know the "classic" way to solve this using formulas. It's a great skill to have.

But for those times when you just want the job done without the mental math, SheetXAI is there to help.

Boost your productivity today.
Start automating your spreadsheets.

Join thousands of professionals saving hours every week. No credit card required to start.

Learn more