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
- Check the condition: Look at Region column for 'East'.
- If it matches: Include the corresponding Revenue value.
- 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.
Related Guides
- SUMIF in Google Sheets - Sum cells based on criteria
- COUNTIF in Google Sheets - Count cells based on criteria
- AVERAGEIFS in Google Sheets - Average with multiple criteria
- Google Sheets AI Guide - Learn how AI can automate your Google Sheets workflows
- AI Spreadsheet Tools - Discover how AI transforms spreadsheet work