DatasetsExcel Guides

Same survey code, different label: audit historical choice mappings in Excel

The code stayed the same. The label did not.

A response containing 007 can look perfectly ordinary until someone joins it to the latest option list. If the form changed, the resulting label may be readable and still belong to the wrong version.

This synthetic workbook asks a narrower question: given an archived dictionary and the original response fields, which label has exactly one valid match? It preserves the raw values and puts unresolved rows in a review queue.

The public problem behind the example

A KoboToolbox community question describes location combinations that looked correct during collection but appeared inconsistent in an export after choices moved into external CSV files. The author had multiple deployed form versions. A responder identified duplicates in the first attachments, but the author replaced those files and reported that the symptom continued. That thread does not establish a confirmed root cause.

In a separate question about mixed codes and labels, a community reply explains that stored choice names can cease to match the latest option list after a form update. These reports motivate an audit of historical mappings. The workbook does not reproduce either author’s records or repair Kobo’s export process.

Keep five matching fields together

For this example, a dictionary entry must match the form version, field or list, parent identifier, original code and requested label language. The rule is explicit and case-sensitive. A form owner should confirm the appropriate key before applying it to a real export. Some forms need a different parent path or another stable identifier.

The workbook contains seven original responses and seven archived options. All names and identifiers are synthetic. The raw codes are stored as text, including their leading zeros. A lookup never substitutes the current version when a historical version is missing.

Response Outcome Archive evidence
R1 Secteur Nord D1, version v1
R2 Secteur Est D2, version v2
R3 Review: no match No archived v3 entry
R4 Secteur Sud D3, different parent
R5 North Sector D4, English label
R6 Review: ambiguous D5 and D6 share a key
R7 Review: blank label D7 has no label

The result is four resolved responses and three review rows. Looking up 007 alone finds four dictionary candidates. Returning the first one would conceal the version, parent and language differences.

Count matches before returning a label

The response inputs are in Responses!A9:F15. The archive is in Archive!A9:G15. The helper keys retain each field’s text length and content, which avoids joining different field boundaries into the same string. EXACT provides case-sensitive comparison, and SUMPRODUCT counts matching dictionary rows.

A label is returned only when the required key fields are present, exactly one dictionary row matches, and that row has a nonblank label. Zero matches, duplicate matches and blank labels remain separate outcomes. The output in Review!A9:F15 retains the archive row identifier beside every resolved label. The totals are in Review!B6 and Review!E6.

What was checked

An independent calculation compared every response’s match count, status, label and archive identifier with the workbook formulas. There were 612 assertion checks across the baseline, eight input mutations and restored baselines. Those mutations cover case differences, a lost leading zero, a missing version, changed parent and language, a blank label, a duplicated key and an unknown field. An additional assertion checks the helper key’s three-character code length. The exported XLSX was also inspected to confirm that 007 remains text.

On November 24, 2026 (IST), Jolene read the identical public XLSX after the uploaded source remained ingesting. Its answer matched all seven independently calculated outcomes: four resolved and three requiring review. Every cited response row and matching archive row was checked, including both conflicting rows for R6 and the blank label in Archive!G15 for R7. This verifies the public-file analysis and its cited cells. It does not verify the native upload pipeline or resolve the original Kobo reports.

Download and adapt the audit

Download the synthetic historical choice label audit workbook.

The example uses fixed ranges of seven rows. Extend the input and formula ranges before adding records. Keep the original response values, retain versioned option files independently, and recover missing history from the form owner. A lookup cannot recreate a dictionary that was never archived.

Leave a comment