You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

How to calculate average percent?

I am aiming to record the profit/loss of share option trades, to calculate totals and the average percentage of profit/loss per trade. The total results at the bottom don't look correct. I can't see how there could be a dollar profit amount ($2335.09) yet the percentage profit is negative value (-59.6%). What am I doing wrong please?


Note that rows without a sell amount are trades that have been opened, but not closed yet.

Some trades are -100% as the options expired worthless.


User uploaded file

The formula in F28 is =AVERAGE(E)

MacBook Pro (15-inch Mid 2012), macOS Sierra (10.12.4), SSD, Optical Drive swapped for HD

Posted on Jan 3, 2018 8:49 AM

Reply
Question marked as Top-ranking reply

Posted on May 4, 2018 6:40 AM

JDfunky wrote:


How do I make the formula only calculate for the trades that are complete, and not for ones still opened?


You can do something like this:


User uploaded file



Formulas:


D2: =IF(LEN(C2)>0,C2−B2,"") , filled down.

E2: =IF(LEN(C2)>0,D2÷B2,"") , filled down


B10: =SUMIF(C,"<>"&"",B) (This sums only if there is no entry in cell in the Sale column.)

C10: =SUM(C)

D10: =SUM(D)

E10: =D$10/B$10



SG

4 replies
Question marked as Top-ranking reply

May 4, 2018 6:40 AM in response to JDfunky

JDfunky wrote:


How do I make the formula only calculate for the trades that are complete, and not for ones still opened?


You can do something like this:


User uploaded file



Formulas:


D2: =IF(LEN(C2)>0,C2−B2,"") , filled down.

E2: =IF(LEN(C2)>0,D2÷B2,"") , filled down


B10: =SUMIF(C,"<>"&"",B) (This sums only if there is no entry in cell in the Sale column.)

C10: =SUM(C)

D10: =SUM(D)

E10: =D$10/B$10



SG

May 4, 2018 6:41 AM in response to JDfunky

"I can't see how there could be a dollar profit amount ($2335.09) yet the percentage profit is negative value (-59.6%). What am I doing wrong please?"


I suspect you're not calculating what you think you are calculating.


You've told us the formula for the calculation in F28. This result tells what the profit or loss (before fees) would be IF each purchase cost was the same amount, and the percentage gain or loss on each sale was as indicated in column E. With a list of transactions of varying amounts this average gives little or no useful information.


Consider a small subset of the trades, chosen to magnify the misrepresentation of reality possible with this average.


Here are four transactions:

row 6: a 100% loss ($135)

row 8: a 100% loss ($105)

row 10: a 98% loss ($271)

subTotals: -298% -$511

row 11: a 279% gain ($2499)

Totals: -19% +$1988

Avg/TX: -5% +$ 497


Is this a useful calculation?


A better one, as Paul suggests, be of your average return percentage:

Total return/Total cost (closed trades only) - 1, formatted as percent.


Regards,

Barry


PS: What is the formula in E28?

Jan 4, 2018 6:36 AM in response to Barry

Thanks for your responses Barry and Paul.


Barry I suspect you are correct when you say I'm not calculating what I think I am! (and Paul I think is getting at that when he talks about 'weighting'?)


The formula in E28 is just SUM(E), probably not useful as you say.


Average return percentage sounds like the way to go, I'll try that. How do I make the formula only calculate for the trades that are complete, and not for ones still opened? Some kind of IF statement if column D has a value in it?


cheers

JD

How to calculate average percent?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.