Formulyo

Excel + Google Sheets · AVERAGEIF

Average only what counts

Averages only the rows that meet your condition.

The formula

=AVERAGEIF(B2:B5, "Paid", C2:C5)

What each part means

Example

Before
ABC
1InvoiceStatusAmount
2#301Paid1,200
3#302Paid900
4#303Pending700
5#304Paid450
6Avg paid
After
ABC
1InvoiceStatusAmount
2#301Paid1,200
3#302Paid900
4#303Pending700
5#304Paid450
6Avg paid850

Step by step

  1. Click cell C6.
  2. Type the formula: =AVERAGEIF(B2:B5, "Paid", C2:C5)
  3. Press Enter.

Where it works

The same formula in other languages

Get 1 formula a day, free

Plus a free weekly planner template for Excel and Google Sheets. Unsubscribe in 1 click.

✓ Done! Check your inbox to confirm.

Want ready-made templates? See the Formulyo pack →

Keep learning