frisket DocsSearch

How-to guides

Clean a column and join two sheets

Keep the original values, clean a matching key in a separate column, then combine rows from two sheets.

Clean the key in a separate column

Joining combines two sheets by matching a column they share, such as an agency name in a payments sheet and in a budget sheet. The match has to be exact: "Dept. of Health" and "Department of Health" won't pair up, and neither will "HEALTH" and "Health". Real data is full of these differences, so clean the column first.

Clean column makes a tidied copy of a column. The original stays as it is, so you can always check what changed.

  1. Import both tables into the same project.
  2. In the first sheet, on the Transform tab, click Clean column.
  3. Under Column, choose the column you'll match on.
  4. Under Case, keep Fix capitalization (names & titles).
  5. Under Cleanings, keep the defaults to start. They blank placeholder values such as "n/a" and "unknown", expand common abbreviations, and merge values that differ only in capitalization, punctuation, accents or word order. With the defaults, "NEW YORK dept. of health" becomes "New York Department of Health".
  6. Result names the new column, such as agency_clean.
Clean column: the column, case, cleanings and result column

Click Run. Cleaning runs where Frisket runs, with no model and no charge.

Then compare the original and cleaned columns. Look for:

The original agency values beside the cleaned ones; N/A became blank

Do the same to the matching column in the other sheet, so both sides are cleaned the same way.

Choose the sheets and matching columns

With the first sheet open, on the Tables tab, click Join sheets (by key).

Join tables: right sheet, key pairs, columns and join type

The join makes a new sheet; neither original changes.

If names are too varied for cleaning to fix, such as "IBM" and "International Business Machines", try Semantic join instead. It matches values that mean the same thing and gives each match a score to check.

Inspect the preview

Click Preview to see the joined rows before saving. Check:

A preview of the joined rows

Change the settings and preview again until it looks right.

Create the joined sheet

Click Run for real to save the joined sheet. Spot-check a few rows against both originals before you use or export it.

The joined sheet: payments matched to regions

Action settings

Clean column →

Join sheets (by key) →

Related

Import a table →

Export the joined table →