Excel help with formula please.

Equine Investor

Board Regular
Joined
Nov 20, 2002
Messages
103
Hi, I am having trouble with a formula:
Here are the references:
J6=Stake (dollar amount)
J7=Commision (percentage)
I3 is either blank or dollar amount.
If I input this formula into I3 which is not blank, it works fine with $1.00 stake, but if I change the dollar amount in J6, it doesn't calculate correctly.
Here's my formula currently in I3:
=IF(I3="",$J$6*(100%-$J$7),(-I3-$J$6)+$J$6*2)
Any help appreciated.
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
I3 is either blank or dollar amount.
If I input this formula into I3 which is not blank, it works fine with $1.00 stake, but if I change the dollar amount in J6, it doesn't calculate correctly.
Here's my formula currently in I3:
=IF(I3="",$J$6*(100%-$J$7),(-I3-$J$6)+$J$6*2)
Are you REALLY trying to put a formula in cell I3 that contains references to cell I3 itself?
That will create circular references (a formula that is calling itself, the cell it resides in).
Is that really what you are trying to do, or is that a typo?

If that is really what you are trying to do, please show us a few examples with actual values and what your expected output is.
 
Upvote 0
Yes, it was a typo sorry, the formula is pasted into:
Here's my formula currently in J13:
=IF(I13="",$J$6*(100%-$J$7),(-I13-$J$6)+$J$6*2)
 
Upvote 0
It seams to work correctly:

1704250348808.png

In row 13: I13 is "" so you will get 15*(100%-5%)=14,25 which is correct.
In row 14: I14 is 10 so you will get -10-15+15*2=5 which is also correct.

Now I have to ask. Why do you do this?: (-I13-$J$6)+$J$6*2
Is there an error? Because that simply would be equal to $J$6-I13
 
Upvote 0
You would have to share your real data or workbook and expected results.
Im really not sure what you formula should look like with all the typos...
 
Upvote 0
Thanks, but in J14, it should be -135
Because liability is -(I14-$J$6)
Yeah, you seem to have too many typos in your question to make much sense of it.
Please walk us through your example, showing the original values that your formula is referencing in each cell, and explain what the formula should be returning and why (explain your logic).
 
Upvote 0
I figured it out...
The correct formula is =IF(J9="",$K$6*(100%-$K$7),(-J9*$K$6)+($K$6*1))
Thanks to all who tried to help.
 
Upvote 0
Solution
I am glad you figured it out.
We might have been able to help you resolve it sooner if you had answered our questions, so we could understand exactly what you were after.
 
Upvote 0
Basically you calculate the same thing with two different percentages.

(-J9*$K$6)+($K$6*1) is the same as $K$6*(100%-J9)
so your formula would look like:

Excel Formula:
=IF(J9="", $K$6*(100%-$K$7), $K$6*(100%-J9))

or
Excel Formula:
=IF(J9="", $K$6*(1-$K$7), $K$6*(1-J9))
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,182
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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