Skip to main content
Version: Streamsheets 3.0

VALUE.SET

Writes a given value into target cell, if specified condition evaluates to true.

Syntax

=VALUE.SET([Condition], Value, TargetCell, [OverwriteFormula])

Arguments

NameTypeDescription
Condition (optional)FormulaCondition to check for action. Defaults to FALSE if no condition is given.
ValueValueValue to write to target cell, if condition evaluates to TRUE.
TargetCellCellCell to put value into.
OverwriteFormula (optional)BooleanSet to TRUE remove any cell formula.

Default value: FALSE

Return

TypeDescription
BooleanTRUE, if successful

Examples

FormulaResultComment
=VALUE.SET(21, 42, B1)
TRUEWill put value 42 in cell B1, but keeps possible cell formula
=VALUE.SET(21, 42, B1, TRUE)
TRUESame as before, but overwrites possible cell formula so that 42 is returned on subsequent App steps
=VALUE.SET(, 42, B1)
TRUEDoes nothing because no condition is specified