Ghost Sheet

AVERAGEIF: average only the rows that pass a test

How do I average a column but skip some rows?

It opens in your workspace. Write the formula in the sheet; when it matches, new data arrives and your formula is checked again.
F2Type a formula for F2, starting with =

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

ABCDEF
1OrderCustomerValue
2SO-7101Rowan Cafe850Average order
3SO-7102Fern & Field1,210
4SO-7103Kite Studio325
5SO-7104Wren Yoga1,250
6SO-7105Larch & Co570
7SO-7106Fern & Field175
8SO-7107Pinegate School735
9SO-7108Rowan Cafe370
10SO-7109Alder Dentists765
11SO-7110Larch & Co1,045
12SO-7111Rowan Cafe415
dashed: the answer to reachblack: matchesblue: right after new datared: wrong

Why it works

What it does
AVERAGEIF looks at one column, keeps the rows that pass a condition, and averages a second column for those rows. Use it to average by customer, by region, or to leave out a Total or Subtotal line.
The shape of the formula
=AVERAGEIF(column to test, condition, column to average)
How to remember it
Test first, average second: the condition column comes before the numbers.
The usual mistake
Putting the numbers first, as in SUM. AVERAGEIF then tests the numbers against the label and returns an error or a wrong figure.

Keep practicing

Updated