Skip to content

Web & data

How to Clean Up an Excel Spreadsheet

The spreadsheet running your reporting is probably wrong. See the checks that find the errors, the cleanup order that works, and when to outsource it.

We write about Remote staffing BPO & back office Support & sales Marketing & creative
Analyst working through a large spreadsheet during an Excel data cleanup

The workbook has fifteen tabs, three regular editors and formulas that still point to a column deleted last quarter. One colleague knows which yellow cells may be changed. Management reporting and several invoices depend on it, but nobody has reconciled the file from source to output.

The spreadsheet became a system without acquiring the controls of one. A cleanup is not successful because the grid looks tidy. It is successful when the structure is documented, changes can be reconciled, exceptions are logged and next month’s file can follow the same rules.

The order matters. Deduplicating before values are standardized leaves near-duplicates behind. Formatting before structure changes means formatting twice. Follow the sequence below and keep every judgement visible.

Assess the workbook without changing it

Create a read-only original and a dated working copy. Preserve the file’s permissions and retention requirements. If macros, external connections, protected sheets or signatures exist, involve the owner before opening or saving it in another application.

Build a baseline register:

  • file name, path, owner, business purpose and reporting deadline;
  • application and version used by the business;
  • each sheet, its purpose, visible row and column counts and used range;
  • record-grain statement: what one row is supposed to represent;
  • candidate primary or composite key;
  • formula columns, named ranges, tables, pivots, charts, macros and validation;
  • hidden sheets, rows and columns; filters and outlines;
  • links to external workbooks, files, queries, websites or databases;
  • control totals by amount, count, status or another independent source;
  • downstream reports, imports and people who rely on current layout.

Record a checksum or another approved integrity reference for controlled files where appropriate. Take screenshots of critical outputs and save formula or connection inventories. The objective is not forensic perfection; it is enough evidence to prove what changed and detect a broken dependency.

Do not assume the first column is a key. Test uniqueness, blanks, reuse and persistence. An invoice number may identify an invoice but not each line; customer name is rarely a dependable customer key.

Use this five-step cleanup order

  1. Fix structure. Create a rectangular table with one header row and one defined record per row.
  2. Fix data types. Convert values intentionally and make parsing rules explicit.
  3. Standardize values. Apply controlled categories, casing, units and missing-value rules.
  4. Deduplicate. Remove exact duplicates, then review near matches against a written rule.
  5. Validate and reconcile. Test completeness, ranges, references and totals against the baseline.

Work on copies or through a repeatable transformation. Maintain an error log with source row or record ID, field, original value, proposed or applied value, rule, reviewer, date and disposition. Do not silently “correct” values that require business judgement.

1. Fix structure

A data table needs one header row, unique column names, one record per row and one field per column. Remove merged cells from the data range, blank spacer rows and columns, subtotals, title blocks and notes mixed into records. Put totals and dashboards outside the input table.

Do not encode status only through colour, bold or cell position. Create an explicit field such as approval_status with allowed values. Preserve necessary presentation in an output sheet rather than forcing analysis to interpret formatting.

Separate different record types. Customer, invoice and payment rows do not belong in one table merely because they appear in the same report. Give each table a key and define how they relate.

List formulas that depend on fixed cell positions before moving columns. Convert raw ranges to formal Excel tables where appropriate so references expand predictably, but test every dependent formula and output.

2. Fix data types

A value that looks numeric may be text. Leading apostrophes, imported spaces and locale-specific punctuation can prevent arithmetic or matching. Use error indicators, ISTEXT, ISNUMBER, VALUE or a controlled Power Query type conversion to identify and change values. Never convert identifiers such as account codes, SKUs or postal codes to numbers when leading zeroes carry meaning.

Use TRIM for ordinary repeated spaces and CLEAN for certain non-printing characters, then inspect what remains. Non-breaking spaces often require an explicit replacement such as SUBSTITUTE(text,CHAR(160)," ") before trimming in relevant encodings. Google’s official Sheets cleanup guidance specifically notes that its Trim whitespace command does not remove non-breaking spaces.

Use Text to Columns or Google Sheets’ Split text to columns only after confirming the delimiter, escaped values and destination space. A comma inside a company name can make a naive split destructive. Keep the source column until validation is complete.

Dates require special care. 01/05/26 may mean January 5 or May 1. Record the source locale and test known boundary examples. For interchange, the ISO 8601 standard uses year-month-day, such as 2026-05-01, to reduce ambiguity. Store real date values where calculation is needed and format display separately.

Check timestamps for time zone and daylight-saving treatment. Do not remove an offset and call the result UTC. Preserve the original, parsed value, zone assumption and conversion rule.

