EXCEL write function

The EXCEL write function allows you to write data to a specific cell in an Excel workbook.

Help CentreBuilding Processes

This article describes the RPA Excel functionality to write data to a specific cell in a workbook.

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


Description

The EXCEL write function allows you to write data to a specific cell in an Excel workbook.


Setting it up

To use the EXCEL write function, follow these instructions:

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

Once on a process map:

  1. Navigate to the process where you would like to add the EXCEL write 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, which will make a new form appear
  4. From here you can select the EXCEL write option
  5. Click "Add" once you are done

Inputs

  • File path: The full path to the document you want to work with
  • Sheet: The name of the sheet you wish to write to
  • Cell: The cell reference (e.g., A1, B2) where you want to write the data
  • Data: The data you want to write to the specified cell

Input parameters

ParameterRequiredTypeDefaultDescription
File pathYesTextFull path to the Excel file.
SheetYesTextName of the target sheet.
CellNoTextCell reference (e.g. A1). If omitted, writes to the active cell.
ContentYesTextThe value or text to write into the cell.
Clear cell firstNoBooleanOffClear the cell contents before writing.
Enter as formulaNoBooleanOffTreat the content as an Excel formula.
Keep as textNoBooleanOffForce the value to be stored as text, not a number.

Output variables

This action does not produce any output variables.


Errors

ErrorDescription
File not foundThe specified file path does not exist.
Sheet not foundThe specified sheet name does not exist in the workbook.

Tips

  • Use variables in the cell reference to write dynamically, e.g. A{row}.
  • Toggle 'Enter as formula' when writing formulas like =SUM(A1:A10).

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.