0
0
Excelspreadsheet~10 mins

LAMBDA for custom functions in Excel - Cell-by-Cell Formula Trace

Choose your learning style9 modes available
Sample Data

Column A has numbers. Column B uses a LAMBDA function to double each number from column A.

CellValue
A15
A210
A315
B1=LAMBDA(x, x*2)(A1)
B2=LAMBDA(x, x*2)(A2)
B3=LAMBDA(x, x*2)(A3)
Formula Trace
=LAMBDA(x, x*2)(A2)
Step 1: LAMBDA(x, x*2)
Step 2: LAMBDA(x, x*2)(A2)
Step 3: 10 * 2
Cell Reference Map
   A    B
1  5    =LAMBDA(x, x*2)(A1)
2 10 -> =LAMBDA(x, x*2)(A2)
3 15    =LAMBDA(x, x*2)(A3)
Cells in column B use the LAMBDA function to double the values from column A.
Result
   A    B
1  5    10
2 10    20
3 15    30
Column B shows the doubled values of column A using the LAMBDA function.
Sheet Trace Quiz - 3 Questions
Test your understanding
What does the LAMBDA function in cell B2 do with the value in A2?
AIt doubles the value 10 to 20
BIt adds 2 to the value 10
CIt returns the value 10 unchanged
DIt halves the value 10 to 5
Key Result
LAMBDA defines a custom function with parameters and is called immediately with arguments.