Prepare Survey Responses Before Analysis: A Practical Method and Example
You have several response exports and need to start analysing them. Before joining them, check what each file contains, which questionnaire version it belongs to, and what missing or repeated values mean. This prevents a formatting difference from being mistaken for a difference in responses — or a real difference from being erased in the name of consistency.
The principle is simple: keep the files as received, make a separate working copy, and record every preparation decision. This article offers a human review of structured exports; it does not assume automatic cleaning or a merge without inspection.
For the specific steps to append or join multiple survey exports, see our guide to combining survey exports, including a mapping table and denominator checks.
Start with provenance, not with merging
Create an inventory before changing a cell. For each file, record its original name, who or what supplied it, when it arrived, the collection period and scope, questionnaire version, format, row count, and any filtering instructions. If you do not know one of these details, mark it “unknown” and verify it where possible; do not infer it from the filename.
Keep an original copy unchanged in a space with appropriate access controls. Work from a separate copy and keep raw data, prepared versions, and processing notes distinct. J-PAL recommends preserving original de-identified data and documenting manipulations; its resource presents a research workflow illustrated with Stata. The useful principle here is traceability, not a requirement to use a particular tool (J-PAL, Data Cleaning and Management).
Check whether the files really ask the same questions
Compare columns with the questionnaire that was actually used: exact wording, instructions, response options, scale, skip logic, population, and period. Different headers may refer to the same question, but verify this first. Conversely, two columns called “satisfaction” are not necessarily comparable if one asks about the facilitator and the other about the content.
For each variable, record an explicit mapping:
| Check | Question to ask | Decision to keep in the record |
|---|---|---|
| Wording and instructions | Are the question and its context identical? | Same, different, or to verify; reference to the instrument |
| Responses and scale | Are options, order, and codes the same? | Exact mapping or incompatibility; do not silently rescale |
| Population and period | Are respondents and collection window comparable? | Scope to retain, separate, or justify |
| Value type | Text, number, date, single choice, or multiple choice? | Original format and any conversion, with an example |
| Skip logic | Was the question asked of everyone? | Distinguish “not asked” from no answer |
The UK Government Data Quality Framework recommends defining checks according to intended use, then communicating dimensions such as completeness, uniqueness, consistency, validity, and collection context. It is a broad data-management and communication framework, not a survey-specific mandatory procedure (Government Data Quality Framework).
For a check-all-that-apply question, the multiple response analysis guide then distinguishes percentages of respondents from percentages of selections.
Identify missing and repeated values without blind correction
An empty cell can mean several things: skip logic meant the question was not asked, the respondent selected “prefer not to answer”, an export lost a value, or the answer is missing for another reason. Check the questionnaire and the collection tool’s rules. If the reason is still unknown, preserve the value as unknown rather than replacing it with zero, “no”, or an average.
For a Qualtrics file, value, label and missing-answer export options are part of those checks before any transformation.
A repeated response is not automatically a duplicate. Two people may give the same text; one person may submit twice; or two exports may contain the same submission. Do not deduplicate based only on similar answers. If a reliable submission identifier confirms a duplicate, document the rule and the number of affected rows, then keep the removed rows accessible in the source data and processing record. Without a reliable identifier or sufficient evidence, flag the case and ask for a decision.
Before sharing or importing the files, also check that you are authorised to process them, restrict access, and remove direct identifiers that are not needed for your work, in line with the rules that apply to your engagement.
Entirely fictional example: two exports, one changed question
Every name, date, count, question, identifier, and decision below is invented. This example describes no real client, survey, or data processing. A consultant is preparing two CSV files received after a workshop feedback survey. The exports are said to cover the same period, but the consultant does not assume they can be combined.
| Fictional file | Relevant columns | Finding after review | Fictional preparation decision |
|---|---|---|---|
workshop_waveA.csv | submission_id, Q4_useful, Q5_comment | Q4: “Did the exercises help you understand the method?”, scale 1–5; Q5 is open-ended. | Keep the source unchanged. Map Q4_useful to a documented working name; retain the original wording and scale in the data dictionary. |
workshop_waveB.csv | response_id, Q4_exercises, Q5_comment | The Q4 instruction changed; its scale runs from 1 to 7. Q5 retains the same wording and instruction. | Do not add or directly compare Q4 scores. Keep the two versions separate. Consider mapping Q5 only after confirming the same collection scope and rules. |
After verifying and documenting the mapping between submission_id and response_id, the consultant uses the working name submission_id. Two fictional rows then share the same identifier across both files. The consultant checks the export log and confirms that these are the same submission included in two overlapping extracts. They mark one row as a repeated file record in the prepared table, while keeping both source files and recording the rule in the log. An empty open response in one file is marked “missing from export” only after checking that the question was asked; the reason for the absence remains unknown. No missing answer is invented.
This example does not establish that the two files are comparable overall: only a question with verified wording, instructions, and scope may be considered for mapping. If those checks fail, keep the corpora separate and explain why.
Keep a transformation log
One row per change is often enough. It should let another person see what changed, from which source, why, and with what consequence. These columns can go in a spreadsheet or working document:
| Date and owner | Source file and version | Operation | Reason and rule applied | Volume affected | Result and caveat |
|---|---|---|---|---|---|
| date; person | name, protected hash or reference, export date | rename, conversion, exclusion, mapping | reason and evidence checked | rows/columns before and after | output file, unresolved cases, limitation |
Also record decisions not to transform: incompatible scales, ambiguous identifiers, incomparable questions, and unexplained missingness. A deferred transformation is a useful decision, not an omission. The UK framework advises making changes, their context, and caveats visible so users can judge whether data suits their purpose. The right checks depend on that purpose.
Before analysis begins
Ask someone familiar with the questionnaire or collection to review the inventory and question mapping. Then check that:
- originals remain available and distinct from prepared copies;
- every column used points to an identifiable question, instruction, scale, and period;
- missing values have an explicit status or remain marked unknown;
- confirmed duplicates rely on a verifiable rule, and uncertain cases are flagged;
- transformations can be traced from the log;
- incompatible files or questions remain separate, with a clear explanation.
This review does not guarantee that responses represent a whole population or that the instrument perfectly measures its intended subject. It clarifies what is available and the scope the analysis can reasonably have. For the next step, see our guide to analysing questionnaire responses with AI, the article on codes, themes, and interpretation, and our method for quoting verbatim without distorting meaning.
If you then have a compatible structured response export, Harmate offers a CSV, JSON, or XLSX import flow with column mapping for you to review. It does not automatically merge multiple files, find or remove duplicates, or repair missing values; those preparation decisions remain part of your method and under your control (import responses into Harmate).
