FormulaCraft

LAMBDA

LAMBDA lets you create named, reusable formula functions directly in the spreadsheet. You define one or more parameter names followed by the formula that uses them, then call the resulting function with arguments. Assign it to a Named Range to use it anywhere in the workbook.

Topic:LAMBDA (reusable formulas)
Excel
=LAMBDA(x, x*2)(5)
Google Sheets
=LAMBDA(x, x*2)(5)

Try it with your data

Edit the grid or formula, then run it through a real spreadsheet engine — no signup.

Sample data — click any cell to edit

Runs server-side · free · no signup

How it works

  1. 1List one or more parameter names first — e.g. `x` — each separated by a comma.
  2. 2The last argument is always the formula body that references those parameters — here `x*2`.
  3. 3To test inline without a Named Range, immediately call the lambda by appending the argument(s) in parentheses: `(5)`.
  4. 4The result is the evaluated formula body with arguments substituted — 5*2 = 10.

Need a version for your data?

Try: “How do I create a reusable formula that doubles a number without writing a macro?

More on LAMBDA (reusable formulas)

See all →

Related

Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.

Last reviewed: