How to get this calculation into one formula? (betfair task)

r_ivica

Board Regular
Joined
Jul 13, 2007
Messages
91
Let me explain the situation how I get this calculation done, but in more steps. I want to know is it possible to get it in one step?

I have 3 teams in one football game and every team have some value (let's call them 'profit'):

ManUtd 40
Draw 40
Arsenal -60

Odds for those teams are:

ManUtd 2.72
Draw 2.66
Arsenal 3.80

As on Arsenal we have negative (-60) so we need to equal those 3 numbers (let's call them profits).
So we need to do this calculation: (3.80*26.31)-26.31= +73,668
--- where 26.31 is stake and formula for getting profit is: (stake*odds)-stake= profit

ManUtd 40-26.31 = 13.69
Draw 40-26.31 = 13.69
Arsenal -60+73.69 = 13.69

So now with those single calculation (bet) we get 'equal profit' 13.69

How to get this calculation automatically?
 
Last edited:

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Another example. This time it becomes little different as one negative and two positive numbers here.

I have 3 teams in one football game and every team have some value (let's call those values 'profit'):

Lyon 102
Draw -30
Marseille -50

Odds for those teams are:

Lyon 2.72
Draw 2.66
Marseille 3.80

As on Lyon have postive and on Draw and Marseille negatives we need to equal those 3 numbers (let's call them profits).
So we need to do this 2 calculations:
1.) on Draw need to stake 50 to get equal profit (2.66*49.62)-50= +82,37
Now situation is:
Lyon 52.38
Draw 52.37
Marseille -99,62


--- where 49.62 is stake and formula for getting profit is: (stake*odds)-stake= profit
(note that we cannot get 100% exact profit but this is close enough!)

2.) 1.) on Marseille need to stake 40 to get equal profit (3.80*40)-40= +112
Now desired situation is:
Lyon 12.38
Draw 12.37
Marseille 12.38
 
Upvote 0
Also second example. But this time for easier preview for you.
This time it becomes little different as one negative and two positive numbers here.

I have 3 teams in one football game and every team have some value (let's call those values 'profit'):

Lyon 102
Draw -30
Marseille -50

Odds for those teams are:

Lyon 2.72
Draw 2.66
Marseille 3.80

So it is like here:

Excel Workbook
BCDEFGHI
27*BACKLAYP/LNew betsNew backNew LayNew P/L
28ManUtd2,722,74102,00*0,000,00102,00
29Draw2,662,68-30,00*0,000,00-30,00
30Arsenal3,83,85-50,00*0,000,00-50,00
Sheet3




As on Lyon have postive and on Draw and Marseille negatives we need to equal those 3 numbers (New P/L).
So we need to do this 2 calculations:
1.) on Draw need to stake 50 to get equal profit (2.66*49.62)-50= +82,37
Now situation is:
Lyon 52.38
Draw 52.37
Marseille -99,62

--- where 49.62 is stake and formula for getting profit is: (stake*odds)-stake= profit
(note that we cannot get 100% exact profit but this is close enough!)
(odds are only BACK odds, ignore LAY odds here).

So we have this now:
Excel Workbook
BCDEFGHI
27*BACKLAYP/LNew betsNew backNew LayNew P/L
28ManUtd2,722,74102,00*0,000,0052,38
29Draw2,662,68-30,0049,6249,620,0052,37
30Arsenal3,83,85-50,00*0,000,00-99,62
Sheet3




2.) Next on Marseille need to stake 40 to get equal profit (3.80*40)-40= +112
Now desired situation is:
Lyon 12.38
Draw 12.37
Marseille 12.38

So now finally we got what we want:

Excel Workbook
BCDEFGHI
27*BACKLAYP/LNew betsNew backNew LayNew P/L
28ManUtd2,722,74102,00*0,000,0012,38
29Draw2,662,68-30,0049,6249,620,0012,37
30Arsenal3,83,85-50,0040,0040,000,0012,38
Sheet3



Please help me with getting this caluclations automatically without need to manually find those 'New bets' to get equal P/L (profit/loss) here.
 
Upvote 0
Why do you need/want it all in one formula?

Isn't it easier to take advantage of some helper columns/whatever for the intermediate stages of the calculation?

It should also be easier to maintain/change/check things if you used indivual columns/cells for each 'part' of the calculation.
 
Upvote 0
Why do you need/want it all in one formula?

Isn't it easier to take advantage of some helper columns/whatever for the intermediate stages of the calculation?

It should also be easier to maintain/change/check things if you used indivual columns/cells for each 'part' of the calculation.

I don't need it all in one formula. Just would like to avoid manually input those 'New bets' and search for them manually each time. Would like excel to find those 'New bets' for me to get 'equal P/L' calculation.
 
Upvote 0
I have found the solution for this :)
So in yellow 'new bets' area is displaying correct result (stakes)

Excel Workbook
BCDEFGHI
27*BACKLAYP/LNew betsNew backNew LayNew P/L
28ManUtd1,351,36140,000,000,000,0077,02
29Draw5,45,5-10,0027,7827,780,0077,02
30Arsenal12,513-300,0035,2035,200,0077,02
Sheet3 (5)


This is solution for placing back bets. Now will try to get same result for back and lay bets calculation as those would give slightly bigger profit I believe.
 
Upvote 0

Forum statistics

Threads
1,224,574
Messages
6,179,626
Members
452,933
Latest member
patv

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