3. Standardize values

Create a data dictionary before replacement. For every field, define name, meaning, type, allowed values, unit, missing-value treatment, source and owner.

Map synonyms into controlled values: United States, USA and U.S. may map to one approved country representation. Preserve the original value or transformation log when traceability matters. Do not standardize two business concepts merely because their labels look similar.

Choose consistent casing only after checking identifiers and case-sensitive downstream systems. Normalize phone numbers, currencies and units according to the consuming process. Do not convert a number without knowing whether it represents dollars, thousands of dollars, kilograms or pounds.

Define missing states. Blank, zero, N/A, unknown, not asked and not applicable are not interchangeable. Use explicit categories where the distinction affects reporting; use true blanks where the application requires them and document the meaning.

4. Deduplicate

Find exact duplicates on the correct key after types and values are standardized. First highlight or filter candidates. Microsoft’s current Excel Remove Duplicates guidance warns that removing duplicates permanently deletes rows and retains the first occurrence based on the selected key columns. Work from a copy and inspect candidates before removal.

Near-duplicate matching needs a written rule. Possible evidence includes normalized company name, email, phone, address, date of birth, external identifier and linked transactions. Define blocking, comparison, confidence and review:

  • automatically merge only where a strong unique identifier agrees and no protected fields conflict;
  • send probable matches to human review with fields side by side;
  • keep separate records where evidence is insufficient;
  • record survivor, merged IDs, retained values, reviewer and reason.

Merging two real customers, patients, properties or suppliers can be more harmful than leaving a duplicate. The business owner must decide conflict rules. Data operators should not select the newest or fullest row by intuition.

Isometric render of messy spreadsheet rows resolving into an ordered grid with duplicates flagged
Deduplication becomes reliable only after structure, types and values are standardized and probable matches are reviewed against a written rule.

5. Validate and reconcile

Run tests that correspond to business meaning:

  • mandatory-field completeness by record type;
  • unique and nonblank key checks;
  • allowed values and patterns;
  • plausible numeric and date ranges;
  • start date not after end date;
  • child or transaction references present in the master list;
  • amount components reconciling to approved totals;
  • formula coverage and error-value checks;
  • row counts by status, period and source compared with the baseline.

Reconcile at several levels. An unchanged grand total can hide equal and opposite errors. Compare counts and amounts by month, entity, category or source. Investigate every difference and classify it as intended cleanup, pre-existing error, excluded record or unresolved exception.

Run downstream reports and imports in a safe environment. A cleaner column name can still break a fixed integration. The change log should let the owner see structural changes, value rules, merged records, rejected rows and open decisions.

Printed data listing marked up while checking for spreadsheet errors and duplicates
Hidden errors become visible when candidate rows, original values, normalized values and match evidence are reviewed together.

Check the errors that ordinary filters hide

  • Rows below the apparent data range: old formulas, formatting or forgotten records can extend the used range and affect exports.
  • Hidden and filtered records: copying a visible subset may omit valid data; removing duplicates can affect rows outside the operator’s apparent view.
  • Invisible characters: non-breaking spaces, line breaks, tabs and different Unicode forms can make values look equal while comparisons fail.
  • Locale-shifted dates: parsing can silently swap day and month or treat a text date as a different serial value.
  • Display rounding: two cells may show 10.00 while storing different values; reconcile underlying precision.
  • Numbers stored as text: totals, sorting and lookups may behave inconsistently.
  • Formula constants: one cell in a calculated column may have been overwritten with a typed value.
  • External links: a result may reflect a cached or unavailable workbook rather than current source data.
  • Whitespace headers: visually identical column names can differ and break import mappings.
  • Error suppression: IFERROR or blank display may hide the reason a formula failed.

Search for formulas that differ from neighbours, hard-coded constants in formula regions, error values, hidden names and connections. Do not “fix” every unusual value; confirm whether it is a legitimate exception.

Make the workbook harder to break again

Separate three layers:

  1. Input: controlled tables for raw or entered data, with keys and validation.
  2. Calculation: transformations and formulas that users do not casually overwrite.
  3. Output: reports, pivots and dashboards designed for consumption.

Use Data Validation lists or typed table columns for controlled entries. Protect workbook structure and formula areas according to the application and security model, but remember worksheet protection is not a complete confidentiality control. Apply access permissions at the file and storage level.

Use tables and meaningful named ranges instead of drifting fixed references where appropriate. Add instructions, data dictionary, owner, version, source date and refresh steps. Keep a change log for structure, rule and formula modifications.

Validate on entry and on refresh. A clean file with unrestricted free text will decay. Track rejected rows and unknown categories so governance does not become an operator silently adding new values.

