馃攳
Create a Stock Portfolio Tracker on Excel Using Live Data - YouTube
Channel: Kenji Explains
[0]
in this video we'll create this stock portfolio聽
dashboard where you can track how your investments聽聽
[5]
are performing both in terms of totals and聽
individually comparing them to other stocks聽聽
[10]
and you can download the file in聽
the description so let's get into it聽聽
[13]
firstly in the transactions tab over here we've聽
got all of the different buy and sell orders that聽聽
[18]
we've made so far with the different the quantity聽
the price etc all the relevant information聽聽
[23]
and suppose we bought some new shares in apple聽
for that we would just go ahead and right click聽聽
[27]
from there you can go to insert and we want to聽
insert a row below that say we we bought it on聽聽
[32]
the 18th so we'll just go ahead and type that and聽
then here we just want to type apple press enter聽聽
[38]
that's going to auto populate for us and let's say聽
we bought 10 shares and the price for them so the聽聽
[43]
price that we paid at the time was 165.07 that's聽
gonna auto populate and we're just gonna put usd聽聽
[49]
here as well in case you're wondering what these聽
icons over here mean if you click on them you聽聽
[54]
can start to see that the share information聽
of the particular company starts to pop up聽聽
[59]
and it's quite a long description there so if you聽
want to use that format say for something else聽聽
[63]
say i put walmart over here hit enter from there聽
you have to go to data and then you're just going聽聽
[68]
to click on stocks over here it's going to ask you聽
for a data selector which is basically hey which聽聽
[73]
stock market are you referencing in this case聽
let's go with the new york stock exchange now聽聽
[77]
you can see that everything is in stock format聽
so if we click inside it all of the different聽聽
[81]
features of that particular share will pop up now聽
that we understand the transactions tab let's hop聽聽
[87]
onto the dashboard looking at the dashboard聽
tab over here we've got a table with all the聽聽
[91]
financial information that we need for our current聽
holdings and just below that we're gonna have some聽聽
[95]
visuals so firstly looking at the companies if聽
you go back to the transactions tab over here聽聽
[100]
the problem is that some of them are duplicated聽
as you can see you've got apple more than once聽聽
[104]
and so we need to find a formula to try account聽
for that so we'll use a combination of the聽聽
[109]
unique the filter and the sum is function聽
to filter by unique company names that have聽聽
[115]
a share count greater than zero firstly we'll聽
use a unique function so equals unique press聽聽
[121]
the tab key and for the array we're gonna put聽
the filter in there press the tab key this聽聽
[125]
array is gonna be the name of all the different聽
companies that we've got so all of these here聽聽
[129]
as you can see it starts to say table 1 that's聽
because that's the name of this table over here聽聽
[134]
press the comma key and for include we're going to聽
use the sumifs in here press the tab key and the聽聽
[139]
sum range that's going to be all the different聽
units that we've got that's what we want to sum聽聽
[143]
press the comma key the criteria range is going聽
to be that all of these here so all of the company聽聽
[148]
names press the comma key and that first criteria聽
we're also going to take the companies close those聽聽
[153]
brackets and we want those to be greater than zero聽
close those brackets and then close them again and聽聽
[158]
hit enter and now you can see that the formula聽
is gonna spill down all the way to the bottom聽聽
[162]
now we've got all the five different unique ones聽
then for the ticker you're just gonna go equals聽聽
[167]
select the company name then you want to do the聽
number sign here put a dot and as you can see over聽聽
[172]
here you start to get all this list and this is聽
basically because it's in stock format and you can聽聽
[177]
select a bunch of different things in our case we聽
want the ticker so we're just going to type ticker聽聽
[181]
symbol press the tab key and hit enter the reason聽
i put that number sign in front is so that it聽聽
[186]
spills down all across and whenever we add a new聽
share say that's going to be accounted for as well聽聽
[191]
for the industry it's the same idea so we'll聽
go equals select the company from there we're聽聽
[196]
going to press the number sign dot industry press聽
the top key hit enter and there you go for the聽聽
[202]
quantity we're gonna need a sum if of sorts to sum聽
the units so we'll go equals some ifs press the聽聽
[208]
tab key the sum range is gonna be the units like i聽
mentioned ctrl shift down arrow comma the criteria聽聽
[213]
range is going to be all the company names down聽
there comma that we want them to equal to these聽聽
[219]
ones over here close those brackets and hit enter聽
now that's going to auto populate for us as well聽聽
[225]
then for the current price we're just gonna select聽
the company name and we're gonna press the number聽聽
[230]
sign again dot and then price press the top key聽
hit enter for the market value it's gonna be the聽聽
[237]
price times the quantity so we'll go equals select聽
the current price press the number sign multiply聽聽
[242]
by the quantity press the number sign again and聽
hit enter then for the percentage breakdown this聽聽
[248]
is going to be the weight of that particular stock聽
in relation to the overall portfolio so we'll go聽聽
[253]
equals get the market value press the number sign聽
and then divide that by the sum press the tab key聽聽
[259]
of all of these closes brackets and hit聽
enter and that should auto populate as well聽聽
[264]
the dollar day change is going to be the price聽
of today minus the price of the previous days聽聽
[269]
so for this we'll go equals we're gonna select聽
the current price press the number sign there聽聽
[273]
and we're gonna minus that by the we'll select聽
this one over here and then press the number sign聽聽
[280]
dot and we're gonna put the previous price聽
previous close price there press the top key聽聽
[285]
and then we're gonna have to multiply those so put聽
the multiplication there times the quantity sold聽聽
[290]
so this one over here and then i'm just gonna have聽
to put a bracket over here at the front as well聽聽
[295]
and hit enter for the gain or loss which is going聽
to be unrealized in this case it's the current聽聽
[300]
share price or the current market value minus the聽
market value when you bought it so for this we'll聽聽
[305]
use a sumifs as well so we'll go equals firstly聽
we'll select the market value which is the current聽聽
[309]
one over here put the number sign and then we're聽
going to go minus the sum ifs press the top key聽聽
[315]
and the sum range is going to be the transaction聽
amount which is going to be this range over here聽聽
[320]
press the comma key and the criteria range is聽
going to be that the companies so all of these聽聽
[324]
over here press the comma key should equal these聽
ones over here and then hit close those brackets聽聽
[332]
and hit enter lastly we'll add the 52 week high聽
and low which is gonna be quite straightforward so聽聽
[336]
it's just gonna be this one and then number sign聽
dot the 52 week high press the tab key hit enter聽聽
[343]
and same thing over here so we'll select it number聽
sign dot and then we'll go 52 week low hit enter聽聽
[351]
nice that table with all the current holdings聽
is going to be at the core of this model聽聽
[355]
from there let's add a few summaries over聽
here so things like what our portfolio value聽聽
[359]
is i've just gone ahead and added these three聽
titles over here for all the summary financials聽聽
[364]
and for the portfolio value it's just going聽
to be the sum of all of the different holdings聽聽
[368]
so it's going to be all of these over here and hit聽
enter similarly for the dollar day change that's聽聽
[373]
going to be the sum of all of these over here hit聽
enter and lastly for the gain or loss we can just聽聽
[379]
copy this and paste it over here press alt hoi to聽
auto fit that and now that's looking more like it聽聽
[384]
now that we have all the relevant financials let's聽
work on some visuals for them so firstly for the聽聽
[389]
portfolio breakdown let's go ahead and select聽
the different tickers over here so ctrl shift聽聽
[394]
down keep pressing the ctrl key and here we want聽
to select all the different percentages then we're聽聽
[399]
gonna go under insert we can go to recommended聽
and the first one should be the pie chart聽聽
[404]
hit okay from there we'll remove the title and let聽
me go ahead and fast forward how i reformat this
[413]
based on this pie chart over here we can start聽
to see that amazon is a whole 40 percent of our聽聽
[418]
portfolio but this isn't a very diversified聽
portfolio after all the only asset class聽聽
[423]
are stocks so if you're interested in minimizing聽
risk by diversifying away from just owning stocks聽聽
[429]
you can consider allocating a portion of your聽
portfolio into alternative assets which according聽聽
[435]
to this jpmorgan report they're no longer聽
optional so if you want to gain access to聽聽
[440]
alternative asset classes masterworks is the聽
platform for investing in contemporary art聽聽
[445]
and also the sponsor of this video they let you聽
access exclusive investments from names like聽聽
[450]
banksy monet and other iconic artists for just聽
a fraction of what billionaires pay to purchase聽聽
[456]
as for how they perform although past performance聽
doesn't guarantee future results contemporary art聽聽
[462]
prices have outpaced the s p 500 total return聽
by 164 from 1995 to 2021 and have exhibited the聽聽
[471]
lowest correlation to equities from nearly any聽
major asset class since 2020 masterworks has sold聽聽
[477]
three paintings with each returning over 30 net聽
irr to investors and their new offerings usually聽聽
[484]
sell out in hours if you want to get in on it聽
early all you have to do is go to masterworks聽聽
[489]
dot io create an account check out what they have聽
and invest in their offerings and if you want to聽聽
[493]
skip their wait list go to a special link in my聽
description next to the pie chart over here it聽聽
[499]
would be nice to see who the biggest gainers and聽
losers are for us to try to see if we should sell聽聽
[504]
or buy a particular stock more so for this we'll聽
go ahead and select all the tickers so ctrl shift聽聽
[508]
down keep pressing the ctrl key and here we'll聽
select all of the gains and losses then we'll聽聽
[514]
go to insert let's go ahead on the recommended聽
charts again and let's go for it this one the聽聽
[518]
first one seems fine hit okay there and let聽
me go ahead and fast forward the reformatting
[528]
great based on this chart we can really start to聽
tell that tesla seems to be the best performing聽聽
[532]
chair for us while amazon over here is in losses聽
currently now while we did this chart over here we聽聽
[538]
can also go ahead under the gain and loss column聽
so go ahead and select it ctrl shift down and we聽聽
[542]
could do a conditional formatting like a data聽
bar for instance click on that first one as you聽聽
[547]
can see this kind of does a similar thing if you聽
prefer it one thing that this dashboard currently聽聽
[552]
isn't telling us is the historical performance聽
so is amazon just currently having a bad week聽聽
[557]
and that's why it has losses or is it because it's聽
been consistently a bad investment for us for this聽聽
[562]
it'd be nice to have some sort of a trend line聽
where you can see the historical figures so as聽聽
[566]
you can see over here we have a bit of a setup聽
where over here we're going to create a data聽聽
[570]
validation so we'll go under data go under a data聽
validation here and we're going to create a list聽聽
[577]
that list we can source it from over here is going聽
to be all the different tickers that we've got聽聽
[583]
hit okay there you go and now you can see hey聽
what's going to be the performance of tesla聽聽
[588]
and over here we're going to create聽
some sort of a chart to show that聽聽
[591]
same with the time periods let's say we go to聽
data validation and we're going to create a list聽聽
[597]
and here we're going to put them manually聽
let's say we go from one month to three months聽聽
[601]
to six months and lastly 12 months and聽
hit ok there now we're going to have the聽聽
[605]
drop down as well with this formatted we now聽
have to actually find the historical figures聽聽
[610]
so for this let's go to the charting tab so聽
control page down all the way to the bottom here聽聽
[614]
here under the actual part we're firstly going to聽
link all of them so we'll go equals thicker that's聽聽
[618]
gonna be the stock over here hit enter and for the聽
month we'll go equals and just link it to the time聽聽
[625]
period over here and hit enter and for this we're聽
just gonna create a formula so we'll go equals聽聽
[630]
stock history press the tab key and this is going聽
to give us the history of the particular stock so聽聽
[635]
the share price history this case the stock is聽
going to be tesla press the comma key for the聽聽
[641]
start date we're actually going to have to go聽
back three months that's going to be the start聽聽
[644]
date for us based on this figure over here so聽
we're gonna use the e date function press the聽聽
[648]
top key the start date is gonna be today press聽
the top key there close those brackets comma聽聽
[654]
and it's gonna be minus three months so聽
three months going backwards so we'll put a聽聽
[657]
minus sign then we'll put the three month sign聽
over here close those brackets comma and the聽聽
[662]
end date is just gonna be today we'll close the聽
brackets close the brackets again and hit enter聽聽
[668]
as you can see over here everything just auto聽
populated for us so we've got the close price聽聽
[672]
for a total of those three month period with this聽
information we can go ahead and create a visual聽聽
[677]
for it so let's go ahead and select everything聽
there ctrl shift down and then ctrl shift right聽聽
[682]
we're gonna go under insert go on the recommended聽
charts we're just gonna select the first the聽聽
[687]
second linear one actually hit ok there and we're聽
just going to drag it all the way to the top so聽聽
[692]
press the ctrl x go ctrl up arrow all the way to聽
the top here and let's paste it over here ctrl v聽聽
[698]
from there to reformat it firstly we're just going聽
to copy it and take it on to the dashboard tab聽聽
[704]
so right over here and this is where i'm聽
going to reformat it let me fast forward that
[710]
great now that this is reformatted for the聽
title over here we want to make it dynamic聽聽
[714]
such that it changes with the months so we'll go聽
equals we're going to click on that time period聽聽
[719]
then we're going to go to the ampersand quotations聽
press the space and then we're going to put month聽聽
[724]
trailing closing prices close the quotations聽
and hit enter now it says three months trading聽聽
[731]
closing prices if i go ahead and change this say聽
we change it to six months then the title changes聽聽
[736]
and so do the financial figures same thing over聽
here if i change the stock price say to apple聽聽
[741]
all of the historics are gonna change for that聽
six month period one final feature here would be聽聽
[746]
to compare stocks so suppose we were looking聽
to buy amazon shares and we also considered聽聽
[751]
walmart as an investment but we didn't and so聽
we want to see which actually performed better聽聽
[755]
and whether it was the right decision for us for聽
this we're gonna be using the comparison over聽聽
[760]
here that we've got down below so firstly let's go聽
ahead and put walmart over here press enter as you聽聽
[765]
can see this is not in share price format at the聽
moment so we'll go under data and go under stocks聽聽
[770]
hit enter there that's going to do it for us聽
and over here we said we wanted to compare it to聽聽
[776]
amazon then let's go to the charting so control聽
page control page down all the way to the bottom聽聽
[781]
here we're going to link this one so for the聽
comparison to walmart hit enter and for the months聽聽
[786]
we can just link it to this one over here then for聽
this part over here it's just going to be the same聽聽
[791]
so we'll just copy it and paste it over here as聽
you can see this has linked to the right one now聽聽
[796]
for the spacing issue over here just double聽
click up top that's going to do it for聽聽
[800]
us and lastly let's create a visual for this tool聽
so firstly we'll select just this date over here聽聽
[805]
as well as the price keep pressing the ctrl key聽
and from there we want to select all of this time聽聽
[809]
period here so click on this first one and then聽
ctrl shift down arrow then we're gonna go under聽聽
[815]
insert go under line chart and we're gonna do a聽
2d line chart from there press ctrl x and then聽聽
[821]
we'll take it all the way back up here and let's聽
just paste it down over here now the problem with聽聽
[826]
this chart is that it's all on one access and as聽
you can see the share price of amazon is actually聽聽
[830]
a lot higher than the share price of walmart so聽
it's not a very good comparison instead what we're聽聽
[835]
gonna do is we're gonna click on this blue one聽
right click on it and go to format data series聽聽
[841]
and we're gonna put it on a secondary axis close聽
that and now that's gonna look a lot more like聽聽
[846]
it where on the one hand you've got amazon and on聽
the other hand you've got walmart and you can see聽聽
[850]
the different trends here for the series name聽
let's go ahead and edit that so right click and聽聽
[854]
go to select data from there we're gonna edit the聽
first series one name and we're gonna link it to聽聽
[860]
the amazon actual hit okay there and for that聽
second one go under edit again this time we聽聽
[865]
wanna select the walmart over there hit ok and聽
then hit ok again scroll down to see how that's聽聽
[870]
looking like now then ctrl c and we're going to聽
take that over to the dashboard tab just down聽聽
[875]
below over here ctrl v and let me go ahead and聽
reformat this i'm just going to fast forward it
[885]
with this chart formatted one thing to keep in聽
mind is that amazon shares and walmart shares聽聽
[889]
aren't all that directly comparable because they聽
have a different number of shares outstanding that聽聽
[894]
being said you can still compare the overall聽
trend and it seems like over here walmart has聽聽
[898]
been the better performer recently if you ever聽
want to change the share you want to compare to聽聽
[903]
you can just go ahead and click on it and say聽
we type microsoft hit enter and just go under聽聽
[909]
the question mark and it's just going to ask聽
you to select the right market in this case we聽聽
[913]
want the nasdaq that's fine for us and now聽
you can see the overall trend there as well
[918]
that's a stock portfolio tracker if you ever聽
want to refresh the data you can go under data聽聽
[923]
and refresh all that's going聽
to refresh the share price etc聽聽
[926]
for more on excel check out this link over聽
here to create an interactive dashboard聽聽
[931]
or this other link over here to聽
learn more about finance evaluation聽聽
[935]
hit that like hit that subscribe if you聽
liked it and i'll catch you in the next one
Most Recent Videos:
You can go back to the homepage right here: Homepage





