Help Centre › Building Processes
This article describes the RPA Excel functionality to trim whitespace from a column.
For a full list of available functions, please read EXCEL functions.
Description
The Trim column whitespace function strips leading and trailing whitespace (spaces, tabs) from all cells in a column. This is essential for data cleaning – extra whitespace can cause lookups, comparisons, and deduplication to fail silently.
Example
| Before | After |
|---|---|
Acme Corp | Acme Corp |
Beta Inc | Beta Inc |
Gamma Ltd | Gamma Ltd |
Setting it up
To use the Trim column whitespace function, follow these instructions:
{{popups:rpas/add:action=excel-trim}}
Once on a process map:
- Navigate to the process where you would like to add the function
- Click on the green button’s drop-down
- Click on “+ Activity”
- Select the EXCEL Trim column whitespace option
- Click "Add" once you are done
Input parameters
| Parameter | Required | Type | Default | Description |
|---|---|---|---|---|
| File path | Yes | Text | – | Full path to the Excel file. |
| Sheet | Yes | Text | – | Name of the sheet containing the column. |
| Column | Yes | Text | – | The name of the column to trim. Leading and trailing whitespace will be stripped from all cells. |
Output
This function does not return a value. It modifies the sheet in place.
Errors
- Column not found – the specified column name does not exist in the sheet
Tips
- Run this before lookups, deduplication, or comparisons to avoid mismatches caused by invisible whitespace
- This only removes leading and trailing whitespace – spaces within the text are preserved