Guides

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

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.

CodeUse when the answer…Don't use forExample
Pricingmentions cost, value or plansbilling errors (use Support)"Prices went up again"
Bugs & reliabilitydescribes something broken, slow or crashingmissing features"The app crashes when I open the camera"
Feature requestasks for something that doesn't exist yetcomplaints about existing features"Please add a dark mode"
Ease of usefinds something confusing or easybugs"Couldn't figure out how to change my password"
Otherfits none of the above

Rules of thumb:

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

Want to skip the formulas? Turn hundreds of free-text answers into themes you can count and chart.

Categorize survey responses with SheetSorter

More guides