Hi,
I'm trying to create a basic excel formula based on red/black bets on roulette. The basic layout is currently like this:
[TABLE="class: grid, width: 450, align: left"]
<tbody>[TR]
[TD="align: center"][/TD]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[TD="align: center"]C[/TD]
[TD="align: center"]D[/TD]
[TD="align: center"]E[/TD]
[TD="align: center"]F[/TD]
[/TR]
[TR]
[TD="align: center"]1[/TD]
[TD="align: center"]Bet Round[/TD]
[TD="align: center"]Red Stake[/TD]
[TD="align: center"]Black Stake[/TD]
[TD="align: center"]Bet Outcome[/TD]
[TD="align: center"]Bet Profit/Loss[/TD]
[TD="align: center"]Running Balance[/TD]
[/TR]
[TR]
[TD="align: center"]2[/TD]
[TD="align: center"]Round 1[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]Black[/TD]
[TD="align: center"]0[/TD]
[TD="align: center"]0[/TD]
[/TR]
[TR]
[TD="align: center"]3[/TD]
[TD="align: center"]Round 2[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]Black[/TD]
[TD="align: center"]-1[/TD]
[TD="align: center"]-1[/TD]
[/TR]
[TR]
[TD="align: center"]4[/TD]
[TD="align: center"]Round 3[/TD]
[TD="align: center"]4[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]Black[/TD]
[TD="align: center"]-2[/TD]
[TD="align: center"]-3[/TD]
[/TR]
[TR]
[TD="align: center"]5[/TD]
[TD="align: center"]Round 4[/TD]
[TD="align: center"]8[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]Red[/TD]
[TD="align: center"]15[/TD]
[TD="align: center"]12[/TD]
[/TR]
</tbody>[/TABLE]
I can't quite figure out what the formula should be in column E so the IF argument can make a calculation based on whether the Bet Outcome was Red or Black. I thought it would have been this:
But it comes up with a #VALUE ! error.
Can anyone help?
Thanks,
Stuart
I'm trying to create a basic excel formula based on red/black bets on roulette. The basic layout is currently like this:
[TABLE="class: grid, width: 450, align: left"]
<tbody>[TR]
[TD="align: center"][/TD]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[TD="align: center"]C[/TD]
[TD="align: center"]D[/TD]
[TD="align: center"]E[/TD]
[TD="align: center"]F[/TD]
[/TR]
[TR]
[TD="align: center"]1[/TD]
[TD="align: center"]Bet Round[/TD]
[TD="align: center"]Red Stake[/TD]
[TD="align: center"]Black Stake[/TD]
[TD="align: center"]Bet Outcome[/TD]
[TD="align: center"]Bet Profit/Loss[/TD]
[TD="align: center"]Running Balance[/TD]
[/TR]
[TR]
[TD="align: center"]2[/TD]
[TD="align: center"]Round 1[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]Black[/TD]
[TD="align: center"]0[/TD]
[TD="align: center"]0[/TD]
[/TR]
[TR]
[TD="align: center"]3[/TD]
[TD="align: center"]Round 2[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]Black[/TD]
[TD="align: center"]-1[/TD]
[TD="align: center"]-1[/TD]
[/TR]
[TR]
[TD="align: center"]4[/TD]
[TD="align: center"]Round 3[/TD]
[TD="align: center"]4[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]Black[/TD]
[TD="align: center"]-2[/TD]
[TD="align: center"]-3[/TD]
[/TR]
[TR]
[TD="align: center"]5[/TD]
[TD="align: center"]Round 4[/TD]
[TD="align: center"]8[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]Red[/TD]
[TD="align: center"]15[/TD]
[TD="align: center"]12[/TD]
[/TR]
</tbody>[/TABLE]
I can't quite figure out what the formula should be in column E so the IF argument can make a calculation based on whether the Bet Outcome was Red or Black. I thought it would have been this:
=IF(D2="Black", (C2*2-B2)), IF(D2="Red", (B2*2-C2), 0)
But it comes up with a #VALUE ! error.
Can anyone help?
Thanks,
Stuart
Last edited: