How to Clean Your Dataset Before Analysis: A Step-by-Step M&E Checklist

On this page

A step-by-step checklist for cleaning M&E data after collection. Duplicate detection, outlier identification, skip logic validation, consistency checks, and cleaning log documentation.

Key Takeaway

Never delete raw data. Document every change.

Work from a copy. Log what changed, why, by whom, and when. Raw data must stay intact for re-analysis and audit.

Clean M&E data in sequence: back up the raw file and work from a copy, remove duplicates, check completeness, validate skip logic, then handle outliers. Never delete or edit raw data. Log what changed, why, by whom and when, so the dataset can be re-analysed or audited later.

Who This Page Is For

You have finished data collection. The raw export is sitting in your downloads folder. Before you open it and start making charts, you need to clean it. Dirty data produces wrong findings, and wrong findings produce bad decisions.

This page is a step-by-step protocol for cleaning M&E datasets after collection. It covers household surveys, facility assessments, monitoring forms, and any structured data you collect in the field. Follow the steps in order. Skip nothing.

Before You Start

You need three things before you touch a single cell:

  1. Your Raw Data Export. Download it from KoboToolbox, SurveyCTO, ODK, or whatever platform you used. Export as XLSX or CSV. Do not edit it in the platform's online editor, because edits there change the original and leave no record.
  2. Your Codebook. This is the document that defines every variable, its expected values, skip logic rules, and valid ranges. If you do not have a codebook, your survey design process skipped a step. Build one now before cleaning.
  3. A Cleaning Log Template. A spreadsheet with one row per change. Every edit you make goes here. No exceptions. Use these columns:
ColumnWhat to Enter
Record IDThe respondent or household ID
Variable and valuesThe variable name, the original value and the new value
ReasonThe rule you applied
Date and whoThe date and the person who made the change

One filled row to copy: HH-0231 | age: 250 became 25 | Typing error confirmed on the paper form | 2026-04-02, A. Mensah.

Cleaning is quicker when your survey form already blocked impossible answers while people typed them in. If you skipped those entry rules during survey design, expect to spend significantly more time here.

Three Rules That Hold Through Every Step

Cleaning means finding errors in a dataset and correcting them by documented rules. The key word is documented. Three rules cover most of what goes wrong.

  1. Never overwrite raw data. Save every cleaned dataset as a separate file. The raw file is the record of what was collected, and you may need to trace any value back to it.
  2. Log every correction. The cleaning log records the record ID, the variable, the original value, the new value, the reason for the change (the rule applied), the date and who made the change. Without it, cleaned data cannot be audited.
  3. Set the rules before you start. Write each rule down first, then apply it the same way to every record. Deciding case by case as you go lets judgment drift.

Here is the difference. "Values above the 99th percentile (the value that 99 out of 100 records fall below) are reviewed one by one and corrected only if a transcription error can be confirmed" is a rule. Two people applying it to the same file reach the same result, and the log shows why each value changed. "We will fix values that look wrong" is not a rule. Each person fixes different values, and nobody can later say why.

The steps below put these three rules to work in order.

Frequently Asked Questions

How long does data cleaning take?

Plan for 1-3 days per 500 survey responses for a standard household survey. Complex surveys with many skip patterns take longer. Budget cleaning time into your data collection timeline from the start, not as an afterthought.

Should I delete or correct problematic records?

Never delete raw data. Create a cleaned copy and document every change in a cleaning log. If a record is unusable, flag it and exclude it from analysis, but keep the original. Your cleaning log should record what was changed, why, by whom, and when.

What tools should I use for data cleaning?

For most M&E teams: Excel or Google Sheets for small datasets (under 1,000 records), R or Stata for larger datasets or complex cleaning rules, and OpenRefine for deduplication and standardization. KoboToolbox and SurveyCTO both have built-in validation that catches some issues during collection, but you still need post-collection cleaning.

Did this page help?