Text Transform
Tidy a text column in one click. Change the case, or cut off stray spaces.
Pick a column, pick a transform
- Type text transform in the Search transforms box, in the Pipeline panel.
- Select Text Transform in the results.
- Open Select column and pick a column. Say you pick product_name in a catalogue file.
- Open the Transform dropdown and choose an option from the table below.
- Read the Preview that appears.
- Click Apply.
The eight options
| Option | Result | Example |
|---|---|---|
uppercase | Every letter becomes a capital. | Red Mug to RED MUG |
lowercase | Every letter becomes small. | Red Mug to red mug |
trim | Cuts spaces off both ends. | Red Mug to Red Mug |
ltrim | Cuts spaces off the left end only. | Red Mug to Red Mug |
rtrim | Cuts spaces off the right end only. | Red Mug to Red Mug |
capitalize | Capital first letter, small letters after it. | RED MUG to Red mug |
reverse | Turns the text back to front. | Red Mug to guM deR |
length | Counts the characters and writes the count. | Red Mug to 7 |
Two options need care. capitalize works on the whole cell, not on each word. length drops the text and leaves a count, so the column turns into a number column.
Read the preview first
A Preview block appears once you choose a column and a transform. It shows up to three real values from your data. Each line shows the old value, an arrow, and the new value. Change the option to refresh the preview.
The column is replaced
This step writes the result back into the same column. It does not add a column. Run Copy Columns first if you want to keep the original text.
The column keeps its position in the grid.
Treat only some rows
Click Add Condition below the preview. Build a test such as brand is Acme, then click Apply Condition. Rows that fail the test keep their old text.
For SQL users
A trim on one column runs as:
SELECT "sku", "price", TRIM("product_name") AS "product_name" FROM data
Try Text Transform with sample data →
Related Operations
- Update Values - Update column values with expression
- Find & Replace - Search and replace values in a column
- Math - Arithmetic operations on columns