Microsoft's Excel spreadsheet program allows investors to keep track of investment activity in an organized manner. Using Excel, investors can track positions, including entry price, periodic closing prices and returns. Another valuable feature of Excel is that it can automatically calculate an investment's or portfolio's standard deviation. The standard deviation value is synonymous with risk in regard to modern portfolio theory, and can assist investors by evaluating an investment's or portfolio's volatility. This article will briefly explain modern portfolio theory, standard deviation and how Excel can be used to enhance one's investment activities.
Modern Portfolio Theory
Modern portfolio theory (MPT) was developed by Harry Markowitz, and introduced in the 1952 Journal of Finance. The central focus of MPT is that investors should not limit themselves to the expected risk and return of one particular stock; rather, an investor should reduce risks through diversification. MPT states that the risk in a portfolio of diverse stocks (or other investment instruments) will be less than the risk of any one of the stocks. A key point here is diversification: it is not adequate to simply own 20 different stocks. Instead, a diversified portfolio will be comprised of instruments that are relatively unrelated in order to mitigate the risks in the event that one sector or type of investment performs poorly.
According to MPT, risk involves two elements: systematic and unsystematic risk. Systematic risk includes risk factors that cannot be reduced through diversification, the risk that's inherent in the overall market. Unsystematic risk is tied to individual investment products and can be diminished through the use of diversification. A goal of modern portfolio theorists is to limit risk, or the deviation from the mean, by holding a welldiversified portfolio. (To learn more, see Modern Portfolio Theory: Why It's Still Hip.)
Standard Deviation
Calculating the standard deviation for a data set can reveal important information regarding an investment's risk. The standard deviation is simply the measure of how far returns are from their statistical average; in other words, standard deviation allows investors to determine the aboveaverage risk or volatility of an investment. The standard deviation calculation is a complex, timeconsuming mathematical equation. Fortunately, a few simple clicks in Excel can provide the same calculation, even if an investor does not understand the math behind the value.
Since the standard deviation measures the degree to which a stock's or portfolio's returns vary, or deviate, from average returns, it can be a useful metric in assessing volatility and risk. The standard deviation of returns is a more accurate measure of volatility than looking at periodic returns because it takes all values into account. The lower the standard deviation value, the lower the risk.
Using Excel to Track Investments
An Excel spreadsheet can be used in a number of ways to keep track of investment activity. The first step is to decide what data you would like to include. Figure 1 shows an example of a simple Excel spreadsheet that tracks one investment's data, including date, entry, size (how many shares), closing prices for the dates specified, the difference between the closing price and the entry price, the percentage return, profit and loss for each periodic closing price, and the standard deviation. A separate sheet in an Excel workbook can be used for each stock.
Figure 1: Excel spreadsheet showing data from one trading instrument (McGraw Hill). 
Creating Formulas
Difference
Some values in the spreadsheet, however, must be manually calculated, which is time consuming, or you can insert a formula into a cell to do the work for you. To calculate the difference (the difference of the current price minus the entry price), for instance, click in the cell where you would like the difference to appear. Next, type the equals sign and then click in the cell containing the current price. Follow this with a minus sign and then click in the cell that contains the entry price. Then click enter and the difference will appear. If you click on the lower right corner of the cell until you see what looks like a dark plus sign (without little arrows on it), you can drag the formula to the other appropriate cells to find the difference for each data set.
Percent Return
The percent return is the difference of the current price minus the entry price, divided by the entry price: (priceentry)/entry. The percent return calculation is made by, once again, selecting the cell where you would like the value to appear, then typing the equal sign. Next, type an open parenthesis and click in the cell that has the current price, followed by a minus sign, the entry price and a close parenthesis. Next type a forward slash (to represent division) and then click in the entry price cell again. Press enter and the percent return will appear. You may need to highlight the column, right click, and select Format Cells to select "Percentage" under the number tab to have these values appear as percentages. Once you have the formula in one cell, you can click and drag (as above) to copy the formula into the corresponding cells.
Profit and Loss
The profit and loss is the difference multiplied by the number of shares. To create the formula, click in the cell where you want the value to appear. Next, type the equals sign and then click in the cell that contains the difference (see above). Then, type the asterisk symbol (*; to represent multiplication) and then click in the cell that contains the number of shares. Press enter and you will see the profit and loss for that data. You may need to highlight the column, right click and select Format Cells, then select currency to set the column to display as a dollar amount. You can then select, click and drag the formula to copy it in the other corresponding cells.
Standard Deviation
As we've discussed, standard deviation is a measure of a stock's or portfolio's volatility. Excel can find the standard deviation for a data set, or population, in a few keystrokes. Since the standard deviation calculation is complex, this is an extremely helpful feature in Excel. To find the standard deviation of a data set, click on the cell where you want the standard deviation value to appear. Next, under the Formulas heading in Excel, select the "insert function" option (this looks like "fx"). The Insert Function box will appear, and under "select a category" choose "Statistical". Scroll down and select "STDEV", then click OK. Next, highlight the cells that you want to find the standard deviation for (in this case, the cells in the percent return column, careful to select only the return values and not any headers). Then click OK and the standard deviation calculation will appear in the cell. (For more, see The Uses And Limits Of Volatility.)
Finding the Standard Deviation for a Portfolio
You can compile data from the individual sheets in Excel to determine metrics such as overall profit and loss, and overall standard deviation. Figure 2 shows data from 11 different stocks, including entry date and price, the number of shares, the current price, the difference between the current price and the entry price, the percent return, the profit & loss, and the overall standard deviation. If you have data on one sheet in Excel that you would like to appear on a different sheet, you can select, copy and paste the date into a new location. In this way, it is easy to import a series of stock's data into one sheet. All of the formulas are the same as in the previous examples, and the standard deviation calculation is based on the percent return of all of the stocks, rather than just a single instrument.
Figure 2 Excel spreadsheet showing compilation of multiple trading symbol\'s data. 
Conclusion
Using Excel is a useful tool to assist with investment organization and evaluation. Once a spreadsheet has been formatted with the data that you would like to see, and the necessary formulas, entering and comparing data is relatively simple. It pays to take the time to set up the sheets exactly how you want them and to eliminate or hide any extraneous data. To hide a column or row of data, highlight the selection, and under the Home tab in Excel, select Format. A dropdown menu appears; select "hide/unhide" and choose the option you want. Any data that is hidden can still be accessed for calculations but will not show up in the spreadsheet. This is helpful when creating a streamlined, easytoread spreadsheet.
Of course there are alternatives to setting up the spreadsheet by yourself. A considerable number of commercial products are available from which to choose portfolio management software that works in concert with Excel. An internet search can help interested investors learn about these opportunities.
An Excel spreadsheet can be as easy or complex as you want it to be. Personal preference and needs dictate the complexity of the spreadsheet. The key is to understand whatever data you do decide to include so that you are able to gain insight from it.
Please note: the spreadsheet and investment data included in this article are for illustrative purposes only and do not represent any actual positions held by the author. The intention of the article is to demonstrate techniques in Excel, not to make any inferences or recommendations regarding investments. <(For more advanced tips, check out Microsoft Excel Features For The Financially Literate.)

