Clean a Spreadsheet Before Asking AI to Analyze It
A practical, non-destructive checklist for cleaning spreadsheet data, identifying duplicates, clarifying fields and recording review decisions before using AI.
An AI summary of a spreadsheet can sound precise even when the underlying rows are inconsistent. Repeated customer names, mixed date formats, empty cells and hidden filters can distort the question before an assistant ever sees it. The aim of this workflow is to make the original information understandable, keep a reversible copy, and state exactly which decisions still need a person.
1. Preserve the original and define the question
Before modifying any cells, write down the business or personal decision the data should support. A spreadsheet created for tracking deliveries may include repeated updates that look like accidental duplicates. Knowing the purpose helps separate data quality problems from legitimate multiple records.
GitHub documents issues and project tracking as structured ways to organize and follow up on work. [3]
- Copy the raw file and record its source, approximate row count, columns and date of collection before making edits.
- Identify the key field that should be unique, if one exists, instead of treating an entire row as a unique record.
- Create a short issue or review note for every important assumption that has not been checked with the data owner.
- Use a small sample of known rows to describe what the correct answer should look like before involving AI.
2. Check duplicates without silently deleting history
Duplicate detection is not a single yes-or-no test. A repeated invoice identifier may be an error, while the same customer may legitimately appear in many purchases. Review the combination of fields that defines a duplicate and save proposed changes separately before removing anything.
Microsoft documents tools for identifying duplicate values before choosing whether to delete them in Excel. [2]
- List the columns that together identify a unique transaction, document or case, and explain why those fields matter.
- Flag possible duplicates in a separate view or copied worksheet before using any irreversible removal operation.
- Compare conflicting rows manually, especially when values differ in dates, prices, names or completion status.
- Record how many rows would be removed or merged, and verify the expected totals after the proposed cleaning.
3. Standardize choices and document missing values
Inconsistent values such as 'Done,' 'done' and 'Complete' can lead to several categories in a chart. A restricted set of valid values can improve future entry, but it must not silently reinterpret old records. Keep missing, unknown, and genuinely not-applicable values distinguishable.
Google documents dropdown lists as a way to constrain the choices entered into a Google Sheets cell. [1]
- Create a written dictionary for status, category and priority values before introducing spreadsheet dropdown rules.
- Use an approved dropdown list for new entries while keeping an audit of older free-text values that need review.
- Distinguish blank cells from zero amounts and explicit 'not applicable' entries, rather than filling every gap automatically.
- Keep a separate exceptions sheet showing values that could not be mapped confidently to an approved category.
4. Inspect filters, formulas and sensitive columns
A clean-looking worksheet may hide rows because a filter is active, or display totals from formulas that reference the wrong range. Before sharing with an external assistant, inspect both formula behavior and the sensitivity of each column. Data minimization matters even in an exploratory analysis.
- Check visible row counts against the full raw sheet so hidden filters do not accidentally reduce the population.
- Review a few representative formulas and compare their inputs with the intended range and measurement period.
- Remove direct personal identifiers, access tokens and unrelated private fields from the analysis copy where possible.
- State the units, date format, timezone and treatment of refunds or adjustments next to the cleaned dataset.
5. Validate the AI result against independent totals
AI can provide a useful interpretation or candidate formula, but a fluent narrative is not an audit. Use a handful of independently calculated figures to test the output, then investigate disagreements without changing the raw information to make the response look consistent.
- Compute one expected count and one expected total using a known-good spreadsheet formula or separate calculation.
- Compare the assistant's conclusions with those values and note any discrepancy without assuming which side is correct.
- Inspect the rows behind any surprising insight rather than relying only on a chart or a natural-language summary.
- Save the final analysis with its input version and a short caveat explaining unresolved missing or conflicting data.
What to do next
An effective spreadsheet handoff includes more than a neat chart. Keep the untouched source, a list of cleaning decisions, the column definitions, a small set of expected totals, and a reviewed output. AI can help explore patterns, but people remain responsible for interpreting the context and checking whether an apparently clean number answers the real question.
Original sources and verification
The cited evidence statements were checked against the original publishers at preparation time. This automated match checks exact source passages and a fixed, pre-reviewed claim mapping; it does not independently prove every possible inference or reflect future changes. Recheck sources before any consequential decision.
- Google Docs Editors Help — Create an in-cell dropdown list — original publisher; relevant evidence verified automatically before this publication.
- Microsoft Support — Find and remove duplicates in Excel — original publisher; relevant evidence verified automatically before this publication.
- GitHub Docs — Planning and tracking work for your team or project — original publisher; relevant evidence verified automatically before this publication.
Put the checklist into practice
Start with the practical steps above, then verify the outcome in your own environment. You can also explore a guided workflow if useful.
Explore a guided workflow Save your progressEducational guidance, not a guarantee of security or functionality. Automated source-presence checks are distinct from a human or domain-expert review. Suggest a correction.