um.. Yea it does work. the Rand() will return a different number every time it's called, so yes you need to call it only once. The trick of using the cell refference seems to work. Though I suppose there is a better way.
However, What I wanted to point out is one thing.
=IF(D1>0.5,"Dog",IF(AND(D1>0.2,D1<=0.5),"Cat","Rabbit"))
While that does work, it can be shortened.
=IF(D1>0.5,"Dog",IF(D1>0.2,"Cat","Rabbit"))
If the D1 is greater than 0.5, you'll get dog. If it isn't, then we go to second if.
If D1 is greater than 0.2 we don't need to test if it's less than or equal to 0.5 cause that was done b y the first IF. So we just return Cat. And if it's not greater than 0.2 then return Rabbit.
Bookmarks