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:

Some videos you may like

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.

Eric W

MrExcel MVP
Joined
Aug 18, 2015
Messages
9,325
Sorry, didn't account for a Green roll:

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

kweaver

Well-known Member
Joined
May 8, 2018
Messages
930
Office Version
365, 2010
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:

EJ Fly

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

Eric W

MrExcel MVP
Joined
Aug 18, 2015
Messages
9,325
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!
:)

 

Watch MrExcel Video

Forum statistics

Threads
1,090,217
Messages
5,413,134
Members
403,464
Latest member
TheRepairGuy

This Week's Hot Topics

Top