Set a Cell's Value

Sets the value of a cell in a worksheet to a specified text or formula.

Overview

This procedure sets the value of a cell in a worksheet to a specified text or formula. It’s useful for dynamically updating spreadsheets.

Only text values can be used to set the value of a cell for this procedure.

Prerequisite Data

These required data elements must be present in the automation before using the procedure.

Data Name
Data Type

the cell

Excel Cell

Syntax

Below is a line-by-line overview of the automation syntax. Expand each line to learn more.

set the cell to

What does it do?

Sets the value of a cell to a new text value. If the value starts with '=', it will be set as a formula.

Where does it go?

This phrase should be written on a new line.

Is it required?

✅ Yes — This phrase is required in the syntax.

Does it require input data?

✅ Yes — A Text value should be specified.

Examples

1. Set a Cell's Value to a New Value

get the worksheet's cell whose cell reference is "A1"
set the cell to "Updated value"

Last updated

Was this helpful?