EXCEL Text to columns function

The EXCEL Text to columns function splits cell contents into multiple columns based on a delimiter.

Help CentreBuilding Processes

This article describes the RPA Excel functionality to split cell contents into multiple columns.

For a full list of available functions, please read EXCEL functions.


Description

The EXCEL Text to columns function splits cell contents into multiple columns based on a delimiter. On Windows, uses Excel's built-in TextToColumns. On macOS, uses a Python-based split.


Setting it up

To use the EXCEL Text to columns function, follow these instructions:

{{popups:rpas/add:action=excel-text-to-columns}}

Once on a process map:

  1. Navigate to the process where you would like to add the EXCEL Text to columns function
  2. Click on the green button's drop-down (right side of the green button labelled "Process")
  3. On the menu that appears, click on the "+ Activity" item
  4. From here you can select the EXCEL Text to columns option
  5. Click "Add" once you are done

Input parameters

ParameterRequiredTypeDefaultDescription
File pathYesTextFull path to the Excel file.
SheetYesTextName of the sheet.
Source rangeYesTextSource column range (e.g. A1:A100).
DelimiterNoText,Delimiter character (defaults to comma).
Destination cellNoTextSourceDestination cell (e.g. B1). Defaults to overwriting the source.

Output variables

This action does not produce any output variables.


Errors

ErrorDescription
File not openThe Excel file must be open.
Sheet not foundThe specified sheet does not exist.
Invalid rangeThe source range is not valid.

Tips

  • Common delimiters: comma (,), semicolon (;), tab, pipe (|).
  • Set a destination cell to avoid overwriting the original data.
  • Ensure there are enough empty columns to the right of the destination to hold the split data.

Related functions

See it working on your own data

Everything documented here ships with the platform – try the document tools free, or go live in 7 days.