Cleaning Raw Data in a Spreadsheet: Stray Spaces, Date Formats and Duplicate Rows
The first dataset a learner downloads is almost always messy. The same city appears in capitals, lower case and with a trailing space. The date column mixes 03/04/2026 with text such as 4 March 2026. Some cells are blank, and a few transactions were recorded twice. Left like this, a pivot table counts one city as two, and every average drifts because of the duplicated rows.
The cleaning routine is easy to turn into habit. Copy the raw data to a separate sheet so the original stays untouched. Use TRIM to strip extra spaces, PROPER or UPPER to make capitalisation consistent, and Find and Replace to merge spelling variants. Check the date column by sorting it: dates stored as text gather at one end and need converting with DATEVALUE or Text to Columns. Run Remove Duplicates only once you are sure which columns identify a single transaction.
Blank cells call for a decision, and that decision gets written down. Some blanks genuinely mean zero; others mean the value was never recorded. Filling every blank with zero quietly drags the average down. A useful drill: take a food price dataset from an open data portal, log each cleaning step on a separate sheet, then count how many rows were changed, removed or left blank.
Data counts as clean when the learner can explain every row that was changed, removed or left blank, and why.