EXCEL Transform data using AI function

The EXCEL Transform data using AI function in RPA.

Help CentreBuilding Processes

This article describes the RPA Excel functionality to transform data using AI.

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


Description

Describe a data transformation in plain English and AI breaks it into a sequence of Excel operations, then executes them. Takes a natural language instruction, analyzes the workbook context and sample data, and generates a sequence of primitive Excel operations. Each step is executed in order.


Available operations

AI can chain any combination of these 17 operations:

add_column, add_row, autofill, color, column_values, ensure_columns_exist, filter, find_replace, format, formula, remove_blanks, remove_columns, remove_rows, rename_columns, sort, sort_columns, write


Setting it up

To use the EXCEL Transform data using AI function, follow these instructions:

{{popups:rpas/add:action=excel-transform}}

Once on a process map:

  1. Navigate to the process where you would like to add the EXCEL Transform data using AI 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 Transform data using AI option
  5. Click "Add" once you are done

Input parameters

ParameterRequiredTypeDefaultDescription
File pathYesTextFull path to the Excel file.
SheetYesTextThe sheet to transform.
InstructionYesTextareaDescribe the transformation in plain English. Use exact column names for best results.
VariableNoTexttransformName of the variable where the transformation result will be stored.

Output variables

The result variable contains:

  • steps – Array of executed steps, each with action, success, and optional error
  • success – Whether all steps completed successfully

Errors

ErrorDescription
File not openThe Excel file must be open before using this function.
Sheet not foundThe specified sheet does not exist.
AI not configuredThe AI API endpoint is not configured.

Example instructions

  • Mark all rows where Amount > 1000 as 'High Priority' in a new Status column
  • Remove all rows where the Email column is blank and sort by Date descending
  • Rename 'Inv No' to 'Invoice Number' and 'Amt' to 'Amount', then sort by Amount
  • Add a Discount column and set it to 10% of the Price column
  • Remove duplicates based on Invoice Number, keeping the first occurrence

Tips

  • Use exact column names from the sheet for best results.
  • Combine multiple operations in one instruction.
  • Check the result variable to see which steps succeeded or failed.

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.