Mutual Funds & ETFs
ETF Analysis: iShares Agency Bond
Find out about the iShares Agency Bond exchangetraded fund, and explore detailed analysis of the ETF that tracks U.S. government agency securities. 
Mutual Funds & ETFs
ETF Analysis: PowerShares S&P 500 Low Volatility
Find out about the PowerShares S&P 500 Low Volatility ETF, and learn detailed information about this fund that provides exposure to lowvolatility stocks. 
Mutual Funds & ETFs
ETF Analysis: Vanguard IntermediateTerm Bond
Find out about the Vanguard IntermediateTerm Bond ETF, and delve into detailed analysis of this fund that invests in investmentgrade intermediateterm bonds. 
Active Trading Fundamentals
Arbitrage Pricing Theory: It's Not Just Fancy Math
What are the main ideas behind arbitrage pricing theory? We provide a simple explanation of the model and how to use it. 
Investing Basics
Explaining the HighWater Mark
A highwater mark ensures fund managers are not paid performance fees when they perform poorly. 
Investing Basics
Explaining FrontEnd Load
A frontend load is a commission or sales charge paid by the investor at the initial purchase of an investment. 
Options & Futures
An Introduction To Value at Risk (VAR)
Volatility is not the only way to measure risk. Learn about the "new science of risk management". 
Retirement
Avoid These Retirement Portfolio Mistakes
Top tips for ensuring that your portfolio is better than just "good enough." 
Investing
What Rising Volatility Means for Momentum
After remaining torpid for most of the year, equity market volatility is once again rising. 
Investing News
How Does Wealthfront Work and Make Money?
Wealthfront is a financial technology company that uses software to manage assets for its clients. To open an account, clients need to have a minimum balance of $500. As of July 2015, Wealthfront ...

ExchangeTraded Fund (ETF)
A security that tracks an index, a commodity or a basket of assets ... 
Compound Annual Growth Rate  CAGR
The Compound Annual Growth Rate (CAGR) is the mean annual growth ... 
Return On Investment  ROI
A performance measure used to evaluate the efficiency of an investment ... 
Systematic Manager
A manager who adjusts a portfolio’s long and shortterm positions ... 
Unconstrained Investing
An investment style that does not require a fund or portfolio ... 
Sharpe Ratio
A ratio developed by Nobel laureate William F. Sharpe to measure ...

What does a high turnover ratio signify for an investment fund?
If an investment fund has a high turnover ratio, it indicates it replaces most or all of its holdings over a oneyear period. ... Read Full Answer >> 
What is the difference between passive and active asset management?
Asset management utilizes two main investment strategies that can be used to generate returns: active asset management and ... Read Full Answer >> 
What percentage of a diversified portfolio should large cap stocks comprise?
The percentage of a diversified investment portfolio that should consist of largecap stocks depends on an individual investor's ... Read Full Answer >> 
Why should an investor include an allocation to the telecommunications sector in ...
An investor should include an allocation to the telecommunications sector in his portfolio, because telecom offers an investor ... Read Full Answer >> 
What are some mutual funds that do not have 12b1 fees?
Some of the most popular and bestperforming mutual funds that do not include any 12b1 fees in the expenses charged to fund ... Read Full Answer >> 
Are there mutual funds that take advantage of merger arbitrage?
A few select mutual funds focus investing on merger arbitrage. Among these are the Merger Fund, the Arbitrage Fund and the ... Read Full Answer >>