<< Go back to all functions

LAMBDA

The LAMBDA function in Google Sheets creates and returns a custom function with a set of names and a formula expression that uses them. This powerful function allows you to calculate the formula expression by calling the returned function with as many values as the name declares. Dive into our comprehensive guide to master its application.

Function Syntax and Parameters

Syntax: LAMBDA(name, formula_expression)

Parameters:

  • name: The name or names to declare for the custom function.
  • formula_expression: The formula or expression that defines the behavior of the custom function.

Step-by-Step Tutorial

  1. Creating a basic custom function with LAMBDA:

    • Example: =LAMBDA(x, x^2)
    • Result: This custom function takes a single parameter, x, and returns its square.
  2. Using a custom function created with LAMBDA:

    • Example: =(LAMBDA(x, x^2))(5)
    • Result: This formula calculates the square of the value 5 using the custom function created with LAMBDA.

Use Cases and Scenarios

  1. Custom Calculations: Create specialized functions for unique calculations.
  2. Complex Formulas: Simplify complex calculations by creating custom functions.
  3. Reusability: Use the custom function repeatedly in different parts of your spreadsheet.

Related Functions

  • None

Related Articles

  • None