Use Power Query or scripting for recurring files

A small one-off file may be faster to clean manually with documented steps. When the same supplier export, monthly finance file or operational report arrives repeatedly, build a reproducible transformation.

Microsoft describes Power Query, or Get & Transform, as a way to connect, shape and refresh data. It is currently available in Excel for Windows, Mac and the web, while connectors and capabilities vary by application, version, licence and source. Confirm the business environment before promising a specific workflow.

A repeatable query can select columns, assign types, trim and replace values, split fields, join reference tables, group records and flag errors. Keep steps named and sources controlled. Load outputs to a new table rather than overwriting the raw file.

Scripting becomes worthwhile when matching logic, validation, volume, multiple files or audit output exceeds comfortable query steps. Code should be versioned, tested on representative inputs and produce row-level exceptions and run summaries. Do not automate an unresolved business judgement.

The first build can take longer than manual cleanup. Whether it pays back on the second or fifth run depends on setup and recurring effort, so calculate the business’s own break-even rather than promise one.

Know when the spreadsheet should stop being the system

Consider a database or purpose-built application when:

  • several people need concurrent edits with reliable conflict handling;
  • records need different permissions by user, field or entity;
  • the process requires a durable audit trail and approvals;
  • relationships among customers, transactions and items are difficult to enforce;
  • volume or formulas make refresh and validation fragile in the actual environment;
  • an error can create material financial, clinical, legal or regulatory consequence;
  • other systems need stable APIs or automated transactions.

Migration means more than importing the current file. Define entities, keys, relationships, permissions, validation, workflows, history, reports, integrations, cutover and ownership. Clean and reconcile the source first, then test migrated counts and totals. The ongoing discipline belongs in database management, while cross-system transformation belongs in data processing services.

Hand the cleanup over when scale or risk demands it

An afternoon can be enough for a small, low-risk table with clear rules. External support becomes useful when there are many files, a hard deadline, a recurring monthly process, thousands of judgement-consistent reviews, or a migration that needs evidence and reconciliation.

Provide:

  • the original file and approved working environment;
  • record grain and key definition;
  • data dictionary and controlled vocabularies;
  • date, unit, missing-value and match rules;
  • baseline counts and independent control totals;
  • downstream uses and protected layout expectations;
  • a named person who can decide ambiguous cases;
  • required output, error log, change log and acceptance tests.

For customer, financial, health or other sensitive data, keep work in the client-approved environment where feasible, use named scoped access, control downloads, record activity, remove access and establish suitable confidentiality and data-processing terms. A provider should not email broad copies to make the task convenient.

Run a pilot across representative sheets and error types. Agree which corrections may be automatic, which require review and which remain unresolved. Then send us the file for a cleanup assessment with the baseline and decision owner.

Colleagues reconciling cleaned spreadsheet totals against the original baseline figures
The cleaned workbook is accepted only after row counts, control totals, formula outputs and downstream reports reconcile to the original baseline.

Bring the workbook, owner, key, data dictionary, baseline totals, downstream reports and deadline. We will identify structural risk, automation potential and a representative pilot. You can also compare data verification services where records must be checked against external sources, or book a free consultation.

Share

Keep reading

Related insights

Web & data

Shopify Store Support Services: A Guide

A Shopify store needs weekly upkeep, not occasional fixes. See the support tasks that protect revenue, who should own each, and what…

11 min read
Web & data

Shopify vs WooCommerce: Which to Choose

Shopify and WooCommerce both work. The difference is who carries the maintenance and where the cost lands. Compare both against your team…

10 min read
Web & data

How to Choose a Web Development Company

Choosing a web development company in the USA or Europe? Use these nine selection criteria to judge proposals, ownership terms and post-launch…

10 min read

Before you ask for a quote

Tell us what is not working. You get an answer, not a booking link

A paragraph is enough to start. A person reads it and replies within one working day with a scope, a price and an honest view of whether the work is worth doing at all.

Chat on WhatsApp

Free consultation

Tell us what is not working

A paragraph is enough to start. A person reads it and replies within one working day with a scope, a price range, or an honest reason we are not the right fit.

  • No automated qualification sequence
  • A reply within one working day
  • We will tell you if we are the wrong people

    We use what you send to answer you. We do not sell it, and we do not add you to a list.

    Careers

    Apply to OveliTHub

    Send us a link to your CV, a short note about the kind of work you want to be doing, and anything you have built or run that you are proud of.

    • No unpaid trial projects, ever
    • We read every application and reply either way

      We use what you send to answer you. We do not sell it, and we do not add you to a list.