Ravindra BagaleCourses & study guides मराठी Track your progress

9. Dynamic Arrays

Excel

9.7 LAMBDA (Brief)

Turn a repeated calculation into a function your workbook can call

Imagine a fictional Blinkit-inspired grocery workshop. A learner checks delivery fees in an orders worksheet, a summary and a teaching dashboard. At first they paste the same nested IF into each place. Later they adjust one threshold in the dashboard and forget about the orders worksheet. The very same subtotal now produces two different fees. LAMBDA can give that calculation a single workbook definition and a name people can recognize.

A function is a rule that accepts inputs and produces a result. You have already used built-in functions such as SUM. LAMBDA lets you describe a new rule using worksheet formulas and call it when you provide its inputs. A parameter is the name of an input inside the definition. An argument is a value you actually give when calling it. If a name like subtotal represents the parameter, the number 270 is an argument in a real test.

Use the brand names here to picture familiar types of records. All fee tiers, rates, orders and decisions are invented for the exercises. Excel can evaluate these rules with formulas. You only need a practice workbook and a version that supports LAMBDA.

Read the definition and supply its first input

In a blank practice cell, use a tiny quantity-times-price rule before attempting delivery tiers. Give it two parameters. Excel treats the last expression inside the definition as the calculation. The next pair of parentheses contains the values to pass in, in the same order.

=LAMBDA(qty,unitPrice,qty*unitPrice)(10,5)
  1. Declare what the rule expects. Inside the first parentheses, qty names the first input and unitPrice names the second. Choose names that describe values rather than their current worksheet addresses.
  2. Describe what the rule does. The last expression multiplies quantity by price per unit. The result is an amount. It has no delivery-fee logic and should have a name that reflects its actual purpose.
  3. Give it an example. In the second parentheses, 10 goes to qty and 5 goes to unitPrice. The result is 50. Replace 10 with 0 to get 0. Replace 5 with 7 to check the price branch of the arithmetic.
  4. Call it with cells. Put 10 in B2 and 5 in C2 on a scratch sheet, then replace the test call with (B2,C2). Edit either number and watch the result update. A caller can supply a reference instead of typing the value into the function.

Try removing the second pair of parentheses in a scratch cell. Microsoft documents #CALC! when a bare LAMBDA is written in a worksheet cell without being invoked there. Excel has received a function definition but the ordinary worksheet cell still needs a value to display. Adding a valid call resolves that specific problem. A worksheet formula can also pass a LAMBDA to a helper such as SCAN, which calls it according to the helper’s rules.

Do not use multiplication alone to prove the argument order. Reversing ten and five happens to give the same product. Use a division example to see the distinction. If amount is 64 and quantity is 2, =LAMBDA(amount,qty,amount/qty)(64,2) returns 32 rupees per item. Swapping the arguments gives 0.03125. Both are numbers. Only one has the intended meaning.

Name inputs for the caller

  • Use descriptive parameter names, such as orderAmount, qty and subtotal. Follow Excel name rules and leave periods out of parameter names. Avoid names that resemble cell addresses or reference markers.
  • Keep the argument order visible in lesson notes and the name's comment. Write “amount in rupees, then quantity as a positive number” before someone uses it on another tab.
  • Use the minimum set of inputs needed for the rule. A fee based entirely on subtotal does not need an ID or city. If the rules later vary by city, design the changed inputs and test old recipes before publishing a new definition.
  • Check LAMBDA in your version using the inline example. Microsoft lists Microsoft 365, Excel for the web and Excel 2024 in the function's applicability. Availability of LAMBDA and the exact controls for managing names are separate considerations. The following workbook definition steps use the desktop commands.

Assign a value or define a rule

In the previous lesson LET named the result of a calculation inside one formula. A workbook could use LET to give a city subtotal a readable name. LAMBDA can accept different subtotals as inputs each time it is called. Both can work together. A complex LAMBDA might use LET to name intermediate calculations inside its body. For this lesson keep the body small enough to test each case directly.

Here is a useful planning question before creating a named function. Will this operation appear once, or will it appear in several places under the same policy? A short one-off formula is usually readable inline. A shared threshold with several callers benefits from a common definition if somebody owns the rule and its examples. A visible reference table might suit a frequently changed policy because the reviewer can inspect thresholds without opening the formula editor. Begin with the simple threshold rule to learn how function definitions and calls fit together.

