Many of us must be using Google drive as online repository or backup space for storing our files and sharing them with friends and relative. But very few of us know the fact that Google drive is not just a repository but a cloud based application which can do wonders for you. It has lots of feature apart from having online spreadsheet and doc and you can even do scripting and run those scripts online on Google server anytime of the day without keeping your computer on.
Today in this post we are going to discuss one of such feature of Google Drive using Google spreadsheet. It’s managing and tracking your stock portfolio in real time. Yes you heard right you can manage and track your stock using Google spreadsheet in real time.
Google offers Finance (www.google.com/finance) as a site which keeps track of stock listed on many of the top stock exchanges across world and shows their real-time price along with historical price on their portal. Google spreadsheet has capability to import same data and show them in a spreadsheet and on top of that you can do your own calculation.
To start tracking your portfolio stock in real time all you need is a Google account, with some free space available in your Google drive to create sheet and fill data in it.
Look at screenshot below which shows you how your Google spreadsheet will look like when you prepare it for Tracking your Portfolio of NSE / BSE Stocks.
I have given below explanation of each Column in order they are Important —
Column A — It’s constructed based on value in Column B & C using formula =CONCATENATE(B3,”:”,C3), It is a simple excel formula and self explanatory I believe.
Column B — It shows which exchange your stock of interest is listed on. We are talking about only NSE/BSE stock but you can track any exchange supported by Google Finance. For National Stock Exchange Enter “NSE” and for Bombay Stock Exchange enter “BOM”.
Column C– It holds stock code from Stock Exchange. NSE Stock Code is alphanumeric whereas BSE Stock Codes are 6 Digit Numbers only.
Column D– It contains name of company, you can remove this column if you are comfortable having only Stock Codes, it’s totally up to you whether you need this column or not.
Column E — You can enter here your buy price of particular stock. This will be used in calculating your current profit and value of stock over buy Price/value.
Column F — You should enter here Quantity you bought, you can enter 0 as well if you just want to put stock in tracking but have not bought yet. Again, this will be used in calculating your current profit and value of stock over buy Price/value.
Column G — Date when you bought the stock, this can be optional but can be used to compute CAGR or days of holding.
Column H– It simply provides a direct link to Google finance site for your stock, in case you want to see chart or verify data this can be used. Formula for this cell =HYPERLINK(“https://www.google.com/finance?q=”&A3,”CHART”).
Column I– This column actually fetches data from Google server using Google finance server in spreadsheet using function GOOGLEFINANCE(). Formula in this cell is =GOOGLEFINANCE(A3,”price”), this will show current price if market is open otherwise the last traded price. In spreadsheet we used if condition as well to avoid null values being shown if there is no code present in Column A.
Column J– This again fetches data from Google finance server and shows today’s change in price in terms of percent, if market is open it shows live data if Market is closed it will show change in pricing on last trading day.
Column K — This calculates total Profit / Loss based on current price, buy price and quantity you entered in previous columns in terms of percent.
Column L — This shows calculated Buy value of shares based on Buy Price and Quantity.
Column M– This shows calculated value of shares based on Current Price and Quantity you bought.
Column N — This calculates total Profit / Loss based on current price, buy price and quantity you entered in previous columns in absolute value.
Column O –– Can be used as comment column to enter anything you want to as comment or notes for future reading.
Row 2 and Column K-N are used for calculating entire portfolio value in terms of value and in percent, formulas used are shown in above screenshot. This are all simple mathematical formulas used in any spreadsheet.
Well this was all about how to maintain portfolio and track stock using google spreadsheet, there are many more things related to stock market which can be done using google spreadsheet, will share them soon on this platform, till then stay tuned.
In case you guys want to see the spreadsheet live used in this tutorial, do leave a comment will share the link if anyone is interested.
Update : In case you want to see excel live and make a copy of it for yourself use following URL or Click here