Oct 27 2022 07:53 PM
I'm trying to make the total of my RandArray set equal a pre-determined total. Is there a way that this can even be done?
Oct 28 2022 04:33 AM
Let's say you want an array of 20 elements in a column with sum 500.
=LET(a, RANDARRAY(20), s, SUM(a), a/s*500)
Of course, you can use cell references instead of the fixed values 20 and 500.
Oct 28 2022 04:38 AM
Oct 28 2022 04:48 AM
Oct 28 2022 05:28 AM
Oct 28 2022 05:31 AM
Oct 28 2022 05:32 AM
This question has nothing to do with this discussion. Please start a new discussion and ask your question there.
Oct 28 2022 05:48 AM
Oct 28 2022 06:18 AM
Yeah, my idea was stupid. In the formula that I proposed, RANDARRAY generates numbers between 1.1 and 2.1 but then the multiplication to get the sum to 245 messes it up.
I can't think of a way to do what you want at the moment.
Oct 28 2022 06:24 AM