Excel's new "X functions" are LET, LAMBDA, and the small family of helpers built on them (XLOOKUP, XMATCH, and the dynamic array functions like FILTER, SORT, UNIQUE, SEQUENCE, and TEXTSPLIT). They let you stop stitching together fragile nested formulas: you can name intermediate results, build your own reusable functions without VBA, and look values up in a single formula. Everything below assumes a Microsoft 365 or current Excel build where these functions are available; older perpetual versions support only some of them, and LET, LAMBDA and LAMBDA helpers are Microsoft 365 only. Menu labels differ slightly by version, platform and region, so treat the exact wording in the Ribbon as indicative.

What You'll Need

  • Excel in Microsoft 365 (Windows or Mac), Excel for the web, or a recent build that includes dynamic arrays. Check by typing =SEQUENCE(3) in an empty cell: if it spills 1, 2, 3 downward, you have dynamic arrays.
  • A table of sample data to practise on, with at least two columns of data and one column of values to look up.
  • Any formulas stored somewhere you can recover, in case you overwrite something.
  • Macros are not required, and no add-ins are needed. LAMBDA replaces most of the old reasons people reached for VBA.

Step-by-Step

  1. Check your version. Open a blank cell and enter =LAMBDA(x,x+1)(5). If you get 6, you have the current engine. If you get a #NAME? error, your build does not support LAMBDA and you should use a modern Excel build or Excel for the web.
  2. Start with XLOOKUP for lookups. In any empty cell type =XLOOKUP(E2,A2:A100,C2:C100) where E2 holds the value you want to find, A2:A100 is the column to search, and C2:C100 is the column to return. Unlike VLOOKUP, XLOOKUP does not need the lookup column to be leftmost and does not break when you insert columns. Add a fourth argument for not-found text: =XLOOKUP(E2,A2:A100,C2:C100,"Not found").
  3. Use XMATCH when you only need the position. =XMATCH("Widget",A2:A100) returns the row position of the match, which is handy as input to other formulas such as INDEX. It also supports wildcards and an optional match mode, for example =XMATCH(E2,A2:A100,-1) for the next smaller item.
  4. Chain your logic with LET. Rewrite a formula that repeats the same block by giving it a name once. Example: =LET(price,B2, qty,C2, rate,0.2, price*qty*(1+rate)). Each name is defined once and reused, which is easier to read and faster to recalculate than repeating the same expression several times. Names must be unique and each pair is name-then-value, ending with the calculation as the last argument.
  5. Turn the formula into your own function with LAMBDA. Type =LAMBDA(price,qty,price*qty) and check the result by appending arguments in parentheses, e.g. =LAMBDA(price,qty,price*qty)(10,3), which returns 30. Once the logic is right, put LAMBDA into Name Manager.
  6. Save it as a named function. Go to Formulas > Name Manager > New. Give it a short name with no spaces, such as SUBTOTAL2, and in Refers to paste your LAMBDA without the trailing argument brackets. Click OK, then call it like any built-in function: =SUBTOTAL2(A2,B2). The name is stored in this workbook, so it travels with the file rather than with the user.
  7. Add a friendly description. In Name Manager you can add a comment for the name; it appears while typing the function name, which is an easy way to keep the function usable months later.
  8. Use FILTER, SORT and UNIQUE for list building. =FILTER(A2:C100,C2:C100="Open") returns only the matching rows. Wrap it in a sort: =SORT(FILTER(A2:C100,C2:C100="Open"),2,-1) to sort by the second column descending. Add a fallback: =FILTER(A2:C100,C2:C100="Open","Nothing open").
  9. Split and reshape text with TEXTSPLIT and TEXTBEFORE/TEXTAFTER. =TEXTSPLIT(A2,", ") splits a comma-separated cell into separate columns. =TEXTAFTER(A2,"-") and =TEXTBEFORE(A2,"@") extract parts of a string without FIND and MID.
  10. Let the spill. Dynamic formulas return a range of results that spill into neighbouring cells. Leave those cells empty. If you see #SPILL!, something is blocking the space; clear it or wrap the formula in a reference so it returns a single value.
  11. Test and lock it in. Run each new formula against a few known values before relying on it, and paste values if the result has to be sent to someone on an older Excel version that lacks these functions.

Common Mistakes

Repeating expressions instead of using LET is the most common one: it still works but becomes unreadable and slow. Naming a LAMBDA the same as a cell reference, or using spaces and punctuation in the name, breaks it; the name has to stand on its own. Forgetting that LAMBDA arguments are positional, not optional, produces #VALUE! when you call it with too few arguments. Writing XLOOKUP ranges with the lookup array and return array of different heights produces a #VALUE! error, so keep them the same size. Finally, saving as .xls or pasting into an old workbook can strip the new functions, so keep workbooks in .xlsx format.

Tips

Use XLOOKUP's fourth argument for a clean not-found message and its fifth for a wildcard or binary match instead of wrapping the whole formula in IFERROR. Keep spoke names short but meaningful. Break a long LAMBDA into several smaller named functions, each tested, then compose them. Use the formula bar's shown parameter tooltip to remember argument order on custom functions. For shared workbooks, put critical LAMBDAs in Name Manager and add a note in a hidden sheet describing each one. For audit purposes, LET is often enough: you can name every intermediate step and inspect them by temporarily returning one name at the end of the formula.

Troubleshooting

If you get #NAME?, the function is not known to this build. Check your Excel version and update, and confirm you are not typing the function inside a text string. If you get #SPILL!, free the cells below or to the right of the formula. If a custom LAMBDA shows #VALUE!, the number of arguments you passed does not match the names defined. If a lookup returns the wrong row, check that the lookup column contains no leading spaces or trailing text, and that numeric IDs are stored as numbers rather than text. If the formula recalculates slowly, replace duplicated ranges inside LET with names and shrink full-column references to the actual data range.

If that did not work

Close and reopen the workbook, then recalculate with F9 (Ctrl+Alt+F9 for a full rebuild). If the formula still fails, paste the formula into a plain text editor and re-enter it to strip hidden characters. As a last resort, rebuild the function from its smallest tested part before adding complexity again.

Frequently Asked Questions

Do X functions work in Excel 2019 or 2016?

No. XLOOKUP, XMATCH, LET, LAMBDA and TEXTSPLIT are not available in those versions. You need Microsoft 365, Excel for the web, or a recent build carrying the modern engine.

Does a LAMBDA save to the person or the file?

It is stored in the workbook's Name Manager, so anyone who opens that workbook can call it, provided their Excel supports LAMBDA.

Can I share a workbook using LAMBDA with someone on an older Excel?

No. The function will show an error on an old build. Paste the results as values before sending, or share through Excel for the web.

What is the difference between LET and a named function?

LET names intermediate values inside one cell's formula. A named LAMBDA becomes a reusable function callable anywhere in the workbook.

Do I still need VBA?

Only for things beyond calculation, such as events and file automation. Most repeated formula logic can now live in a LAMBDA.

Why does XLOOKUP not find a value that is clearly there?

Usually a data type mismatch, such as text that looks like a number, or a stray space. Clean the column or use TRIM before comparing.