Forum Discussion
Chris_Gross
Microsoft
Dec 03, 2020LAMBDA Examples: Distance between two cities
This post is the first of a series where we will be sharing out examples of lambdas. This is intended to highlight lambdas we have cooked up that show the power of this new super-charged function. Ad...
lori_m
Apr 16, 2023Steel Contributor
I had forgotten about this post but was led back here from Viz 's Fibonacci link above. Revisiting the methods described in previous comments I was pleased to find that it's now possible to define lambdas as addin functions that can be called from any open workbook.
Steps:
1. define lambdas in a new workbook
2. insert a macro sheet (ctrl+F11)
3. with the macro sheet selected, open name manager
4. edit name definitions clicking the Function option.
5. remove the macro sheet and save as addin (xlam).
6. open the addin and enter a test formula in a new workbook
Lambda definitions:
TIMEIT
=LET(t, timer(), LAMBDA(formula, timer() - t));
timer
=LAMBDA(ROUND(NOW()*24000*3600,0))
Test Formula:
=TIMEIT(SUM(SEQUENCE(1000,1000))) -> ¬60 milliseconds.
Sameer_Bhide
Aug 29, 2023Iron Contributor
This is great !!! Thanks a lot for this lori_m - There is no autocomplete/parameter help - but we can live with that.
Cheers
Sam
Cheers
Sam