excelquest23
Board Regular
- Joined
- Apr 8, 2006
- Messages
- 58
Hello,
I would like for the value in cell A1 to be randomly drawn between 5 and 10 if the value of A2 is not 1, and to be 'frozen' with the existing value in A1 if A2 is equal to 1.
So, if A2 has a value 2 then value in A1 could be 8.
If value of A2 is then changed to 1, I would like for value in A1 to remain 8.
Is there an easy way to do this with an IF command? I tried the following but it didn't work:
=IF(A2=1,A1,(RANDBETWEEN(5,10)))
Thanks!
I would like for the value in cell A1 to be randomly drawn between 5 and 10 if the value of A2 is not 1, and to be 'frozen' with the existing value in A1 if A2 is equal to 1.
So, if A2 has a value 2 then value in A1 could be 8.
If value of A2 is then changed to 1, I would like for value in A1 to remain 8.
Is there an easy way to do this with an IF command? I tried the following but it didn't work:
=IF(A2=1,A1,(RANDBETWEEN(5,10)))
Thanks!