Define a fee rule with subtotal as its input, test with 270 to obtain 15, then call the named DELIVERYFEE with 499 to obtain zero.
Use one known input to prove the inline definition, then make a separate call to the saved workbook name.

Lab 1. Test a fictional delivery policy against its boundaries

Set up a blank sheet called FeeTests. Use numbers in the Subtotal and Expected fee fields. These made-up workshop tiers have four outcomes. Write the decisions down before typing the formula so that the worksheet result will have an independent check.

  • At ₹499 and above, the fee is ₹0.
  • From ₹199 up to but excluding ₹499, the fee is ₹15.
  • From ₹99 up to but excluding ₹199, the fee is ₹25.
  • Below ₹99, the fee is ₹30 for valid nonnegative subtotals in this first model.

Write these rules from the largest qualifying subtotal to the smallest. For an amount of 500, all three numerical comparisons are true. A sequence checking the 99 condition first would return 25 before reaching the zero-fee condition. The priority of the tests implements the intended rule. The upper limits of later cases are implicit because earlier larger conditions already failed.

Start with a direct inline call

=LAMBDA(subtotal,IF(subtotal>=499,0,IF(subtotal>=199,15,IF(subtotal>=99,25,30))))(270)

Follow the formula as a reader. Subtotal becomes 270. The first comparison with 499 is false. The next comparison with 199 is true, so the result is 15. It does not need to test the 99 tier to know what to return. Change the final parentheses to hold 150. The first two thresholds fail and the 99 threshold succeeds, giving 25. Predict the remaining examples first and use those predictions as checks.

Enter Subtotal in A1, Expected fee in B1, Actual fee in C1 and Check in D1. Use A2:B9 for these controls.
SubtotalExpected feeReason
9830Below the first qualifying threshold
9925First threshold included
19825Immediately below the middle threshold
19915Middle threshold included
27015Normal middle-tier input
49815Immediately below the free-delivery threshold
4990Free-delivery threshold included
9800Ordinary input well above the threshold
  1. Replace the test input (270) with (A2) and put that version in C2. Fill down to C9. Each formula now reads the subtotal on its own row.
  2. In D2 enter =IF(B2=C2,"Pass","Check") and fill down. Expect eight Pass labels. A check tests the actual numeric amount against a separately typed expectation.
  3. In a scratch copy intentionally change the main condition to strictly greater than 499. Fill down again. Only the row at 499 should fail in this fixture, giving an actual fee of ₹15 instead of zero. Restore the original comparison and require eight passing cases again.
  4. If the workbook accepts decimals, add 498.99 and 499.00 as extra cases. Their expected fees are 15 and 0. Enter them as numbers. A currency format can show two decimal places without making them text.
  5. In another scratch cell remove the invocation after the definition. Write down the observed error before putting the test value back. This brings out the difference between a rule and a worksheet result.

These rows are a compact test fixture, a known set of inputs and expected outputs you can rerun. You do not need many similar values in the middle of a tier. The most valuable samples are on opposite sides of each decision and right at each inclusive boundary. Include a control where the rule should produce zero intentionally, because a zero fee represents a valid decision.

The practice fee declines at each threshold. At 98 and 99 the fees are 30 and 25. At 198 and 199 they are 25 and 15. At 498 and 499 they are 15 and zero.
One value immediately below and one exactly at each threshold expose the direction of the comparison.

Follow a call through the fee rule

  1. Supply a subtotal

    Use 270 as the argument. The rule can now refer to it under the name subtotal.

  2. Try the largest qualifying value first

    270 is below 499, so the free-delivery branch does not apply.

  3. Use the middle threshold

    270 is at least 199, so the returned fee is ₹15.

  4. Test an adjacent boundary

    498 still gives ₹15. 499 changes the result to zero. Keep both as controls.

Separate eligibility from a bad input

This first function has a deliberate input agreement: it receives numeric subtotals that are zero or greater. If it receives a negative number, the nested IF returns the bottom tier. That is a mechanical result of the comparisons. It is not evidence a negative sale is eligible under a real policy. Decide whether negative amounts represent refunds and whether this report should exclude them, flag them, or estimate a different fee.

To practice, write the following as a separate inline test in a blank cell. The function produces #N/A with NA() when it cannot calculate a valid practice fee. Use text, a negative numeric value and a real zero as distinct test cases. The two invalid values should produce an error. A numeric zero is a valid input under this specific example and produces 30. This formula checks its own inputs before entering the same fee logic.

