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:

Eric W

MrExcel MVP
Joined
Aug 18, 2015
Messages
8,977
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
732
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
8,977
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!
:)

 

Forum statistics

Threads
1,081,990
Messages
5,362,584
Members
400,683
Latest member
LogChief

Some videos you may like

This Week's Hot Topics

  • populate from drop list with multiple tables
    Hi All, i have a drop list that displays data, what i want is when i select one of those from the list to populate text from different tables on...
  • Find list of words from sheet2 in sheet1 before a comma and extract text vba
    Hi Friends, Trying to find the solution on my task. But did not find suitable one to the need. Here is my query and sample file with details...
  • Dynamic Formula entry - VBA code sought
    Hello, really hope one of you experts can help with this - i've spent hours on this and getting no-where. .I have a set of data (more rows than...
  • Listbox Header
    Have a named range called "AccidentsHeader" Within my code I have: [CODE]Private Sub CommandButton1_Click() ListBox1.RowSource =...
  • Complex Heat Map using conditional formatting
    Good day excel world. I have a concern. Below link have a list of countries that carries each country unique data. [URL...
  • Conditional formatting
    Hi good morning, hope you can help me please, I have cells P4:P54 and if this cell is equal to 1 then i want row O to say "Fully Utilised" and to...
Top