Skip to content

Coach Winona · AI at Work · Intermediate

Clean messy spreadsheet data without guessing

Download the practice CSV. Open it in Excel or import it into a blank Google Sheet. Confirm the headers start at A1 before using the cell references below.

The five practice rows, before cleaningPractice example
Order
Region, amount
Status
N-101
North, $120
Open
N-102
North, $85
Open
N-102
North, $85
Open
S-201
South, $90
Closed
S-202
South, $35
[blank]
Sample rows from the page’s practice CSV (A2:D6). ␣ marks a space inside the cell, as in the file.

Try it

Four cleanup steps, source untouchedFlow chart
  1. Work in a copyKeep the source untouched. Confirm five data rows in A2:D6.
  2. Helper column EEnter =TRIM(B2) in E2 and fill through E6. Compare with column B before replacing anything.
  3. Compare the two N-102 rowsOne exact repeat, so keep one.
  4. Blank StatusLeave it blank or flag it as unknown in a separate note.
Don’t turn a blank Status into Open or Closed.
  1. Keep the source untouched. Work in a copy and confirm five data rows in A2:D6.
  2. Add a helper column in E. Enter =TRIM(B2) in E2 and fill through E6. Compare the new text with column B before replacing anything.
  3. Compare every cell in the two N-102 rows. This file has one exact repeat, so keep one. If repeated IDs disagree, mark the conflict for review instead of deleting either row.
  4. Find the blank Status. Leave it blank or flag it as unknown in a separate note; don’t turn it into Open or Closed.
Repeated ID: repeat or conflict?Decision diagram
Decision diagram for repeated IDs: compare every cell in the rows that share an ID. If every cell matches, it is an exact repeat, so keep one. If they disagree, mark the conflict for review instead of deleting either row.Repeated ID?Compare every cellEvery cellmatches:exact repeat,keep oneCells disagree:mark the conflictfor review, deleteneither row
This file has one exact repeat. A conflict would go to review instead.
Show the worked check

Four unique orders remain. N-102 belongs to North; S-202 is the one unknown status. Add the four retained amounts by hand: $120 + $85 + $90 + $35 = $330. If you get $415, check whether the second N-102 is still included.

Check the total by handPractice example

If you get $415

Check whether the second N-102 is still included.

$330

Four unique orders: $120 + $85 + $90 + $35.

N-102 belongs to North; S-202 is the one unknown status.

Try this prompt

Use the practice file or non-confidential details. Use an approved tool and turn model training OFF where that setting is available. No AI account is needed for the worked check.

Make a cleanup plan

Review [non-confidential rows] using [ID, region, amount and status columns]. Point to exact repeats, conflicts and blank values separately. Suggest a reversible cleanup and give me a row count and one manual check. Do not fill a blank status or delete a conflicting ID.

Spreadsheet references

Back to the spreadsheet workflow lessons

The AI PulseWhat actually matters in AI, minus the hype — twice a week.
Free forever · unsubscribe anytime · all 14 newsletters
That email did not go through — please check it and try again.