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 well-diversified 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 above-average risk or volatility of an investment. The standard deviation calculation is a complex, time-consuming 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: (price-entry)/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, easy-to-read 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.)

Related Articles
  1. Mutual Funds & ETFs

    The ABCs of Mutual Fund Classes

    There are three main mutual fund classes, and each charges fees in a different way.
  2. Investing Basics

    5 Common Mistakes Young Investors Make

    Missteps are common whenever you’re learning something new. But in investing, missteps can have serious financial consequences.
  3. Mutual Funds & ETFs

    The 4 Best American Funds for Growth Investors in 2016

    Discover four excellent growth funds from American Funds, one of the country's premier mutual fund families with a history of consistent returns.
  4. Products and Investments

    A Guide to DIY Portfolio Management

    These are some of the pillars needed to build a DIY portfolio.
  5. Investing

    What Investors Need to Know About Returns in 2016

    Last year wasn’t a great one for investors seeking solid returns, so here are three things we believe all investors need to know about returns in 2016.
  6. Mutual Funds & ETFs

    The Top 5 Buffalo Funds for Retirement Diversification in 2016

    Discover the top five Buffalo Funds for retirement diversification in 2016, with a summary of each fund, including manager and performance information.
  7. Mutual Funds & ETFs

    How to Build Your Own Mutual Fund

    Here are some tips for building a mutual fund that may help pave the way to a strong performance.
  8. Mutual Funds & ETFs

    Are the Most Popular Mutual Funds Your Best Bet?

    Learn about the dangers that come with investing in the most popular mutual funds and discover how investors can better fill out their portfolios.
  9. Investing

    Where to Ride Out the Volatility

    The one word that characterizes financial markets today: volatile. Take a look at these three considerations.
  10. Wealth Management

    How to Invest Like a Millionaire in 2016

    Discover how to start 2016 strong by learning how to imitate the investing strategies that distinguish millionaire investors from most average investors.
RELATED FAQS
  1. Does mutual fund manager tenure matter?

    Mutual fund investors have numerous items to consider when selecting a fund, including investment style, sector focus, operating ... Read Full Answer >>
  2. Why do financial advisors dislike target-date funds?

    Financial advisors dislike target-date funds because these funds tend to charge high fees and have limited histories. It ... Read Full Answer >>
  3. What licenses does a hedge fund manager need to have?

    A hedge fund manager does not necessarily need any specific license to operate a fund, but depending on the type of investments ... Read Full Answer >>
  4. Can mutual funds invest in hedge funds?

    Mutual funds are legally allowed to invest in hedge funds. However, hedge funds and mutual funds have striking differences ... Read Full Answer >>
  5. When are mutual funds considered a bad investment?

    Mutual funds are considered a bad investment when investors consider certain negative factors to be important, such as high ... Read Full Answer >>
  6. What fees do financial advisors charge?

    Financial advisors who operate as fee-only planners charge a percentage, usually 1 to 2%, of a client's net assets. For a ... Read Full Answer >>
Hot Definitions
  1. Super Bowl Indicator

    An indicator based on the belief that a Super Bowl win for a team from the old AFL (AFC division) foretells a decline in ...
  2. Flight To Quality

    The action of investors moving their capital away from riskier investments to the safest possible investment vehicles. This ...
  3. Discouraged Worker

    A person who is eligible for employment and is able to work, but is currently unemployed and has not attempted to find employment ...
  4. Ponzimonium

    After Bernard Madoff's $65 billion Ponzi scheme was revealed, many new (smaller-scale) Ponzi schemers became exposed. Ponzimonium ...
  5. Quarterly Earnings Report

    A quarterly filing made by public companies to report their performance. Included in earnings reports are items such as net ...
Trading Center