Module 16 · Job Tests
Report by region

Round three. Meridian sends a raw export with 16 sales lines. The task is a small report: revenue, orders and average order for each region, and the paper revenue too. The sales manager wants this report every Monday. Jamal turns the egg timer to 8 minutes.
Steps
Revenue and orders per region
SUMIFS adds up the rows that match a condition. COUNTIFS counts them. Use the region cell as the condition, so the formula works in every row.
How to do it
- Select the first cell of the report column.
- Type =SUMIFS( and the range to add up with $ signs.
- Type the condition range with $ signs, the cell with the condition and a closing bracket.
- Press Enter.
- Select the formula and the cells below it.
- Press Ctrl+D.
- COUNTIFS has no range to add up. It starts with the first pair: =COUNTIFS(range,condition).
=SUMIFS($F$5:$F$20,$C$5:$C$20,H5)Task: Count the orders of each region. Fill J5:J8 with COUNTIFS.
Average and a second condition
AVERAGEIFS works like SUMIFS, but it gives the average. SUMIFS can take more pairs of range and condition. A row counts only when all conditions match.
How to do it
- Select the first cell of the report column.
- Type =AVERAGEIFS( with the range to average first, then the pairs.
- Press Enter.
- Select the formula and the cells below it.
- Press Ctrl+D.
- For a second condition, add one more pair at the end: a range, a comma and the condition.
=AVERAGEIFS($F$5:$F$20,$C$5:$C$20,H5)Task: Fill the paper revenue in L5:L8: the revenue of each region, only for the category Paper. Use SUMIFS with two conditions.