https://support.microsoft.com/en-us/office/lambda-function-bd212d27-1cd1-4321-a34a-ccbf254b8b67
LAMBDA can be used to write custom functions with inputs that you specify. LAMBDA functions can be saved in the Name Manager and then called from any cell in the workbook.
Might be good to define an Excel template with built-in LAMBDA functions?