---
title: "3-Minute Win: Name Your LAMBDA Function and Call It From Any Cell in the Workbook"
date: 2026-05-02
updated: 2026-06-27T11:13:15Z
tags: ["Dynamic Arrays", "Excel", "LAMBDA", "Efficiency", "Microsoft 365", "Automation"]
canonical: https://bianca.codes/blog/3-minute-win-name-your-lambda-function-and-call-it-from-any-cell-in-the-workbook/
---

# 3-Minute Win: Name Your LAMBDA Function and Call It From Any Cell in the Workbook

_One function definition in the Name Manager, and every cell in the workbook can call it like a built-in. LAMBDA + named functions means you stop copy-pasting logic and start writing like someone wh…_

## The win

```

```

```

```

Stop pasting the same nested IF across three sheets. Define the logic once in the Name Manager as a LAMBDA, give it a name, and call it from any cell in the workbook the same way you call XLOOKUP. Excel does not care that you wrote it instead of Microsoft.

Three minutes once, every formula afterwards reads like English.

## How to do it

You need Excel for Microsoft 365. The example is `DAYS_LATE` - a function that takes a due date and returns the number of days overdue, or zero if it isn't.

1. Open the Name Manager. Formulas tab, Defined Names group, Name Manager. Or `Ctrl + F3`.
2. Click **New**. In the Name field, type `DAYS_LATE`. No spaces, no leading numbers.
3. In the **Refers to** field, paste this:

=LAMBDA(due\_date,
    IF(due\_date \< TODAY(), TODAY() - due\_date, 0)
)


The argument name comes first. The expression that uses it comes last.

1. Click **OK**. The name is now scoped to the entire workbook.
2. In any cell, on any sheet: `=DAYS_LATE(A2)`. It autocompletes from the formula bar like a built-in. Functionally, it is one.

## Why it works

LAMBDA turns an expression into a callable function. The Name Manager makes that callable function workbook-global, with the same lookup rules Excel uses for every other named function.

### Two consequences worth knowing.

The reference is live, not a copy. Update the LAMBDA definition once and every formula in the workbook that calls `DAYS_LATE` updates with it. No find-and-replace, no hunting for stragglers on the third sheet.

The arguments are positional, exactly like SUM or VLOOKUP. The reader's mental model for "Excel function" already covers this. Anyone opening the workbook for the first time can read `=DAYS_LATE(A2)` without asking what it means.

That single property is the whole upgrade. Logic stops being something you maintain in eight places and starts being something you maintain in one.

## When not to use it

For a formula that lives in one cell and will not be reused, the naming step is overhead with no payoff. The win is in the reuse.
