[]
This function assigns names to calculation results.
LET(name1, name_value1, calculation_or_name2, [name_value2, calculation_or_name3...])
Argument | Description |
|---|---|
name1 | [Required] The first name to assign. Must start with a letter. Cannot be the output of a formula or conflict with range syntax. |
name_value1 | [Required] The value that is assigned to name1. |
calculation_or_name2 | [Required] One of the following:
|
name_value2 | [Optional] The value that is assigned to calculation_or_name2. |
calculation_or_name3 | [Optional] One of the following:
|
The last argument must be a calculation which returns a result.
Names of variables align with valid names that can be used in the name manager. E.g. "a" is valid but "c" is not because it conflicts with R1C1 style references.
LET(x, 5, SUM(x, 1))