lester tan
New Member
Members
Forum Posts: 1
Member Since:
February 17, 2021
February 17, 2021
Offline
hi there!
i am currently creating a stock portfolio tracker in excel where i want to get my current portfolio (stock name, units of stock current held, and the average price)
i am having some problems on getting the average price of a specific stock that i currently have
for example
i bought 100 shares of company X at $15
then you sold 100 shares of company X at $20 (i represented selling in my excel file as a negative number)
then you bought back 100 shares of company X at $16?
if i simply use the weighted average function , it will just get the weighted average of all the stocks..
but in reality i just want $16,
is there a way to do this in excel or google sheets?
thank you
Mynda Treacy
Admin
Forum Posts: 4703
Member Since:
July 16, 2010
July 16, 2010
Offline
Hi Lester,
Welcome to our forum!
As explained in my reply on YouTube,
"You'd need to add a column (to the ledger table) that marks shares as sold so you can then exclude those shares in your formulas with another criteria in the SUMIFS formula.
Please attempt this yourself. If you get stuck, please post your question and Excel file on our forum showing your attempt and we can help you further."
We can't do your work for you, we can only help you if you get stuck trying to do it yourself.
Thanks,
Mynda
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: John Woodley, Jan Elenbaas
Guest(s) 11
Currently Browsing this Page:
1 Guest(s)
1 Guest(s)
Top Posters:
Catalin Bombea: 1917
SunnyKow: 1432
Anders Sehlstedt: 900
Purfleet: 414
Frans Visser: 346
David_Ng: 306
Hans Hallebeek: 289
lea cohen: 246
Jessica Stewart: 219
A.Maurizio: 216
Newest Members:
david gavi
Rick KISA
Jan Elenbaas
Ranjeet Wankhade
Sugata Maity
Karen McCarron
Amanda Zibell
Kevin Sanderson
wer klaus
Richard Gower
Forum Stats:
Groups: 3
Forums: 24
Topics: 6880
Posts: 30152
Member Stats:
Guest Posters: 49
Members: 33699
Moderators: 2
Admins: 3
Administrators: Mynda Treacy, Philip Treacy, Jessica
Moderators: Velouria, Riny van Eekelen
© Simple:Press —