N
Nick
hi everyone
what i need is a macro which takes a random number from
Cell B2 and puts only the value in Cell B5. I have made
it so that the random numbers can only be between 2 and 12
and they are weighted on a distribution.
then, if the value in Cell B5 is a 2, 3 or 12 then stop
the stream and place a "Lose" in Cell C5, if the value in
Cell B5 is a 7 or 11 then place a "Win" in Cell C5. if
the value in Cell B5 is any other number (i.e. 4, 5, 6, 8,
9 or 10) then recalculate the random number and the value
only in Cell B6.
i then want the stream to continue of re-calculating the
random number and placing it one cell down, i.e., then B7,
then B8, then B9 and so on. once the stream of numbers in
a row is more than one then the stream only stops in two
cases (a) when the last number in the stream is the same
as the value in Cell B5, or (b) when the last number is a
7.
in the case of (a) i need a "Win" in the cell in column C
next to where the stream stops, in the case of (b) i need
a "Lose" in the cell in column C next to where the stream
stops.
is this possible with a macro?
what i need is a macro which takes a random number from
Cell B2 and puts only the value in Cell B5. I have made
it so that the random numbers can only be between 2 and 12
and they are weighted on a distribution.
then, if the value in Cell B5 is a 2, 3 or 12 then stop
the stream and place a "Lose" in Cell C5, if the value in
Cell B5 is a 7 or 11 then place a "Win" in Cell C5. if
the value in Cell B5 is any other number (i.e. 4, 5, 6, 8,
9 or 10) then recalculate the random number and the value
only in Cell B6.
i then want the stream to continue of re-calculating the
random number and placing it one cell down, i.e., then B7,
then B8, then B9 and so on. once the stream of numbers in
a row is more than one then the stream only stops in two
cases (a) when the last number in the stream is the same
as the value in Cell B5, or (b) when the last number is a
7.
in the case of (a) i need a "Win" in the cell in column C
next to where the stream stops, in the case of (b) i need
a "Lose" in the cell in column C next to where the stream
stops.
is this possible with a macro?