Average share (opening) price

JackDanIce

Well-known Member
Joined
Feb 3, 2010
Messages
9,922
Office Version
  1. 365
Platform
  1. Windows
Hi,

I have the following data, where a negative number represents a sell of shares and a positive number a purchase and column C shows at what price the transaction happened.
ABCDEF
TickerQuantityPrice TickerAverage Price
TSCO LN Equity VOD LN Equity?
TSCO LN Equity TSCO LN Equity?
TSCO LN Equity
TSCO LN Equity
TSCO LN Equity
TSCO LN Equity
VOD LN Equity
TSCO LN Equity
TSCO LN Equity
VOD LN Equity
VOD LN Equity
VOD LN Equity
VOD LN Equity
VOD LN Equity

<COLGROUP><COL style="WIDTH: 30px; FONT-WEIGHT: bold"><COL style="WIDTH: 104px"><COL style="WIDTH: 64px"><COL style="WIDTH: 64px"><COL style="WIDTH: 64px"><COL style="WIDTH: 104px"><COL style="WIDTH: 98px"></COLGROUP><TBODY>
[TD="bgcolor: #cacaca, align: center"]1[/TD]

[TD="bgcolor: #cacaca, align: center"]2[/TD]

[TD="align: right"]50 [/TD]
[TD="align: right"]323[/TD]

[TD="bgcolor: #cacaca, align: center"]3[/TD]

[TD="align: right"]-30 [/TD]
[TD="align: right"]330[/TD]

[TD="bgcolor: #cacaca, align: center"]4[/TD]

[TD="align: right"]60 [/TD]
[TD="align: right"]300[/TD]

[TD="bgcolor: #cacaca, align: center"]5[/TD]

[TD="align: right"]300 [/TD]
[TD="align: right"]325[/TD]

[TD="bgcolor: #cacaca, align: center"]6[/TD]

[TD="align: right"]-5 [/TD]
[TD="align: right"]360[/TD]

[TD="bgcolor: #cacaca, align: center"]7[/TD]

[TD="align: right"]200 [/TD]
[TD="align: right"]310[/TD]

[TD="bgcolor: #cacaca, align: center"]8[/TD]

[TD="align: right"]-50 [/TD]
[TD="align: right"]190[/TD]

[TD="bgcolor: #cacaca, align: center"]9[/TD]

[TD="align: right"]10 [/TD]
[TD="align: right"]350[/TD]

[TD="bgcolor: #cacaca, align: center"]10[/TD]

[TD="align: right"]-40 [/TD]
[TD="align: right"]320[/TD]

[TD="bgcolor: #cacaca, align: center"]11[/TD]

[TD="align: right"]25 [/TD]
[TD="align: right"]150[/TD]

[TD="bgcolor: #cacaca, align: center"]12[/TD]

[TD="align: right"]25 [/TD]
[TD="align: right"]155[/TD]

[TD="bgcolor: #cacaca, align: center"]13[/TD]

[TD="align: right"]-150 [/TD]
[TD="align: right"]180[/TD]

[TD="bgcolor: #cacaca, align: center"]14[/TD]

[TD="align: right"]-200 [/TD]
[TD="align: right"]170[/TD]

[TD="bgcolor: #cacaca, align: center"]15[/TD]

[TD="align: right"]40 [/TD]
[TD="align: right"]130[/TD]

</TBODY>

And I've been asked to calculate the average price per ticker. For now it doesn't matter whether it's based on a first in first out principle or first in last out principle.

Has anyone got a formula to calculate this?

Thanks in advance,
Jack
 
Thank you drsarao, that seems to work, although now I'm being asked to calculate something slightly different (though related to this), so need to ask a new question. Appreciate your time and replies
 
Upvote 0

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