Excel has the ability to define custom functions with LET and LAMBDA1.

1.
Wayne, H. Excel Is Pretty Dang Cool. https://buttondown.email/hillelwayne/archive/excel-is-pretty-dang-cool/ (2022).