{"slug":"cleaning-survey-data-before-analysis","title":"Survey Data Cleaning: How to Clean Survey Data Before Analysis","excerpt":"A step-by-step survey data cleaning checklist: protect the raw file, fix IDs and duplicates, run range and skip logic checks, treat missing values and outliers, and document every change in Stata, R, SPSS or Excel.","date":"2026-05-30","author":"DSTechnoverse","image":"https://images.unsplash.com/photo-1543286386-713bdd548da4?auto=format&fit=crop&w=1200&q=80","category":"Survey Research","tags":["data cleaning","survey","data analysis","preparation","quality"],"content":"> **Quick answer:** Survey data cleaning is the scripted process of turning a raw survey export into an analysis-ready file: protect the raw data, check IDs and duplicates, apply respondent-level quality rules, run range, consistency and skip logic checks, declare and treat missing values, investigate outliers, recode and derive variables, and record every change in a cleaning log. Do it in Stata, R or SPSS syntax rather than by hand, so anyone can rebuild the clean file from the raw one.\n\nSurvey data cleaning is the step that decides whether your results mean anything. Analysts have a saying: garbage in, garbage out. No statistical test can rescue a dataset where \"don't know\" is coded 99 and averaged as income, where the same household appears twice, or where half the respondents answered questions they should have skipped. \n\nThis guide is a practical answer to \"how to clean survey data\" for household, baseline, CSR, customer and thesis surveys. It gives you a data cleaning checklist you can adapt, explains how to handle missing values and outliers, shows how skip logic checks work, and maps each step to Stata, R, SPSS and Excel. It assumes the data has already been collected. Quality control during fieldwork (back-checks, GPS and audio audits, daily enumerator monitoring) is a separate discipline covered in [data quality control in large-scale surveys](/blog/survey-data-quality-control/), and the choice of collection mode is covered in [CATI vs CAPI vs paper surveys](/blog/cati-capi-paper-survey-methods/). If your data is a sensor time series rather than a questionnaire, the logic is different again; see [cleaning air quality monitoring data](/blog/air-quality-data-cleaning-guide/).\n\n## What Survey Data Cleaning Is, and What It Is Not\n\nThree activities are often lumped together, and confusing them causes both gaps and duplicated effort.\n\n| Activity | When it happens | Main question | Typical output |\n|---|---|---|---|\n| Field quality control | During data collection | Is the interview real and correctly conducted? | Back-check reports, enumerator flags, re-visits |\n| Survey data cleaning | After export, before analysis | Is each value valid, consistent and correctly coded? | Clean dataset, cleaning script, cleaning log |\n| Data screening | After cleaning, before testing | Do the data meet the assumptions of the planned analysis? | Normality, multicollinearity and distribution checks |\n\nField QC is the cheapest place to fix problems, because the enumerator can still go back to the household. Cleaning catches what slipped through and makes the file internally coherent. Screening then tells you which analysis is appropriate, which is the subject of [choosing the right statistical test](/blog/choosing-the-right-statistical-test/).\n\nCleaning is not \"making the data look right\". Every change needs a rule written before you see its effect, and the original value must survive in the raw file.\n\n## The Survey Data Cleaning Checklist\n\nUse this as the spine of your cleaning script. The order matters: you cannot judge outliers before missing codes are declared, and you cannot check skip logic before you know which records are genuine.\n\n| Step | Task | Key checks |\n|---|---|---|\n| 1 | Protect the raw file | Read-only archive, version naming, project folders |\n| 2 | Import and check structure | Variable types, encoding, labels, dates, leading zeros |\n| 3 | Identifiers and duplicates | Unique ID, exact and near duplicates, roster linkage |\n| 4 | Respondent-level quality | Consent, partials, speeders, straight-liners, attention checks |\n| 5 | Range and consistency | Valid ranges, logical combinations, units |\n| 6 | Skip logic checks | Answered when it should be skipped, blank when it should be answered |\n| 7 | Missing values | Declare codes, diagnose mechanism, choose treatment |\n| 8 | Outliers | Detect, investigate, decide, document |\n| 9 | Recode and derive | Other-specify, reverse coding, scales, indices |\n| 10 | Weights and final verification | Strata, clusters, weights, reconciliation counts |\n| 11 | Document | Cleaning log, script, clean file, codebook |\n\n![The survey data cleaning workflow](/blog-images/statistics/survey-data-cleaning-workflow.svg)\n\n## Step 1: Protect the Raw File\n\nBefore changing anything, archive the raw export exactly as it came from the server or data entry system. Make it read-only. Every later file should be produced by a script that reads the raw file, never by editing a copy and saving over it.\n\nKeep separate folders for raw exports (with download dates in the file names), numbered scripts, versioned clean files and documentation. If data arrives in batches during fieldwork, re-run the whole script on the combined file; manual batch-by-batch edits get lost when a later export overwrites them.\n\n## Step 2: Import Correctly and Check Structure\n\nMany cleaning problems are created at import. Check these before anything else.\n\n- **Variable types.** Numeric codes read as text will not range-check or sort properly. Text read as numbers loses leading zeros, which destroys census codes, PIN codes and phone numbers.\n- **Dates and times.** Mixed day-month and month-day formats corrupt any duration or age calculation. Excel will silently convert some codes into dates.\n- **Encoding.** Open-ended answers in Indian scripts need UTF-8 handling.\n- **Labels.** Exports from ODK, KoboToolbox or SurveyCTO can come with labels or with raw choice names. Decide which you want and attach value labels from the form definition, not by hand.\n- **Multiple-select questions.** These usually arrive as one text field with space-separated choices plus one binary column per choice. Confirm the binary columns match the text field.\n\nThen compare record counts with the field tracker and summarise every variable. In Stata that is describe, codebook and inspect; in R, str, summary and skimr::skim; in SPSS, Display Dictionary and FREQUENCIES. The minimum and maximum of every numeric variable is the single most useful output you will generate all week.\n\n## Step 3: Identifiers and Duplicates\n\nEvery record needs a unique identifier, and you should prove it is unique rather than assume it. In Stata, isid household_id stops the script if the ID repeats; in R, a count of IDs appearing more than once should return zero rows.\n\nDuplicates come in several forms:\n\n| Type | How it arises | How to detect | Usual resolution |\n|---|---|---|---|\n| Exact duplicate | Form submitted twice from the device | All variables identical | Keep one, log the other |\n| Same ID, different data | Re-interview, ID typed wrongly, two enumerators | Duplicate ID with differing answers | Check with field team, re-assign or drop |\n| Same household, different ID | Household interviewed twice under new IDs | Matching name, phone, GPS or roster | Investigate, keep the verified record |\n\nRoster data (household members, plots, livestock, loans) sits in separate repeat-group files. After cleaning the household file, merge each roster to it and check that every child row has a parent and that counts agree, for example that the number of members in the roster equals the household size question.\n\nNever resolve \"same ID, different data\" by automatically keeping the latest submission; ask the field team, then record the decision.\n\n## Step 4: Respondent-Level Quality Rules\n\nDropping a respondent is a serious act, so the criteria should be written down before you look at the results and applied mechanically. These checks earn their place in almost every survey.\n\n| Check | Rule of thumb | What it catches |\n|---|---|---|\n| Consent | Consent variable not \"yes\" | Records that should not be analysed at all |\n| Speeding | Completion under one third of the median time | Clicked through without reading |\n| Straight-lining | Same answer for every item in a grid of 8+ | Disengaged respondent |\n| Attention check failure | An item that instructs \"select Agree\" | Bots and inattentive panels |\n| Impossible combinations | Age 19 with 25 years of work experience | Data entry or comprehension error |\n| Duplicate submissions | Same device, same responses, minutes apart | Repeat entry, intentional or not |\n| Excessive item non-response | More than 40% of key items blank | Partial completion |\n\nThresholds such as \"one third of the median\" are conventions; set the cut-off after looking at the duration distribution. An enumerator whose interviews are consistently far shorter than everyone else's is a fieldwork problem, as are GPS and audio mismatches, and the right response is the back-check protocol in [data quality control in large-scale surveys](/blog/survey-data-quality-control/), not a silent deletion at the cleaning stage.\n\nReport your exclusions with counts. \"We removed 47 of 1,240 responses: 22 for speeding, 14 for straight-lining, 11 for failed attention checks\" is transparent. Silently ending up with 1,193 is not.\n\n## Step 5: Range and Consistency Checks\n\nRange checks confirm that every value is possible: no age of 200, no Likert answer of 9 on a five-point scale, no negative land area. Consistency checks confirm that values make sense together.\n\n| Check type | Example rule | Typical cause when it fails |\n|---|---|---|\n| Hard range | Age between 0 and 110 | Typing error, missing code not declared |\n| Soft range | Monthly household income above 10 times the median | Genuine extreme or unit error |\n| Cross-variable logic | Respondent's age greater than eldest child's age plus 12 | Wrong member selected, wrong age |\n| Sum checks | Land owned plus land leased in equals land operated | Partial answers, unit mix-up |\n| Time consistency | Interview date within fieldwork window | Device clock set wrongly |\n| Roster consistency | Household size equals number of roster members | Members added or dropped in the roster |\n\nHard-range failures are usually set to missing or corrected from the paper record or audio. Soft-range failures are flagged for investigation, not changed automatically. Unit problems deserve special care in Indian rural surveys: a bigha differs by state and sometimes by district, so the conversion factor must come from the study area, and the original unit should be kept as a separate variable.\n\nConstraints in ODK, KoboToolbox or SurveyCTO forms reduce these errors but do not remove the need for checks, because forms change mid-survey and cross-module logic is rarely fully coded.\n\n## Step 6: Skip Logic Checks\n\nSkip logic checks test whether each question was answered by exactly the respondents who should have answered it. Two errors are possible:\n\n- **Answered when it should have been skipped.** A respondent who said \"no\" to owning livestock has values for milk sales.\n- **Blank when it should have been answered.** A respondent who said \"yes\" to taking a loan has no loan amount.\n\nWrite each rule from the questionnaire's routing and test both directions. CAPI relevance conditions usually prevent the first error, but older submissions may follow an earlier form version. With paper surveys both errors are common.\n\nIllustrative rules for a livelihoods module:\n\n| Filter question | Dependent questions | Check |\n|---|---|---|\n| Q20 Owns livestock (1 yes, 2 no) | Q21 to Q25 livestock numbers and sales | If Q20 = 2, Q21 to Q25 must be blank or coded \"not applicable\" |\n| Q30 Took a loan in last 12 months | Q31 source, Q32 amount, Q33 purpose | If Q30 = 1, Q31 to Q33 must not be blank |\n| Q40 Any member migrated for work | Migrant roster | If Q40 = 2, roster must have zero rows for that household |\n\nValues that should have been skipped are normally set to \"not applicable\", after checking the filter answer itself is not the error. Blanks that should have been answered are genuine missing values.\n\nKeep \"not applicable\" distinct from \"missing\". A blank loan amount for a household that took no loan is not missing data, and treating it as missing will distort any analysis of missingness. Good questionnaire design makes this much easier; see [how to design a baseline survey questionnaire](/blog/designing-baseline-survey-questionnaire/).\n\n## Step 7: Missing Values in Survey Data\n\nBefore treating missing values, declare them. Surveys use special codes such as 98 for \"don't know\", 99 for \"refused\" and 97 for \"not applicable\", and these must be declared as missing (or as their own categories) rather than analysed as numbers. A \"don't know\" coded 99 and left undeclared will inflate every mean in the dataset. In Stata use mvdecode or extended missing values such as .d and .r; in SPSS use the MISSING VALUES command; in R convert the codes to NA, keeping a separate variable for the reason if you need it.\n\nThen diagnose the mechanism. The percentage missing matters far less than why it is missing.\n\n**MCAR, missing completely at random.** A tablet crashed, a page was skipped by accident. The missingness is unrelated to anything. Simple deletion is defensible.\n\n**MAR, missing at random.** Missingness depends on something you observed. Older respondents skipped the online banking question more often. You can model and impute it because the predictor is in your data.\n\n**MNAR, missing not at random.** Missingness depends on the unobserved value itself. High earners refuse to state income. No imputation method fixes this without assumptions you cannot verify, so report sensitivity analyses.\n\n![Handling missing data: what each option costs you](/blog-images/statistics/missing-data-strategies.svg)\n\n| Method | Use when | What it costs you |\n|---|---|---|\n| Listwise deletion | MCAR, under 5% missing | Power drops fast when many variables have gaps |\n| Pairwise deletion | Correlation matrices only | Different n for every cell; matrices can misbehave |\n| Mean substitution | Almost never | Artificially shrinks variance and biases correlations |\n| Regression imputation | A few numeric variables, MAR | Understates uncertainty; makes data look too clean |\n| Multiple imputation | MAR, any amount | Some setup time; the defensible default |\n| Full information maximum likelihood | SEM and regression contexts | Built into the model; strong when available |\n\nMean substitution quietly biases every variance and correlation downward. Multiple imputation is available in Stata (mi impute), R (the mice package) and SPSS (Multiple Imputation procedure).\n\nCompare respondents with and without missing values on the variables you do have; systematic differences mean the data are not MCAR.\n\n## Step 8: Outliers: Investigate, Do Not Delete\n\nAn outlier is a data point that does not fit. That could mean an error, or it could mean the most interesting household in your sample.\n\n| Detection method | Threshold | Best for |\n|---|---|---|\n| Z-score | Beyond ±3 | Roughly normal variables |\n| IQR rule | Beyond 1.5 × IQR from the quartiles | Skewed variables, more robust |\n| Boxplot inspection | Visual | Quick screening across many variables |\n| Mahalanobis distance | Chi-square cutoff | Multivariate outliers |\n| Cook's distance | Above 4/n | Influential cases in regression |\n\nThe decision tree is short. Is it impossible (age 250)? Correct it from source if you can, or set it to missing. Is it possible but extreme (a household earning forty times the median)? Check for a unit or extra-zero error first: monthly income entered as annual, or 50,000 entered as 500,000. If it is genuine, keep it, and consider a transformation, a robust method, or reporting the analysis with and without it.\n\nFor income, land holding, expenditure and similar right-skewed variables that dominate Indian household survey work, a log transformation or median-based reporting usually works better than any deletion rule. Winsorising (capping values at, say, the 1st and 99th percentiles) is common in development economics, but it is a modelling choice, not a cleaning fix, and the uncapped variable should be kept. Deleting values because they are inconvenient is data manipulation, however well intentioned.\n\nScreen by stratum or district: 40 acres is extreme in a smallholder district and ordinary elsewhere.\n\n## Step 9: Recoding, Other-Specify and Derived Variables\n\n| Task | Why it matters |\n|---|---|\n| Reverse-score negative items | Otherwise reliability collapses and scale means are meaningless |\n| Code \"other, please specify\" text | Frequent answers often belong in existing or new categories |\n| Collapse rare categories | Chi-square needs expected counts of 5 or more in most cells |\n| Create derived variables | Per-capita income, dependency ratio, asset index, food security score |\n| Label everything | So the output is readable a year later |\n\n\"Other, please specify\" responses are often underestimated. In a large survey, hundreds of open texts may say the same thing in different spellings and languages. Read them, build a coding frame, recode those that fit existing categories, and add new categories where a group is large enough to matter. Keep the original text.\n\nUnreversed negatively worded items can push Cronbach's alpha towards zero, which is a useful diagnostic in itself. See [reliability and validity in survey research](/blog/reliability-validity-survey/) and [how to analyse Likert scale survey data](/blog/likert-scale-analysis/) for what comes next.\n\nDerived variables should be built in the script, never typed in, and each should be checked against a few hand calculations. Per-capita measures need a clean household size, so derive them after the roster consistency checks in Step 5.\n\n## Step 10: Weights, Design Variables and Final Verification\n\nIf the sample was stratified or clustered, the clean file must carry the stratum, cluster (primary sampling unit) and sampling weight for every record. Without them, standard errors will usually be too small and proportions may be biased. Weights are calculated from the selection probabilities in the sampling design, sometimes adjusted for non-response; the design itself is covered in [how to determine sample size for a household survey](/blog/household-survey-sample-size/).\n\nBefore releasing the clean file, run a verification pass:\n\n1. Reconcile record counts: raw records, exclusions by reason, final records.\n2. Produce frequency tables for every categorical variable and summary statistics for every numeric one.\n3. Confirm no undeclared special codes remain (search for 97, 98, 99, 999, 9999 in the maximums).\n4. Re-run the skip logic and range checks on the clean file; they should all pass.\n5. Run the whole script from the raw file in a fresh session and confirm the output is identical.\n\n## Step 11: The Cleaning Log, and Why It Is Not Optional\n\n![Where analysis time actually goes](/blog-images/statistics/analysis-time-breakdown.svg)\n\nCleaning routinely consumes a large share of the hours on a survey project, often more than the analysis itself. The output of that work should be three artefacts, not one:\n\n1. **The raw file, never modified.** Read-only, archived, exactly as it came from the field.\n2. **The cleaning script or syntax**, which turns the raw file into the clean one.\n3. **The clean file**, versioned and dated, which is the only one the analysis touches.\n\nThe cleaning log sits alongside the script and records each case-level decision in a form a reviewer can read without running code:\n\n| Record ID | Variable | Original value | New value | Rule or reason | Source of correction | Date |\n|---|---|---|---|---|---|---|\n| HH-0412 | land_owned | 450 | 4.5 | Decimal point omitted; confirmed by field supervisor | Phone call | 12 Mar |\n| HH-1021 | whole record | kept | dropped | Duplicate ID; second interview of same household | Back-check | 13 Mar |\n\nAnyone should be able to delete the clean file and rebuild it by running the script. If they cannot, you do not have a reproducible analysis; you have a spreadsheet with an untraceable history. This is the same discipline that makes an [SPSS thesis analysis](/blog/spss-data-analysis-for-thesis/) survive a viva, and it matters more than which software you chose. The [World Bank's DIME Wiki](https://dimewiki.worldbank.org/Data_Cleaning) sets out the same approach for large field studies.\n\n## How to Clean Survey Data in Stata, R, SPSS and Excel\n\nAll four tools can do the job. What separates them is how easily the work can be scripted, repeated and audited.\n\n| Task | Stata | R | SPSS | Excel |\n|---|---|---|---|---|\n| Inspect variables | describe, codebook, inspect | str, summary, skimr | Display Dictionary, FREQUENCIES | Filters, pivot tables |\n| Check unique IDs | isid, duplicates report | count by ID, janitor::get_dupes | Identify Duplicate Cases | COUNTIF, Remove Duplicates |\n| Range and logic checks | assert, list if | dplyr::filter, validate package | Validate Data, syntax IF | Conditional formatting, formulas |\n| Declare missing codes | mvdecode, extended missing | na_if, labelled and haven | MISSING VALUES | Manual find and replace |\n| Recode and label | recode, label define | dplyr::case_when, factor labels | RECODE, VALUE LABELS | Lookup tables |\n| Multiple imputation | mi impute | mice | Multiple Imputation | Not practical |\n| Audit trail | do-file and log file | R script or Quarto report | Saved syntax and output | Power Query steps only |\n\n**Stata** is common in development and impact evaluation work, and do-files make the pipeline easy to audit. **R** is free, very flexible and well suited to reproducible reports; [getting started with R for statistical analysis](/blog/r-programming-for-statistics/) covers the basics. **SPSS** is widely used in Indian universities and is fine for cleaning as long as you paste and save syntax rather than clicking through menus; the trade-offs are compared in [SPSS vs R for data analysis](/blog/spss-vs-r-for-data-analysis/).\n\n**Excel** is acceptable for small, simple datasets, for example a few hundred responses with no rosters. Its weakness is the audit trail: manual edits leave no record of what changed. If you must use Excel, keep the raw sheet untouched, do all changes in Power Query or in formula columns, and keep a written log. Watch for automatic date conversion and lost leading zeros on import.\n\n## Worked Example: An Illustrative 1,200-Household Baseline\n\nThe figures below are illustrative, not from a real project. They show how the checklist plays out on a typical CAPI baseline survey for a rural livelihoods programme.\n\n**Starting point.** The server export holds 1,262 household submissions against a target of 1,200, plus member and plot rosters.\n\n**Steps 2 and 3, structure and duplicates.** Village codes lost leading zeros on import and were re-read as text. The ID check finds 31 exact duplicate submissions (dropped) and 9 IDs used for two different households (re-assigned after the field team confirmed the correct IDs). Records: 1,231.\n\n**Step 4, respondent quality.** Four records lack consent and are removed. The median interview took 52 minutes; 11 interviews took under 17 minutes. Back-checks confirmed all 11 as genuine small households, so they were kept. Twenty-seven training-day test forms were removed. Records: 1,200.\n\n**Steps 5 and 6, range, consistency and skip logic.** Land operated did not equal land owned plus leased in for 64 households; 51 were unit errors (bigha entered as acres) fixed using the district conversion factor, and 13 were flagged as genuinely inconsistent and set to missing. Skip logic checks found 18 households with livestock sales but no livestock, all from an early form version with a routing error; they were set to \"not applicable\" after confirming the filter answer with audio recordings. Household size disagreed with the roster for 22 households, resolved by re-linking orphan rows.\n\n**Step 7, missing values.** Income had 7% missing, concentrated among households with salaried members. That pattern suggests the data are not MCAR, so income was multiply imputed using household size, education, occupation, landholding and asset index, and the report included results with and without imputation.\n\n**Step 8, outliers.** Three households reported monthly income above 15 times the median. Two were annual figures entered as monthly and were corrected after a phone check; one was a genuine trader household and was kept, with income analysed on a log scale.\n\n**Output.** A clean file of 1,200 households with weights and design variables, a log of 214 case-level changes, and a single do-file that rebuilds everything from the raw export.\n\n## Cleaning Panel Data: Baseline, Midline and Endline\n\nImpact evaluations add a second layer of cleaning, because the same households must be matched across rounds. The design is explained in [how baseline and endline surveys power impact evaluation](/blog/baseline-endline-impact-evaluation/); for cleaning, the main tasks are:\n\n- **ID matching.** Check that every endline household maps to a baseline ID, and investigate mismatches using names, phone numbers and GPS rather than assuming a typing error.\n- **Harmonising variables.** Questions that changed wording, categories or recall period between rounds must be recoded to a common definition, or flagged as not comparable.\n- **Attrition.** Record which baseline households were not re-interviewed and why, then compare their baseline characteristics with those who stayed. Differential attrition between treatment and comparison groups can bias the estimate.\n\nClean each round with the same script structure, then build the panel in a separate script. That separation makes it far easier to run a [difference-in-differences analysis](/blog/difference-in-difference-baseline-endline/) with confidence that the change you measure is not a cleaning artefact.\n\n## How DSTechnoverse Helps\n\nDSTechnoverse cleans and analyses survey data for researchers, CSR teams, NGOs, EIA consultants and businesses across India. Through our [statistical and research data analysis service](/services/statistical-research-data-analysis/) we take raw exports from ODK, KoboToolbox, SurveyCTO, CATI systems or paper data entry and deliver three things: the untouched raw file, a documented Stata, R or SPSS cleaning script, and a clean, labelled dataset with a cleaning log and codebook. Where we also run the fieldwork through our [socio-economic and baseline survey service](/services/socio-economic-baseline-surveys/), cleaning rules are built into the questionnaire and daily checks from the start. [Contact us](/contact/) to discuss your dataset.\n\n## Frequently Asked Questions\n\n### What are the main steps in survey data cleaning?\n\nProtect the raw file, import and check structure, verify unique IDs and remove duplicates, apply respondent quality rules, run range, consistency and skip logic checks, declare and treat missing values, investigate outliers, recode and derive variables, attach weights and design variables, verify the final file, and record every change in a cleaning log. Do it all in a script so the clean file can be rebuilt.\n\n### How much missing data is acceptable?\n\nThere is no fixed threshold. Under 5% missing completely at random is generally unproblematic. Above about 10% you should consider multiple imputation rather than deletion, and report the pattern. The mechanism matters more than the percentage: 3% missing because high earners refused is worse than 15% missing because a tablet crashed.\n\n### Should I delete outliers from my survey data?\n\nOnly if they are impossible or demonstrably erroneous. First check for unit and extra-zero errors, then correct from source if you can. Extreme but plausible values usually carry real information. Consider a log transformation or a robust method instead, and if you do exclude cases, report the analysis both with and without them.\n\n### What are skip logic checks?\n\nSkip logic checks confirm that conditional questions were answered by exactly the respondents who should have answered them. You test both directions: values present where the routing says the question should be skipped, and blanks where it should have been answered. Errors are common in paper surveys and in CAPI data collected across several form versions.\n\n### What is the difference between data cleaning and data screening?\n\nCleaning fixes errors such as wrong codes, impossible values, duplicates and routing mistakes. Screening checks whether the cleaned data meet the assumptions of your planned analysis, such as normality, homogeneity of variance and absence of multicollinearity. Cleaning comes first; screening decides which test you can run.\n\n### How long does survey data cleaning take?\n\nIt depends on survey length, rosters, collection mode and how much quality control happened in the field. As a rough guide, cleaning often takes 30 to 50% of total analysis hours. A 1,000-household CAPI survey with several rosters can take one to two weeks; paper surveys with manual entry usually take longer because they need double entry and reconciliation.\n\n### Can I clean survey data in Excel?\n\nFor small, simple datasets without rosters, yes. For anything larger it becomes risky, because manual Excel edits leave no record of what was changed, and Excel can silently convert codes to dates and drop leading zeros. Use Stata, R or SPSS syntax so every change is scripted and reproducible.\n\n### Which is better for survey data cleaning: Stata, R or SPSS?\n\nAll three work well if you script everything. Stata is the usual choice in development research and impact evaluation, R is free and strong for reproducible reports, and SPSS is common in universities. Choose the tool your analysts and reviewers know, and save the syntax. The audit trail matters more than the software.\n\n### Should I outsource survey data cleaning?\n\nOutsourcing makes sense when the dataset is large, has rosters or several rounds, or when your team lacks scripting experience in Stata, R or SPSS. Insist on receiving the cleaning script and log, not just a clean file. [How to hire a survey data analysis consultant](/blog/how-to-hire-survey-data-analysis-consultant/) lists the questions to ask before you commit.\n\n---\n\n**Need help turning your data into defensible results?** DSTechnoverse offers statistical and research data analysis services in SPSS, R, and Python — survey analysis, thesis and dissertation support, and business statistics. [Get in touch](/contact) to discuss your dataset.","related":[{"slug":"likert-scale-analysis","title":"How to Analyse Likert Scale Data: Complete Guide With Worked Example"},{"slug":"how-to-hire-survey-data-analysis-consultant","title":"How to Hire a Survey Data Analysis Consultant"},{"slug":"reliability-validity-survey","title":"Reliability and Validity in Survey Research"},{"slug":"common-aermod-mistakes","title":"10 Common AERMOD Modelling Mistakes That Fail Regulatory Review"}]}