Roulette Excel Spreadsheet Betting Tracker using IF Formula

EJ Fly

New Member
Joined
Jul 30, 2015
Messages
6
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:

=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:

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
Sorry, didn't account for a Green roll:

=2*(D2="red")*B2+2*(D2="black")*C2-B2-C2
 
Upvote 0
Isn't Round 3 a -3 because you lose 4 and win 1?
Isn't Round 4 a 7 because you win 8 and lose 1?
 
Last edited:
Upvote 0
Thanks for the replies guys, really appreciate it!

Eric, I think that works a treat! I totally forgot about the green, would you say that's the easiest way to incorporate it?

kweaver, yes you're right by your calculations, this is why I'm on here because formulas and arithmetic is not always my strong suit! ha
 
Upvote 0
Yes, I think that works pretty good. I think the formula is pretty easy to follow:

=2*(D2="red")*B2+2*(D2="black")*C2-B2-C2

The part in blue subtracts out both of the red and black stakes. Then if red wins, the part in red adds back twice the red stake (your bet plus the winnings), and the same thing for the black part. If you want to allow someone to bet on green, it should be easy enough to see how to add that too. But for now, if it comes up double zero, then you lose both your red and black stakes.

Glad we could help!
:)

 
Upvote 0

Forum statistics

Threads
1,224,817
Messages
6,181,149
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top