=LAMBDA(subtotal,IF(ISNUMBER(subtotal),IF(subtotal<0,NA(),IF(subtotal>=499,0,IF(subtotal>=199,15,IF(subtotal>=99,25,30)))),NA()))(-1)

Give the guarded version a different test name if you save it. Do not replace the simple name used by the next lab without updating its inputs and expected behavior. Excel can format the number 270 to display as currency. If someone pasted a text value such as "270", it needs source cleanup before being accepted as a number. If using a blank cell as a reference, consider how the full formula treats missing inputs and test that case separately. A clear worksheet validation message is useful alongside the amount.

Lab 2. Save the fee definition and call it on an order list

Work in the same Excel practice file as FeeTests. Use the original simple fee rule after checking eight results. Desktop menu labels vary by platform. Microsoft documents Formulas → Name Manager on Windows and Formulas → Define Name on Mac for creating this name. This lesson specifies a workbook-wide name so a formula on a different worksheet can call the same rule.

  1. Check for any existing name called DELIVERYFEE. If this practice workbook already has that name, use a newly created practice file or choose a distinct name and use it consistently. An existing name may belong to a different exercise.
  2. In the new-name dialog choose Name DELIVERYFEE and Scope Workbook. A name with workbook scope is recognized from its sheets. It travels with this saved file and does not install a system-wide Excel command.
  3. In Refers to, enter the definition below without a trial call. Use the optional comment to say “Practice tiers. Accepts subtotal in rupees as a nonnegative number. Returns estimated fee in rupees.”
  4. Save the new name. In a new blank sheet type =DELIVERYFEE(270). It should return 15. Also check =DELIVERYFEE(499) returns zero.
  5. Return to FeeTests and use =DELIVERYFEE(A2) as the actual formula, filled down. Confirm all eight checks still pass. That is evidence the workbook name runs the rule you already tested, including the edge cases.
=LAMBDA(subtotal,IF(subtotal>=499,0,IF(subtotal>=199,15,IF(subtotal>=99,25,30))))

Use the named rule once for every row in a report

Create OrdersLab and enter the following six columns in A1:F11. The reduced layout retains the real practice order IDs and amount/quantity pairs from Chapter 3. These exact columns are used in the extra exercises. Rename the Excel Table created from the grid to tblFeeOrders. Numeric fields are entered as numbers. Apply rupee formatting to the Amount column separately if desired.

