Table editor

How to Normalize Country Names to ISO Codes

2026-06-20

Task

The supplier file uses country names such as Germany, Spain, and France. The output table needs short ISO codes.

Short answer

Create country_code from country and add replacements: GermanyDE, SpainES, FranceFR.

How to Do It in Eofferix

  1. Open the settings of the output country_code column.
    Animation showing how to open the country_code column settings
    The click is on the settings icon of the country_code column.
  2. In Transformations, add one EqualReplace with rule for each country.
    Screenshot of transformation rules for the country_code column
    The Transformations block shows the full rule chain for this case.
  3. Save the column settings and go to the Export step.

Before / After

Before

source data
supplier_idcountry
S-100Germany
S-101Spain
S-102France

After

result
supplier_idcountry_code
S-100DE
S-101ES
S-102FR

Process data faster with Eofferix

Create a free account to automate catalogs and price lists around your own rules.

Sign up