10 custom LAMBDAs every US Excel user should save

A LAMBDA is a formula you name once and call like a built-in function. These ten already have pages on this site. Each one needs Microsoft 365, Excel 2024, or Excel for the web. Excel 2021 returns #NAME? for LAMBDA even when it already has XLOOKUP, FILTER, or LET.

Save one the same way every time. Copy the formula from that function’s page, including the line breaks. Choose Formulas, Name Manager, New. Set the scope to Workbook, paste into Refers to, and use the name printed on the page, such as xl.format.phone. Test it in a cell before you trust the name.

The workbook that holds a year of self-employment rows is the self-employed income and expense tracker.

Words, a phone, and a tax estimate

xl.number.words spells a US dollar amount under $1,000,000.

xl.number.words
=xl.number.words(B1)
=xl.number.words(B1)B2
A check amount
AB
1Amount1234.56
2Wordsone thousand two hundred thirty-four dollars and fifty-six cents
A picture of the number-words page. 1234.56 is one thousand two hundred thirty-four dollars and fifty-six cents.

xl.format.phone shapes ten digits. 5125550148 and 1 512 555 0148 become the same display. A length that is not 10 digits after a leading 1 is dropped comes back unchanged.

xl.format.phone
=xl.format.phone(B1)
=xl.format.phone(B1)B2
A fictional Austin number
AB
1Raw512-555-0148
2Phone(512) 555-0148
A picture of the format-phone page. 555-0100 through 555-0199 are reserved for fiction. The result is (512) 555-0148.

xl.federal.tax estimates 2026 ordinary tax for a single filer who takes the $16,100 standard deduction. This is not tax, legal, or lending advice. The figure is the one on that page: 10% of $12,400 is $1,240, 12% of the next $38,000 is $4,560, and 22% of the remaining $13,500 is $2,970. Those three pieces are $8,770.

xl.federal.tax
=xl.federal.tax(B1)
=xl.federal.tax(B1)B2
2026 wages, single filer
AB
1Wages$80,000
2Tax$8,770
A picture of the federal-income-tax page, not a return. The function subtracts the $16,100 standard deduction. $80,000 of wages is $8,770.

Seven more, with the numbers already on their pages

Name Call Result
xl.pad.zip =xl.pad.zip(2134) 02134
xl.is.zip =xl.is.zip("02134") TRUE
xl.us.holiday =xl.us.holiday(2026,"Thanksgiving") November 26, 2026
xl.quarter.end =xl.quarter.end(DATE(2026,7,4)) September 30, 2026
xl.commission =xl.commission(25000,10000,20000,5%,7%,10%) $1,700
xl.loan.balance =xl.loan.balance(6.9%,60,25000,12) $20,663.34
xl.percent.change =xl.percent.change(100,125) 25%

The ZIP text keeps the leading zero. xl.is.zip("7870") is FALSE. Thanksgiving 2026 is the fourth Thursday of November. July 4, 2026 sits in the quarter that ends September 30. The commission is marginal: $500, $700, and $500. The car-loan balance is the unrounded figure after 12 payments, displayed as currency. One hundred growing to 125 stores 0.25. A zero starting number is #N/A, not a huge percent.

xl.us.holiday returns the legal date. It does not move a Saturday holiday to Friday. July 4, 2026 is a Saturday, and the function returns July 4.


Template for this article

Self-Employed Income and Expense Tracker

More from the blog