← Level 4 – Sorter

4 / 12 ⏱ 20 minutes 프리미엄

Filtering by a condition

Show only what meets a condition. Like grades better than a 3.

More than ticking boxes

In the first lesson, you filtered by ticking values. But you can also filter by a condition. Like “show only the days when I spent more than $10”.

Filter by a condition

  1. On the Money sheet, select A1:E8 and turn on the filter (Data → Create a filter).

  2. Click the icon next to Spent.

  3. Click Filter by condition and choose Greater than.

  4. Type 10 and click OK.

  5. You only see Tuesday (15) and Friday (25).

Then turn the filter off again: Data → Remove filter.

The FILTER function

You can also filter with a formula. The advantage: the original table stays whole, and the filtered data shows up somewhere else.

  1. On the Grades sheet, click on E1.

  2. Type =FILTER(A2:B6,B2:B6<=2).

  3. The subjects where you have a 1 or a 2 show up.

  4. Change Spanish to 2. Spanish shows up too.

In Excel (Microsoft 365), the function is also called FILTER.

Two conditions

You can put two conditions into FILTER too. Like the days when you got nothing and spent something:

=FILTER(Money!A2:C8,Money!B2:B8=0,Money!C2:C8>0)

⚠️

There has to be empty space under the cell with FILTER. If something’s there, the formula shows an error, because it has nowhere to put the result.

당신 차례 💪

  1. You can filter by a condition.
  2. You have a FILTER formula that shows the good grades.
  3. You know FILTER needs empty space.
✅

Done when: you can show only the data that meets a condition.

What to take away from this lesson