EXCEL Smart formula (AI-generated) function

The EXCEL Smart formula (AI-generated) function in RPA.

Help CentreBuilding Processes

This article describes the RPA Excel functionality to generate smart formulas using AI.

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


Description

Describe what you want in plain English and AI generates the correct Excel formula. Sends a natural language description along with the workbook context (column names, sample data, target cell) to AI, which generates the appropriate Excel formula. The formula is written to the specified cell and optionally autofilled down the column. Handles absolute/relative references, complex functions (VLOOKUP, SUMIFS, INDEX/MATCH), and proper US locale formatting.


Setting it up

To use the EXCEL Smart formula function, follow these instructions:

{{popups:rpas/add:action=excel-smart-formula}}

Once on a process map:

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

Input parameters

ParameterRequiredTypeDefaultDescription
File pathYesTextFull path to the Excel file.
SheetYesTextThe sheet where the formula will be written.
CellYesTextThe cell where the formula will be placed (e.g. D2).
Formula descriptionYesTextareaPlain English description of the formula you need.
Autofill downNoSwitchOffAutomatically fill the formula down to the last row of data.
VariableNoTextsmart_formulaName of the variable where the result will be stored.

Output variables

The result variable contains:

  • formula – The generated formula text
  • explanation – Brief AI explanation of the formula
  • success – Whether the formula was written successfully

Example descriptions and generated formulas

DescriptionGenerated formula
Calculate the running total of Amount=SUM($C$2:C2)
Percentage of each row vs grand total=C2/SUM($C$2:$C$100)
Look up supplier name from Sheet2=VLOOKUP(A2,Sheet2!A:B,2,FALSE)
Days between Order Date and Delivery=E2-D2
IF Amount > 1000 then 'High' else 'Low'=IF(C2>1000,"High","Low")

Errors

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

Tips

  • Mention column names exactly as they appear in the sheet.
  • Specify the cell (e.g. D2) so AI can use correct references.
  • Enable 'Autofill down' for formulas that should apply to every row.

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.