Contact

LET Function in LibreOffice Calc — Tested Examples

Lookup Beginner LibreOffice Calc

An explanation of LibreOffice Calc LET, including tested formulas, examples, expected results and common mistakes.

Verification status: Selected examples were executed in LibreOffice Calc 25.2.3.2. This does not establish that every formula and edge case was tested. How formula examples are checked

Availability and version history

  • Introduced: LibreOffice 24.8.
  • Availability: Supported in LibreOffice 26.8.1.1, verified against its function registry. This identifies a supported release, not a final working version.
  • Scope: Desktop Calc, using the English function name. Availability in other spreadsheet applications is separate.
  • Checked: 2026-10-14 — function reference; versioned support. Documentation/source check; not a new native test. Existing example-specific test claims below retain their stated scope.

The LET function assigns names to calculation results. This allows storing intermediate calculations, values, or defining names inside a formula. These names only apply within the scope of the LET function. LET creates temporary names within the formula. Naming amount=3 yields 12 after multiplying by 4; price=20 and quantity=3 produce 60.

Syntax and arguments

=LET(Name1; Value1 [; Name2; Value2; ...]; Calculation)

Square brackets mark optional arguments; do not type the brackets or ellipsis. Separate arguments with semicolons (;).

Argument Explanation
Name1; Value1 Required first name/value pair. Use a valid Calc name beginning with a letter, rather than a cell address.
Name2; Value2; ... Optional additional pairs. Each name must be immediately followed by its assigned value or expression.
Calculation Required final expression that produces the formula result; it follows all name/value pairs.

The names are local to this LET expression.

Official LET syntax and arguments.

Worked examples

Example 1: Name an intermediate value and reuse it

=LET(amount;3;amount*4)

Expected result: 12. This value was returned in the LibreOffice Calc 25.2 test.

Example 2: Reuse two named values

=LET(price;20;quantity;3;price*quantity)

Expected result: 60. This value was returned in the LibreOffice Calc 25.2 test.

How to interpret the result

LET creates temporary names within the formula. Naming amount=3 yields 12 after multiplying by 4; price=20 and quantity=3 produce 60.

Mistakes and troubleshooting

  • Check inputs and assumptions: The last argument must evaluate the result. Names cannot conflict with cell addresses.
  • Check argument order and format: Strings go in quotes, cell references do not. Functions that return arrays may require special entry.
  • Verify your own data: Reproduce the example first. If your formula returns an error, inspect the referenced cells and individual argument values.

IF · SUM · XLOOKUP

Tested version and primary reference

This function is available since LibreOffice 24.8, according to the LibreOffice function documentation.

2 example(s) on this page passed real calculations in LibreOffice Calc 25.2.3.2. This is not a claim about every possible input or other spreadsheet applications.