Sub topic 2
Protect the Original: Work on a Copy
This chapter assumes you can navigate a Google Sheets spreadsheet, select ranges, use the menu bar, and enter simple formulas such as =A1&B1.
Cleaning changes cell contents. If you clean the only copy of an imported file, you may lose the original values needed to check an error, restore a record, or explain how a result was produced. Start by preserving the source data.
Create a safe working copy
Use the original sheet as a read-only reference. Create a separate copy for cleanup:
- Open the spreadsheet containing the imported or hand-typed data.
- Choose File > Make a copy.
- Give the copy a name that identifies its purpose, such as
customer_data_cleaning_2026-11-28. - Store the copy in the appropriate Drive folder.
- In the copy, rename the original tab to
Raw. - Duplicate the
Rawtab and rename the duplicateWorking.
Keep Raw unchanged. Perform cleanup on Working. If the workbook contains several source tables, use clear names such as Raw_Orders and Working_Orders.
You can also protect the raw tab. Right-click the tab, choose Protect sheet, and restrict editing access. Protection reduces accidental changes, but it does not replace a separate file copy.
Raw tab → unchanged source values
Working tab → cleanup operations and review
Clean tab → optional final output for analysisRecord what you changed
A copy protects the values, but a short change log explains the process. Add a Change log tab with entries such as:
| Date | Sheet or range | Action | Reason |
|---|---|---|---|
| 2026-11-28 | Working!A2:C500 | Trimmed spaces | Standardize imported text |
| 2026-11-28 | Working!A2:C500 | Removed duplicate rows | One row per customer |
Record whether an operation changed values, removed rows, or created a new formula-based result. This distinction matters. A formula can be changed later, while a deleted row must be restored from Raw.
Decide whether to clean in place or with formulas
Use a working copy when you need a quick, permanent cleanup. Menu commands such as Data > Data cleanup > Trim whitespace change the selected cells directly.
Use formula results when you need a repeatable or reviewable process. For example, put this formula in a new column on Working:
=TRIM(A2)The formula leaves the source value in column A and creates a cleaned value in another column. After reviewing the results, you can copy the formula results and use Edit > Paste special > Values only if you need fixed text.
| Approach | Best for | Main risk |
|---|---|---|
| Menu cleanup on `Working` | One-time correction | The change is less easy to reproduce |
| Formula in a new column | Reviewable cleanup | Results need room to expand |
| Separate `Clean` tab | Repeatable reporting | The clean output can become out of date |
Preserve evidence during deletion
Do not remove duplicates immediately if you are unsure whether repeated rows are errors. First duplicate the working tab or add a review column. Later, formulas such as COUNTIF can flag repeats while keeping every row available for inspection.
Plan the workbook structure
A simple structure makes the cleanup path visible:
Keep the raw and working data in the same column order when possible. This makes comparisons easier. If you add helper columns, label them clearly and avoid overwriting the source columns until the results have been checked.
Exercise
You received a sheet named Import. What should you do before using Trim whitespace or Remove duplicates?
Show answer
Make a separate file copy, preserve the source in a tab named Raw, duplicate it as Working, and perform cleanup only on Working.