OrdersLab A1:F11. Qty is column D, Amount is E, and Status is F.
Order IDCityPlatformQtyAmountStatus
BLK-1001PuneBlinkit264Delivered
BLK-1002NashikBlinkit3270Delivered
AMN-1003PuneAmazon Now1110Delivered
BLK-1004NagpurBlinkit2240Cancelled
AMN-1005KolhapurAmazon Now4232Delivered
BLK-1006PuneBlinkit5150Delivered
BLK-1007SolapurBlinkit11299Delivered
AMN-1008Sambhaji NagarAmazon Now3195Returned
BLK-1009PuneBlinkit2220Cancelled
BLK-1010NashikBlinkit190Delivered
  1. Put Estimated fee in H1. In H2, outside the Table, enter =DELIVERYFEE(tblFeeOrders[Amount]). This rule uses comparisons and IF in a way that operates on each amount in the column. Expect ten results in order down H2:H11.
  2. Read the result vertically as 30, 15, 25, 15, 15, 25, 0, 25, 15, 30. Check the first order at 64, the second at 270 and the seventh at 1299. A zero in the seventh row is the expected fee for that amount.
  3. In J2 enter =SUM(H2#). Expect ₹195 for all ten estimated fees. The spill reference reads the complete result belonging to H2. Keep J2 away from the output column.
  4. In J3 enter =SUM(tblFeeOrders[Amount])+J2. Expect ₹3,065 as the all-record amount plus estimated fees. This is a scenario calculation. The total explicitly includes orders of each status because the fee definition accepts Amount only.
  5. In a practice copy, append BLK-1011, Pune, Blinkit, 1, 499, Delivered as a new Table row. Confirm the Table includes it. The fee spills one row further with a new zero. ₹195 stays the fee sum, and the amount plus fees becomes ₹3,564. A constant total could hide a missed row here, so verify the row count as well as the total.

A named function may accept a single input or an array depending on its calculation. This delivery rule uses per-value comparisons and IF, giving one fee per input in a column. A LAMBDA written around SUM or AVERAGE can instead collapse the whole column into one number. Always test the shape when changing a call from E2 to a whole Table column. Restore the base ten rows before checking the next sample.

Preserve record alignment when you show a fee beside an order

The H2 spill follows the Table’s current record sequence. If you sort the Table, the list of amounts changes order and fees follow that new input order. The fee under H2 is a derived output range. Its cells do not belong to the Table record. If you build a second independent list of IDs and sort it differently, matching that list to H2 simply because the outputs sit at the same row can assign the wrong fee.

For a helper column on each record inside the Table, try a new column named Estimated fee and use =DELIVERYFEE([@Amount]) in its first data row. The current-row reference passes one subtotal. Use this as an alternative to the H2 spill. The result belongs to each Table record and can be filtered with the rest of its fields. Verify a known ID after sorting instead of treating the location as its identity.

The sum ₹195 includes hypothetical fees for cancelled and returned orders. If the report needs eligible delivered fees, use a separate rule and label. In a new scratch cell use =SUM(FILTER(H2#,tblFeeOrders[Status]="Delivered",0)) while both arrays still correspond to the same Table rows in the same order. It gives ₹140 for seven Delivered records. The remaining ₹55 consists of two cancelled fees of 15 and one returned fee of 25. Simply filtering the Table display does not turn the all-record SUM of H2 into a delivered-only calculation.

Try six small rules with the same known orders

Keep OrdersLab's original ten records. These exercises use fictional arithmetic scenarios. Enter each test in a free area away from the fee spill. Every case names the inputs and what to expect. If you already have a name in the workbook, use a distinct practice name consistently or start with a clean copy.

1. Test an 18% practice surcharge on the first amount

In OrdersLab, E2 is the BLK-1001 amount of 64. To ask what that value would be after a fixed hypothetical 18% surcharge, enter =LAMBDA(orderAmount,orderAmount*1.18)(E2). It returns 75.52. The multiplication factors in both the original amount and the added portion, so the result is an adjusted amount. If the question asks for the extra amount alone, subtract 64 to get 11.52. These examples do not assign a real tax rate.

2. Save the definition and test the largest amount

In Name Manager use AddPracticeSurcharge with =LAMBDA(orderAmount,orderAmount*1.18) as its definition. In OrdersLab enter =AddPracticeSurcharge(MAX(tblFeeOrders[Amount])). MAX first finds ₹1,299 from BLK-1007. The named rule receives that numeric argument and returns ₹1,532.82. Notice that the caller chooses the largest row. The reusable function accepts an amount and knows nothing about where it came from.

3. Define a rule with two inputs and test price per item

Use =LAMBDA(orderAmount,qty,orderAmount/qty)(E2,D2) on OrdersLab. The 64 amount divided by the 2 quantity returns 32 rupees per item. Amount and Qty are different kinds of values, so put the amount argument first each time. In a separate scratch call try 64 and 0 to see why a trustworthy function documents a positive quantity as a precondition.

4. Reuse the two-input definition on BLK-1006

Save PerItem as =LAMBDA(orderAmount,qty,orderAmount/qty). On the unchanged OrdersLab, BLK-1006 is row 7 and has amount 150 and quantity 5. =PerItem(E7,D7) returns 30. After sorting, find the row by Order ID rather than assuming row 7 still contains that order. Use the same-row values if you place a PerItem result in a Table column.

5. Apply a 10% practice discount at a new threshold

BLK-1007 is row 8 in the original sheet. Use =LAMBDA(orderAmount,IF(orderAmount>=500,orderAmount*90%,orderAmount))(E8). Reducing ₹1,299 by 10% leaves ₹1,169.10. Check 499 and 500 in place of E8. Their results should be ₹499 and ₹450. These inputs expose whether the threshold uses an inclusive comparison.

6. Compare row-by-row surcharge with one report total

Use =SUM(AddPracticeSurcharge(tblFeeOrders[Amount])) for all ten values, giving ₹3,386.60. In a free column enter the inner call alone to inspect the ten adjusted amounts and verify both its first and last result. Since this rule uses the same fixed factor every time and performs no individual rounding, multiplying the original ₹2,870 total by 1.18 agrees. If the worksheet explicitly rounds each adjusted row or uses different per-row rates, repeating this shortcut may give a different result.

Give a wrong but plausible answer a useful failure signal

The very short PerItem definition expects successful numeric inputs. If orders can have missing or zero quantities, a scope note helps more than hiding errors. A simple scalar version can send invalid inputs to an explicit fault response. Try it inline under a new cell. For 64 and 2 the result is 32. Change only 2 to 0 or a text value and require a visible error. Reviewers should know which rows need repair before using any aggregate built from this field.

=LAMBDA(orderAmount,qty,IF(AND(ISNUMBER(orderAmount),ISNUMBER(qty)),IF(qty>0,orderAmount/qty,NA()),NA()))(64,2)

The AND in this sample combines checks for a single pair of inputs. If you give the rule two arrays, AND reduces its inputs to one Boolean value rather than producing separate decisions per order. This is a row-level definition. To use it across a Table, call it once for each row in a calculated column. In a later lesson you will pass it to a helper that explicitly makes one call for each pair of values. Distinguishing those routes prevents a whole column from failing after only one quantity was wrong.

A worksheet helper can call a function for you

A regular formula such as DELIVERYFEE calls the named rule with whatever argument you write. Some built-in helpers accept the rule as an input and decide how to pass values to it. SCAN is one such helper. It shows a running result as it moves through an array. In this preview, total is the previous accumulated amount and nextAmount is the current row's amount.

=SCAN(0,tblFeeOrders[Amount],LAMBDA(total,nextAmount,total+nextAmount))
  1. Start from an accumulator of zero. An accumulator is a value carried from the previous step. Zero supplies the starting amount before any order is included.
  2. The first order has 64. The helper gives the rule total 0 and nextAmount 64. The rule adds them, so the first returned value is 64.
  3. The second order has 270. Total is now 64. The result for that row becomes 334. The third input 110 brings it to 444.
  4. With all ten unchanged records, this grows down ten rows to the known total 2,870. The initial 0 is a starting value and is not a separate row in the returned list.

Here the inner LAMBDA has no explicit invocation after its definition. SCAN calls it. Writing the inner definition by itself in a normal result cell would have the bare-function error introduced earlier. The outer function tells Excel that it is receiving a rule to run, not an amount to display immediately. Sort the source first if the report requires a chronology. The practice order sequence determines the intermediate results, even when the final total is unaffected by sorting.

Choose another built-in based on the output you need. Chapter 9.19 will compare helpers for one rule per item, one result per row or column, a single accumulated result, a list of intermediate accumulations, and an indexed array. Learn the calling convention from each function. Two helpers can ask their LAMBDA to take different kinds of parameters even when both use the same syntax for its definition.

Resolve a known failure without guessing

A definition does not return a value on the grid

If you get #CALC! from a standalone inline definition, append a small test call after the last parenthesis. If you see it from a more complex body, look at the result of the underlying expression too. A failed FILTER can also produce that error for a separate reason. A simple local call like =LAMBDA(amount,amount+1)(4) helps isolate the difference.

A workbook name is not recognized where you call it

Check the spelling and scope of DELIVERYFEE. The same name entered for a single worksheet has a local scope. A workbook-wide name is available from another sheet in that file. Test with the same named call in two sheets. Saving the same workbook under a new filename for an exercise copies its defined names within that copy. Starting an unrelated blank workbook does not create the same functions automatically.

If you see an unknown-function error for the inline LAMBDA example too, verify the receiving app and version. For a shareable assessment, ask the student to make one edit and recalculate a controlled example. Seeing a previously stored result in a preview proves only that you saw a displayed value. A static PDF or values-only export can document the output, but users cannot use it to calculate a new scenario.

The name exists but the working result is wrong

  • Wrong input count. A two-input PerItem rule expects both amount and quantity. An incorrect number of arguments can return #VALUE!. Verify the definition and the order in which it expects values.
  • Wrong data or order. Swap arguments in a scratch call just once to see how different the result becomes. Return to the correct argument order. If the source value is a text number, fix or explicitly handle its data type before comparing thresholds.
  • Wrong policy. If the subtotal 499 now returns 15, try the known inline version on 499 and use the named version beside it. Compare their threshold clauses. The nearest passing and failing rows localize the mistake.
  • Wrong output area. The named rule may work on one cell but spill for a column. Leave enough space outside the Excel Table for the full column. Check the blocked cell only after examining the spill boundary.

Never review a replacement only on the newest case. Return to the small FeeTests fixture and keep a new case if it revealed a missing boundary. If a team decides to update a shared fee definition, keep a copy of the old workbook and document what was changed, the units of the subtotal and the effective scope. A changed definition affects every caller when the workbook recalculates. Put side-by-side examples on a test sheet for reviewers before relying on the new results.

Record the inputs for someone who opens the workbook tomorrow

Write one sentence explaining what the caller supplies and one example showing what it returns. In this lesson a good note reads “DELIVERYFEE receives a single numeric subtotal in rupees or a column of such subtotals, and returns an estimated fee for each input. For 499 the expected fee is 0.” Include the valid domain and the fee thresholds. This makes the distinction between valid zero and an input fault explicit. A worksheet comment can then link the brief summary to the verified cases on FeeTests.

Quiz with explained answers

What does the second pair of parentheses do after an inline LAMBDA?

It invokes the function with specific argument values. For quantity 10 and unit price 5, the multiplication inside the definition uses those values and returns 50. The first parentheses describe a reusable rule. The second supply the inputs for this call. Removing the call from an ordinary worksheet test leaves Excel with the rule rather than a result.

Why is the expected fee for a subtotal of 499 exactly zero?

The highest threshold uses at least 499. Equality passes that first condition and results in the zero-fee branch. For 498 that check fails. The 199 comparison then succeeds and gives 15. If both values return 15, inspect whether the first test accidentally used a strictly greater comparison.

Should the workbook name include the final test call with 270?

Save the reusable rule without that call. If the Refers to expression already calls it for 270, it represents the result 15 for that test. The goal is a workbook name that can evaluate a new input, such as 499, whenever a cell calls it.

What order of arguments gives 32 in the PerItem rule?

64 as the first argument and 2 as the second. The definition expects amount, then quantity. Swapping them performs the division in the opposite direction. Check with a noncommutative operation such as division if you mean to prove argument order in a test.

Why does the fee sum stay at 195 after appending an order worth 499?

The rule returns zero for that appended order. The array has grown from ten entries to eleven. The original fees still add to 195, and the new fee is zero. Check shape and inspect the eleventh fee before concluding the Table reference picked up the new record.

What are the first two results in the SCAN preview?

64 and 334. The rule begins at zero and adds the first amount of 64. Its next call receives that result and the next amount, 270. The output shows the accumulated value at each record. The starting zero is not emitted as an extra first row.

Interview questions you can answer from practice

When would you introduce an Excel LAMBDA in a shared workbook?

Use it for a repeated calculation with a stable purpose and a clear set of inputs. For delivery fees I would first prove the thresholds on actual test values. I would save a readable name, document the units, and check that other worksheets use the same current definition. If the rule changes daily, a visible table of thresholds may help the team review changes.

How would you test an existing formula before converting it into a named function?

Choose normal values and inputs on both sides of every boundary. For the fictional fee, use 98 and 99, 198 and 199, 498 and 499. Also specify a data policy for numbers, negative values and missing inputs. Check the original formula, the inline LAMBDA and the named calls against the same expected results.

What is the difference between a local value name and a named LAMBDA?

A variable inside LET is visible in that one formula and stores a value or expression result. A workbook-defined function can accept a new argument each time and can be called from different worksheets in that workbook. A workbook value or range name can also be used throughout the workbook, but its meaning is given by what Refers to actually contains.

How do you know a named rule is safe to call with a whole column?

Inspect its body and predict its output shape. A fee using per-cell comparisons can return one result per amount. An aggregation such as SUM creates one total. Call your rule with a small array and compare each output with an individual test, then check growth and possible spill blockers.

Two worksheets disagree on the fee for the same amount. Where do you start?

Confirm both quantities are genuinely equal numbers. Then compare the formula and its name scope from each sheet. Check whether both use the approved workbook-wide definition. Recalculate known adjacent cases such as 498 and 499. This separates a definition error from an old local calculation or changed input.

Revision cards

  • Parameter and argument. A parameter names an input. An argument gives it a value for a specific call.
  • Test inline. Put known arguments in a second pair of parentheses and inspect the result.
  • Save the rule. The workbook name's Refers to field takes the LAMBDA definition by itself.
  • Check the edge. An amount at a threshold may be treated differently from one just below.
  • Know the shape. A definition may return one value, one result per row, or another array.
  • Track the callers. Shared definitions simplify maintenance. Use the same fixture before and after a change.

Continue the LAMBDA sequence

Microsoft references