» Adjusting Values Returned by the RAND Function
CATEGORY - Excel Formula and Function
VERSION - All Microsoft Excel Versions
Retrieving two random numbers between 0 and 30, ensuring that the first number (Num1) is always greater than the second one (Num2).
Solution:
Step 1:
To retrieve Num1, use the INT and RAND functions in the following formula in cell A2:
=INT(RAND()*30)+1
This ensures an upper limit of 30 for the number generated.
Step 2:
To retrieve Num2, use the INT and RAND functions in the following formula in cell B2:
=INT(RAND()*A2)
This ensures the number generated is smaller than Num1.
Book Store:
Recommended Books:
- Learn MS Excel 2002 VBA/XML Programming
- Good to Great: Why Some Companies Make the Leap... and Others Don't
- Flipping Properties: Generate Instant Cash Profits in Real Estate
- Excel 2002 Power Programming with VBA
- Word 2002: The Complete Reference
- The Financial Numbers Game: Detecting Creative Accounting Practices
No comments have been submitted.


