Profit based on sliding price scale

honkin

Active Member
Joined
Mar 20, 2012
Messages
374
Office Version
  1. 2016
Platform
  1. MacOS
I need to make a calculation for profit, but am struggling due to the fact the actual price is a calculation based on another price. If the original price is is any of 3 price ranges, it has a multiplication factor

Here is the normal profit calculation

=IF(AO21<>"",IF(K21<>J21,(AO21-1)*1,-1),"0")

Simply if K (Home Goals) does not equal J (Away Goals), then we do a simple profit calculation based on the price in AO. We are betting the game is NOT a draw

Here's the rub, though; the original price is to Back the draw and we don't have the Lay prices in this sheet, so we are approximating. There are 3 price ranges and this formula works correctly adjusting the price from AO.

=IF(AO21<=3,L20*1.1,IF(AO21<=10,L20*1.15,IF(AO22>10,L20*1.2,"0")))

So basically if price is <=3, price is increased by 10%; if <=10, price is increased by 15% and if over 10, it is increased by 20%.

How is it possible to have the codes combined so that profit or loss is calculated on any of the 3 possible prices and not the original price in AO?

Thanks in advance
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Fast answer needs visual help.
Pls attach a screenshot/XL2BB mini sheet.
Thanks for your reply. Happy to supply it, but not sure any visualisation will help much, as it is just a static price.

Predictology AI Export Apr with Reporting.xlsb
AMANAOAP
20True OddsOdds HomeOdds DrawOdds Away
212.253.363.472.16
226.21.564.285.56
233.22.173.553.23
242.92.223.583.13
257.291.325.39.02
263.61.843.854.05
271.3614.837.71.17
282.573.193.522.04
293.332.833.142.4
303.161.943.283.92
313.541.93.14.22
324.631.83.634.17
333.491.983.283.73
346.481.176.4113.21
352.662.313.373.15
363.122.073.213.51
rc-vdw-place-adapted-2021-01-01


The price in AO is used as the base, but the second calculation I supplied adjusts that price based where it sits in the price range.

cheers
 
Upvote 0
Its not enough information.
mini should display all cells inlvoved, like K21,J21,L20, with their formula (if any)
All other columns that not relevant, should be hidden, before copy mini sheet.
 
Upvote 0
Its not enough information.
mini should display all cells inlvoved, like K21,J21,L20, with their formula (if any)
All other columns that not relevant, should be hidden, before copy mini sheet.
Cheers

I just noticed the original price formula was incorrect (copied from something else I was working on). Here it is correctly.

=IF(AO21<=3,AO21*1.1,IF(AO21<=10,AO21*1.15,IF(AO21>10,AO21*1.2,"0")))

Here is the sheet with only J, K & AO

Predictology AI Export Apr with Reporting.xlsb
JKAO
20FT HFT AOdds Draw
21123.47
22404.28
23003.55
24033.58
25115.3
26223.85
27027.7
28133.52
29313.14
30123.28
31113.1
32103.63
33113.28
34406.41
35403.37
36113.21
37103.46
38103.05
39403.21
40243.3
41003.37
42013.6
43133.71
44113.79
45113.11
46023.8
47214.77
48123.29
49528.9
50113.16
51203.43
52113.96
53003.34
54323.67
55003.27
56033.52
rc-vdw-place-adapted-2021-01-01


Thanks so much for taking the time
 
Upvote 0
I'm not sure if I confused the issue by initially posting the incorrect code, but this is the issue

The below code calculates profit based on the price in AO, which you can see above.

=IF(AO21<>"",IF(K21<>J21,(AO21-1)*1,-1),"0")

This code correctly adjusts the price of the price in AO based on 3 odds ranges

=IF(AO21<=3,AO21*1.1,IF(AO21<=10,AO21*1.15,IF(AO21>10,AO21*1.2,"0")))

The aim is to combine the 2 formulas so that profit is calculated, not off the base price in AO, but on the adjusted price.

So if J & K are equal, the result is a loss of 1. If J & K are not equal, then the profit calculation is preformed.

I hope that clarifies it somewhat

cheers
 
Upvote 0

Forum statistics

Threads
1,214,918
Messages
6,122,246
Members
449,075
Latest member
staticfluids

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