Excel Lambda Now Supports Optional Arguments And ISOMITTED - 2417

If you like this content, please consider visiting the video on YouTube and subscribe to the MrExcel Channel to show your support!
This video has been published on Aug 1, 2021.
You can build Lambda functions in Excel that support optional arguments. A new ISOMITTED function lets you check if the argument was supplied or not.
maxresdefault.jpg


Transcript of the video:
Learn Excel from MrExcel Podcast episode 2417.
We are now allowed to have optional parameters in our Lambda functions in Excel.
Also a new function called ISOMITTED.
Hey, welcome back to the MrExcel netcast.
I am Bill Jelen.
Today the 7th of the new functions: ISOMITTED. The exciting thing here is that we can now build a Lambda where we can specify that some arguments are optional.
So here I want to pass forecast, actual, and then optionally an indicator which method we're using and the square brackets mean that that is optional.
So then here in the logic we can test if they omitted Method or if they said True for method then we use this formula.
Otherwise we switch over to the other formula.
You can see here in my test here, in the grid I'm passing it B2, B3 and B4 and we get one answer.
I'll press Ctrl+Ditto, (Ctrl and the quotation mark) and take out that optional argument.
By leaving the optional argument out, it reverts to a True thanks to this little bit of logic.
And I get a different answer.
Many functions in Excel allow optional arguments, and now your lambdas can allow them as well.
If you like these videos please down below click Like, Subscribe and Ring the bell.
Feel free to post any questions or comments in the comments below.
I want to thank you for stopping by.
We'll see you next time for another netcast from MrExcel.
 

Forum statistics

Threads
1,223,655
Messages
6,173,610
Members
452,522
Latest member
saeedfiroozei

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top