I need Excel to select a value depending on a random coin flip. The values are: 5, 10, 15, 20, 25, ... through 95. The beginning number is always 10. If the coin returns tails the number returned will always increment one level (plus 5, but never greater than 95). If the coin returns heads the number returned will always decrement one level (minus 5, but never less than 5). However, if the coin returns heads two out of any three consecutive tosses the number will be set to 10 and everything starts over.
I'd like to perform this with INDEX/MATCH or VLOOKUP if possible. I'm able to get most of it, but the "two out of any three consecutive tosses" has got me stumped.
Thanx,
Ken
I'd like to perform this with INDEX/MATCH or VLOOKUP if possible. I'm able to get most of it, but the "two out of any three consecutive tosses" has got me stumped.
Thanx,
Ken