gpt-4o-2024-08-06· OpenAI
WildChat-4.8M (AI2)
give me excel formula random between 3 and 4.5
- User
give me excel formula random between 3 and 4.5
- Assistant
To generate a random number between 3 and 4.5 in Excel, you can use the
RANDfunction and some simple arithmetic. TheRANDfunction generates a random decimal number greater than or equal to 0 and less than 1. Here's how you can adjust this to get a number between 3 and 4.5:=3 + (RAND() * (4.5 - 3))This formula works by scaling the output of
RAND()(which is between 0 and 1) to the desired range size (4.5 - 3 = 1.5) and then shifting it up to start from 3.Every time the worksheet recalculates, this formula will yield a new random number between 3 and 4.5.