% Calculations for positive and negative

AbrahamGluck

Board Regular
Joined
Apr 12, 2016
Messages
129
Office Version
  1. 365
Platform
  1. Windows
SymbolPrice nowPaid - Credit/DebitWin/Loss %Expectation %Expectation $
AAPL-1.50-3.00WIN50%$1.50
AAPL+1.88+1.50WIN25%$0.375
AAPL+1.88+1.5025%50%$0.75
AAPL-6.00-3.00-100%50%$1.50

<tbody>
</tbody>


I have this Table above I want help for column D and F
Column A is the product,
Column B is the Price as of now,
Column C is Price I paid or received for the sale,
Column E is my % expectation to return on the capitol on my paid price, Column F is the same with the $ amount
Column D is Results after calculating if Column B (price now) met the Expectation (column E) after checking Column C what I paid for it at the first place, and the formula needs to work for positive and negative as you can see the difference in the table
if the excitation is as expected the return should be WIN if anything other the return should be a % amount if its profit is a positive % or negative for loss -%
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
Re: % Calculations for positive and negetive

Hi,

check this:


Book1
ABCDEFG
1SymbolPrice nowPaid - Credit/DebitWin/Loss %Expectation %Expectation $
2AAPL-1,50-3,00WIN50%1,50Win
3AAPL1,881,50WIN25%0,38Win
4AAPL1,881,5025%50%0,7525%
5AAPL-6,00-3,00-100%50%1,50-100%
Sheet1
Cell Formulas
RangeFormula
G2=IF((B2-C2)>=F2,"Win",IF(B2>C2,((B2-C2)/C2),((C2-B2)/C2)))
 
Last edited:
Upvote 0
Re: % Calculations for positive and negetive

Hi,

check this:

ABCDEFG
1SymbolPrice nowPaid - Credit/DebitWin/Loss %Expectation %Expectation $
2AAPL-1,50-3,00WIN50%1,50Win
3AAPL1,881,50WIN25%0,38Win
4AAPL1,881,5025%50%0,7525%
5AAPL-6,00-3,00-100%50%1,50-100%

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet1

Worksheet Formulas
CellFormula
G2=IF((B2-C2)>=F2,"Win",IF(B2>C2,((B2-C2)/C2),((C2-B2)/C2)))

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>


Thanks jorismoerings! so much that sounds great?
The F column has not a formula now, can you do that as well? in order the formula you provide me should work.
 
Upvote 0
Re: % Calculations for positive and negetive

Like this:


Book1
ABCDEF
1SymbolPrice nowPaid - Credit/DebitWin/Loss %Expectation %Expectation $
2AAPL-1,5-3Win50%1,5
3AAPL1,881,5Win25%0,375
4AAPL1,881,525%50%0,75
5AAPL-6-3-100%50%1,5
Sheet1
Cell Formulas
RangeFormula
D2=IF((B2-C2)>=F2,"Win",IF(B2>C2,((B2-C2)/C2),((C2-B2)/C2)))
F2=ABS(E2*C2)
 
Upvote 0
Re: % Calculations for positive and negetive

Like this:

ABCDEF
1SymbolPrice nowPaid - Credit/DebitWin/Loss %Expectation %Expectation $
2AAPL-1,5-3Win50%1,5
3AAPL1,881,5Win25%0,375
4AAPL1,881,525%50%0,75
5AAPL-6-3-100%50%1,5

<tbody>
</tbody>
Sheet1

Worksheet Formulas
CellFormula
D2=IF((B2-C2)>=F2,"Win",IF(B2>C2,((B2-C2)/C2),((C2-B2)/C2)))
F2=ABS(E2*C2)

<tbody>
</tbody>

<tbody>
</tbody>

Thanks jorismoerings! This is really great works perfectly, and will help me a lot.

Thank you,
Abraham
 
Upvote 0
Re: % Calculations for positive and negetive

Like this:

ABCDEF
1SymbolPrice nowPaid - Credit/DebitWin/Loss %Expectation %Expectation $
2AAPL-1,5-3Win50%1,5
3AAPL1,881,5Win25%0,375
4AAPL1,881,525%50%0,75
5AAPL-8.00-15.00-46.6750%7,5

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet1

Worksheet Formulas
CellFormula
D2=IF((B2-C2)>=F2,"Win",IF(B2>C2,((B2-C2)/C2),((C2-B2)/C2)))
F2=ABS(E2*C2)

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>

Hi jorismoerings

I have start using this formula so I realized one problem, look on row 5 I pleased information the formula will return, in this case I want D5 to be a positive percentage return (instead of -46.67 should be positive) since C5 was much more negative than B5 so it's a win.
 
Upvote 0
Re: % Calculations for positive and negetive

Hi,

Change the formula to this:
=IF((B2-C2)>=F2,"Win",IF(B2>C2,(ABS(B2-C2)/ABS(C2)),((C2-B2)/C2)))
 
Upvote 0
Re: % Calculations for positive and negetive

Hi,

Change the formula to this:
=IF((B2-C2)>=F2,"Win",IF(B2>C2,(ABS(B2-C2)/ABS(C2)),((C2-B2)/C2)))


Now I have an opposite problem, the positive numbers will not shown a negative percentage number, if the positive number was gone lower than I paid for it at the first place, will shown positive no matter if has gone higher or lower.
as you can see on row 5 I paste in the info.

ABCDEF
1SymbolPrice nowPaid - Credit/DebitWin/Loss %Expectation %Expectation $
2AAPL-1,5-3Win50%1,5
3AAPL1,881,5Win25%0,375
4AAPL1,881,525%50%0,75
5AAPL2.003.0133.55%25%0.75

<tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,215,517
Messages
6,125,288
Members
449,218
Latest member
Excel Master

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