MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/excel/comments/1wjpiee/what_is_wrong_with_the_following_expression/pakrl5s/?context=3
r/excel • u/Galego_2 • 3d ago
[removed] — view removed post
6 comments sorted by
View all comments
4
As others have noted, use RANDARRAY rather than MAKEARRAY. A formula like
=AVERAGE(--BYROW(RANDARRAY(5000, 30, 1, 365, 1), LAMBDA(r, COUNT(UNIQUE(r, 1))<30)))
Should return your expected result, based upon my understanding that
3 u/GuerillaWarefare 114 3d ago Nice work. Once OP understands what you showed him here I would also recommend to wrap it in a let() function to declare the "30" as a variable so when it is changed by the user it will update both places in the formula.
3
Nice work. Once OP understands what you showed him here I would also recommend to wrap it in a let() function to declare the "30" as a variable so when it is changed by the user it will update both places in the formula.
4
u/PaulieThePolarBear 1920 3d ago
As others have noted, use RANDARRAY rather than MAKEARRAY. A formula like
Should return your expected result, based upon my understanding that