managerimankeli
New Member
- Joined
- Sep 13, 2022
- Messages
- 2
- Office Version
- 365
- Platform
- Windows
I need the RAND function to generate numbers x amount of times and sum them, where x is defined by the value of another cell. I tried this using the formula:
=A1*RANDBETWEEN(1;4)
The problem is that this generates one number only and then multiplies it, as opposed to generating many numbers and summing them. For example, if A1=3, I would want results ranging from 3-12, but the formula actually returns 3, 6, 9 or 12. How would I make the RANDBETWEEN function actually run A1 times?
=A1*RANDBETWEEN(1;4)
The problem is that this generates one number only and then multiplies it, as opposed to generating many numbers and summing them. For example, if A1=3, I would want results ranging from 3-12, but the formula actually returns 3, 6, 9 or 12. How would I make the RANDBETWEEN function actually run A1 times?