davidalexander1959
New Member
- Joined
- Dec 27, 2020
- Messages
- 4
- Office Version
- 365
- Platform
- Windows
I have a very simple problem but I just can't figure it out. There are two columns. The left column has random 0 and 1 going down to 5000. The right column has the sequence starting at 10,10, 20, 30, 50, 80, 130, 210.
It's a betting sequence. A loss is a 0 and a win is a 1. Whenever the left column shows a 0 the bet increases until a win or the sequence reaches 210 when the sequence restarts at 10 in the row following the 1 or win. I have the formula sorted to start the sequence but when it resets. Column A has the 1 and 0. Column B is the sequence that needs to run. Column D has my formula I have started creating. As you can see it starts out ok. When it resets it is starting at 10 again but the next cell down should be another 10 to start the sequence off again. My formula adding the two above and putting the answer in D13. The 220 needs to be the second 10 to start the sequence again.
Thank you,
David
It's a betting sequence. A loss is a 0 and a win is a 1. Whenever the left column shows a 0 the bet increases until a win or the sequence reaches 210 when the sequence restarts at 10 in the row following the 1 or win. I have the formula sorted to start the sequence but when it resets. Column A has the 1 and 0. Column B is the sequence that needs to run. Column D has my formula I have started creating. As you can see it starts out ok. When it resets it is starting at 10 again but the next cell down should be another 10 to start the sequence off again. My formula adding the two above and putting the answer in D13. The 220 needs to be the second 10 to start the sequence again.
Thank you,
David
Roulette 123.xlsx | |||||||
---|---|---|---|---|---|---|---|
A | B | C | D | E | |||
1 | 0 | 10 | |||||
2 | 0 | 10 | |||||
3 | 1 | 20 | 0 | ||||
4 | 0 | 10 | 10 | 10 | |||
5 | 0 | 10 | 10 | ||||
6 | 0 | 20 | 20 | ||||
7 | 0 | 30 | 30 | ||||
8 | 0 | 50 | 50 | ||||
9 | 0 | 80 | 80 | ||||
10 | 0 | 130 | 130 | ||||
11 | 0 | 210 | 210 | ||||
12 | 0 | 10 | 10 | ||||
13 | 1 | 10 | 220 | ||||
14 | 0 | 20 | 10 | ||||
15 | 1 | 30 | 230 | ||||
16 | 0 | 10 | 10 | ||||
17 | 0 | 10 | 240 | ||||
18 | 0 | 20 | 250 | ||||
19 | 1 | 30 | 490 | ||||
20 | 0 | 10 | 10 | ||||
21 | 0 | 10 | 500 | ||||
22 | 0 | 20 | 510 | ||||
23 | 0 | 30 | 1010 | ||||
24 | 0 | 50 | 1520 | ||||
25 | 0 | 80 | 2530 | ||||
26 | 0 | 130 | 4050 | ||||
27 | 0 | 210 | 6580 | ||||
28 | 0 | 10 | 10630 | ||||
29 | |||||||
30 | =IF(OR(D3=210,A3=TRUE),$E$4,SUM(D2+D3)) | ||||||
Sheet2 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
D3:D28 | D3 | =IF(OR(D2=210,A2=1),$E$4,SUM(D1+D2)) |