What you will build

Create a clean view that excludes rows with a blank Order ID while preserving the original import on the Raw tab. This lesson uses fictional sample data so every step can be reproduced safely.

Learning objective

Use FILTER to return only rows whose Order ID is not blank, understand each argument, verify the spill result, and recognize when a partially filled row needs manual review instead of silent removal.

Prepare the sample data

Open the source workbook below or make your own copy. The Raw tab contains the sample table; keep Raw unchanged while you work in Clean.

HANDS-ON PRACTICE

Practice in your own copy

Make your own Google Sheets copy with the same data, formulas, formatting, filter and frozen header. The original remains unchanged.

Make a Google Sheets copy (access required) ↗View original

Sign in to Google. If the original is not publicly shared, download the full workbook and import it into Google Sheets, or paste the example data into your own sheet.

Source workbook in Google Sheets with the Raw tab selected, showing Order and Amount plus the two blank rows that should be excluded from the clean result.

Open the exact source workbook in Google Sheets ↗

Work through the example

Step 1: Keep the imported table on Raw so the original data remains available for checking and recovery.

The _result workbook in Google Sheets with the Raw tab selected, showing the exact Order and Amount table referenced by the FILTER formula on Clean.

Step 2: On your copy, open Clean. Enter Order and Amount as headers in A1:B1, then select A2 for the filtering formula.

Formula to try

In Clean!A2, enter the formula below. The matching rows spill into columns A:B automatically. Do not drag the fill handle or copy the formula down; one formula in A2 is enough. Leave the spill area clear.

=FILTER(Raw!A2:B6,Raw!A2:A6<>"")
The _result workbook in Google Sheets with Clean!A2 selected; the formula bar shows FILTER and the spilled result contains O01, O02, and O03.

Checkpoint

OrderAmount
O01120
O02240
O0380

The clean result contains three rows. The two completely blank source rows do not appear.

Common mistakes and fixes

If FILTER returns an error or an unexpected row count, confirm that the formula is in Clean!A2, the spill area is empty, and the source range is exactly Raw!A2:B6 with the condition Raw!A2:A6<>"".

Independent practice

Without editing Raw, add an audit column on your copy that flags rows where Order ID is blank but Amount is present. This separates truly blank rows from incomplete records that need review.

Key takeaways

  • ✓Keep the original imported data on Raw and build the clean result separately.
  • ✓FILTER returns only source rows whose Order ID is not blank.
  • ✓The expected clean result is O01/120, O02/240, and O03/80.
  • ✓Investigate partially filled rows instead of treating them as harmless blanks.
QUICK CHECK

Check your understanding

Answer four questions about the practice sheet.

1. Why keep the imported table on Raw?
2. Which formula is used in this example?
3. How many data rows should the clean result contain?
4. What should you do if Order ID is blank but Amount is present?

Continue learning

Previous lesson: Find duplicates in a column. Next lesson: Extract first and last names.