CellSkill
Ironwood Equity
Cost review at 3pm

Pull the Sales team's average salary for the cost analysis

The CFO opens the cost review at 3pm and wants the average Sales salary on the first slide. The roster is on the left, and the small summary table on the right has 'Sales' already pinned in E2 so the formula can reference it as the criterion.

AVERAGEIFIntermediate . 3 min . Finance Basics
Lesson 6 · AVERAGEIF

Average salary by department

Intermediate~3 min
Learning objective

Practice using AVERAGEIF to solve a real finance & accounting problem. By the end, you’ll know when to reach for it and how to structure the arguments correctly.

Scenario

The CFO wants the average salary for the Sales department as part of a cost analysis. The roster sits on the left (columns A-C); the small summary table on the right has the department to query in E2 and the average lands in F2.

Goal

In F2, use AVERAGEIF to return the average salary from column C for rows where the department in column B matches E2 ('Sales').

How AVERAGEIF works

AVERAGEIF returns the average of cells in a range that meet a single condition - the arithmetic mean of just the matches, ignoring everything else. Sister function to SUMIF and COUNTIF with the same argument shape and wildcard support.

Syntax
AVERAGEIF(range, criteria, [average_range])
Read the full AVERAGEIF guide
Stuck? Reveal the hint

Try the formula first. Hints cost CP for a reason.

Average salary by department | AVERAGEIF Exercise | CellSkill