Table editor

How to Convert mm, cm, and m to Centimeters in a Table

2026-06-20

Task

The supplier sends length in different units: 1200 mm, 80 cm, 1.5 m. The output column needs centimeters.

Short answer

First keep the number. If the source contains mm, divide by 10; if it contains the separate unit m, multiply by 100; leave cm unchanged.

How to Do It in Eofferix

  1. Open the settings of the output length_cm column.
    Animation showing how to open the length_cm column settings
    The click is on the settings icon of the length_cm column.
  2. Add number extraction \d+(?:[,.]\d+)?, then source-column conditions: \bmm\b → divide by 10, \bm\b → multiply by 100.
    Screenshot of transformation rules for the length_cm 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
skulength_raw
SKU-8001200 mm
SKU-80180 cm
SKU-8021.5 m

After

result
skulength_cm
SKU-800120
SKU-80180
SKU-802150

Process data faster with Eofferix

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

Sign up