Excel: How to randomly pick a number of items from a list using only 1 formula

preview_player
Показать описание
⚡⚡ This is a tutorial in Dynamic Array Excel, LET and LAMBDA ⚡⚡

00:00 Introduction
00:46 The Basic formulas in separate columns
03:17 Bringing it together in a single formula using LET
07:36 Naming the formula using LAMBDA
11:05 Storing your LAMBDAS in a GIST

🔢The Formula ( I realised I could AVOID the HSTACK by using SORTBY )

=LET(
SelectedList,B3:B12,
NumberOfItemsToReturn,4,
TAKE(
SORTBY(
SelectedList, RANDARRAY(ROWS(SelectedList))
),
NumberOfItemsToReturn,1
)

🖥️ My GIST

⏬Download my file

📕 BOOK
Did you know I've written a book "Power BI for the Excel Analyst"?

Connect with me

( apologies to Tahlia for accidentally missing her name out 😩 )
Рекомендации по теме
Комментарии
Автор

Well very nice to see so many stuff in one video! as for the brackets, the last one should always be black...😉😉

barttitulaerexcelbart
Автор

Thanks for the video!. How about this one without a Lambda. =CHOOSEROWS(A1:A10, SORTBY(SEQUENCE(C1), RANDARRAY(C1)))

daXcel
Автор

Is there a way to add tooltips to parameters? Also, what's the easiest way to make a Lambda global?

brianxyz
Автор

Please please help. Power Query. Somewhere I saw you can get a result in a step, then export that result to another query, come back to this query and ref the step before "exporting" and carry on with the current query.

ExcelWithChris
Автор

The battle I've had to get the Advanced Formula Editor enabled in our corporate Excel....a year for them to say no....oh well, keep to the old method of adding LAMBDAs.... 😒😒

grahamc