Calculate an Average by Category
One column holds categories — regions, vendors, projects — and another holds numbers. You need the average for just one category, not the whole column.
Excel & Google Sheets
This formula works in both Excel and Google Sheets.
How it works
AVERAGEIF scans column A for rows equal to Sales and averages the matching rows' values from column C — everything else is ignored. The arguments read: where to look, what to match, what to average. For multiple conditions at once (region AND quarter), step up to AVERAGEIFS, which takes the average range first and then range/condition pairs, mirroring SUMIFS.
When to use it
Use it for per-group metrics: average deal size by region, average order value by customer type, average hours by project. For a full table of every category at once, a pivot table is usually faster.
Common mistakes
Did this formula help?
Engine-verified against the sample data aboveLast reviewed 2026-07-08