Docs
Browse Docs
Field guide · Categories and codes

Codes without a lookup

A column holds short codes such as 3, A, or XR, and the table that says what each code means is not in the file.

What it looks like

Before
status_codestatus
3·
A·
7·
3·
After
status_codestatus
3shipped
Aawaiting payment
7needs a decision
3shipped
The code is kept and the meaning is added beside it. Code 7 is in no lookup anyone could find, so it is not guessed.

How it happens

  • The system that produced the export stores codes and keeps their meanings in a separate table that was not exported.
  • The meanings lived in a manual, a form, or one person's memory.
  • New codes were added over time without anyone updating the list.

What it breaks

  • Nobody outside the original team can read the column, so it is ignored or misread.
  • Reports group by code, and readers supply their own idea of what each code means.
  • Two files that use the same code for different things are combined as if they agreed.

How to spot it

  • Look for a column of short values with few distinct entries and no obvious meaning.
  • Search the rest of the workbook and the source system for a sheet or table that pairs each code with a label.
  • Count rows per code. A code that appears only a handful of times is often a late addition missing from any list.

How to fix it

  • Find the lookup at the source: the system's reference table, its documentation, or the people who enter the data.
  • Add the meaning as a new column and keep the original code, so the translation can be checked later.
  • Leave undocumented codes flagged. Inferring a meaning from the rows that carry the code is a guess and should be labeled as one.
  • Store the lookup with the data so the next person does not have to find it again.

TermsLookup table, Reference data, Data dictionary, Crosswalk

Karg checks for many of these when it profiles a file, applies the fixes it is confident about, and sets the rest aside for your review. See how it works, or have our team clean your data for you.