The Problem
You need to find the average sales, but only for the 'East' region AND only for products that are 'Active'. A single AVERAGEIF can only handle one condition.
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 sales where region is 'East' and status is 'Active'.
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: AVERAGEIFS.
1. AVERAGEIFS
Calculates the average of cells that meet multiple conditions. This is the multi-criteria version of AVERAGEIF.
Syntax: =AVERAGEIFS(average_range, criteria_range1, criteria1, [criteria_range2, criteria2], ...)
- average_range: The range of cells to average (the actual values you want to average).
- criteria_range1: The first range to evaluate against criteria1.
- criteria1: The first condition that must be met (e.g., 'East', '>100', 'Active').
- [criteria_range2, criteria2]: Additional range-condition pairs (optional, can add many).
Example: Average Revenue column where Region is 'East' AND Status is 'Active'.
Understanding the Logic
- Average range: The column with values to average (Revenue).
- First condition: Check Region column for 'East'.
- Second condition: Check Status column for 'Active'.
- Result: Only averages Revenue where BOTH conditions are true.
You can add as many conditions as needed - all must be true for a row to be included in the average.
The Final Formula:
=AVERAGEIFS(C:C, A:A, "East", B:B, "Active")
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
- AVERAGEIF in Google Sheets - Average with a single condition
- SUMIFS in Google Sheets - Sum cells with multiple criteria
- COUNTIFS in Google Sheets - Count cells 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