How to code open-ended survey responses
Open-ended questions like "What could we do better?" get the most honest feedback in a survey, and the least analysis, because nobody has time to read 800 answers. Coding is the standard fix: you assign each answer one or more themes (codes) from a defined list, then count them. Done carefully, it turns free text into numbers you can put in a report, without losing the voice of the customer.
Here's the process researchers use, adapted for a spreadsheet.
Step 1: set up the spreadsheet
- One row per respondent, with their ID in the first column.
- One column per open-ended question. Code each question separately; answers to "what do you like?" and "what should we fix?" need different code lists.
- Leave the original text untouched, and add your code columns to the right.
Step 2: read a random sample first
Before you decide on themes, read 30 to 50 answers chosen at random, not the first 50, which may all come from the same day or channel. Add a helper column with =RAND(), sort by it, and read from the top. Jot down every theme you notice.
This is called inductive coding: the themes come from the data. If you already know what you're looking for, say you need to count mentions of five product areas, you can start from a fixed list instead (deductive coding). Most projects mix the two.
Step 3: write a codebook
A codebook is a small table that defines each code well enough that two people would apply it the same way. It's the single biggest factor in getting consistent results, whether you code by hand or not.
| Code | Use when the answer… | Don't use for | Example |
|---|---|---|---|
| Pricing | mentions cost, value or plans | billing errors (use Support) | "Prices went up again" |
| Bugs & reliability | describes something broken, slow or crashing | missing features | "The app crashes when I open the camera" |
| Feature request | asks for something that doesn't exist yet | complaints about existing features | "Please add a dark mode" |
| Ease of use | finds something confusing or easy | bugs | "Couldn't figure out how to change my password" |
| Other | fits none of the above |
Rules of thumb:
- 5 to 12 codes per question. Fewer and you lose detail; more and the codes start to overlap.
- Code one dimension at a time. "Negative pricing comment" mixes topic and sentiment; keep them as separate columns.
- Always keep an Other code, and read what lands in it. A big Other pile means a theme is missing.
Step 4: code the answers
If each answer gets one main theme
Add a Theme column with a dropdown of your codes (Data → Data Validation → List in Excel; Data → Data validation → Dropdown in Google Sheets) and work down the list. Sorting by the answer text first doesn't help here; sorting randomly avoids drifting definitions as you get tired.
If answers can have several themes
Give each code its own column and mark 1 when it applies. It's more clicking, but you can count each theme independently. When you report, say "% of respondents mentioning", since the percentages will add up to more than 100%.
Letting software do the first pass
For hundreds or thousands of answers, you can have the coding done automatically and review only the uncertain ones. In SheetSorter, paste your codes and their definitions from the codebook as categories; each answer gets a theme plus a confidence score, and low-confidence answers are flagged. For multi-theme coding, ask one yes/no question per code instead ("Does this answer mention pricing?").
Whichever way you code, the codebook stays the same, and so does the next step.
Step 5: check consistency
Ask a colleague to code a random 10–20% of the answers using only the codebook, without seeing your codes. Then compare. With your codes in C2:C101 and theirs in D2:D101:
=SUMPRODUCT(--(C2:C101 = D2:D101)) / ROWS(C2:C101)
That's the percent agreement. Above roughly 80% is solid for most business surveys. Where you disagree, talk it through and sharpen the code definitions. Academic projects often report Cohen's kappa as well, which adjusts for agreement by chance.
If software did the first pass, the same check applies: code a random sample yourself and compare it with the software's themes.
Step 6: count and report
Count each theme with COUNTIF, or build a PivotTable with Theme in Rows and a count of IDs in Values:
=COUNTIF(C:C, "Pricing") / COUNTA(C2:C1000)
Numbers alone are flat, so pair each theme with two or three real quotes. To list every answer with a given theme (Excel 365, Excel 2021 or Google Sheets):
=FILTER(B2:B1000, C2:C1000 = "Pricing")
A simple report structure works well: the themes ranked by share of respondents, a short explanation of each, and representative quotes.
Common mistakes
- Inventing codes as you go without updating earlier answers. If you add a code halfway through, go back and recode.
- Vague definitions like "Product" or "Experience" that could cover almost anything.
- Reporting counts without the base: "40 people mentioned pricing" means little until you say out of how many.
- Ignoring the quiet majority: answers like "nothing, it's great" are data too. Give them a code.
Want to skip the formulas? Turn hundreds of free-text answers into themes you can count and chart.