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:

ABCDEF
1Bet RoundRed StakeBlack StakeBet OutcomeBet Profit/LossRunning Balance
2Round 111Black00
3Round 221Black-1-1
4Round 341Black-2-3
5Round 481Red1512

<tbody>
</tbody>



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

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
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,213,534
Messages
6,114,186
Members
448,554
Latest member
Gleisner2

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