Ghost Sheet

AVERAGEIFS: an average with two conditions

How do I average days to pay for one customer type, paid invoices only?

This is the task for this topic. It is part of the plan; the level check before it is free.
F2Type a formula for F2, starting with =

Click the sheet or the button: the task opens in your workspace, ready to type

ABCDEF
1InvoiceCustomer typeDays to payStatusTypeAverage days to pay
2INV-6201Trade21PaidRetail
3INV-6202Trade38PaidTrade
4INV-6203Retail16PaidSchool
5INV-6204School48Paid
6INV-6205Retail7Paid
7INV-6206Retail38Paid
8INV-6207Trade11Paid
9INV-6208Retail22Paid
10INV-6209Trade54Paid
11INV-6210Trade5Paid
12INV-6211Retail19Paid
dashed: the answer to reachblack: matchesblue: right after new datared: wrong

Why it works

What it does
AVERAGEIFS averages one column for the rows that meet every condition you give it, in pairs of range and condition. Use it when one test is not enough, for example a customer type and a status, so open or disputed items stay out.
The shape of the formula
=AVERAGEIFS(values to average, range 1, condition 1, range 2, condition 2)
How to remember it
In SUMIFS and AVERAGEIFS the column to add up or average always comes first.
The usual mistake
Averaging by customer type alone. Disputed and written-off invoices, open for months, drag every average up.

Keep practicing

Updated