+ Reply to Thread
Results 1 to 1 of 1

How to Direct a Formula to select only cells with data

  1. #1
    Registered User
    Join Date
    02-03-2013
    Location
    State College, PA
    MS-Off Ver
    Excel 2010
    Posts
    1

    How to Direct a Formula to select only cells with data

    Hi All,

    Thanks in advance for your help. I have a set of about 100 daily stock returns listed chronologically. However, I have selected only limited data from each stock and therefore some of the data begins/ends earlier than others (for example Stock A may have trading data from 2003 to 2006, Stock B from 2004 to 2007, and Stock C from 2007 to 2012).

    I am now trying to find the covariance of the monthly returns of each stock with the corresponding monthly returns of the S&P 500 (but only during the selected period). Is there a way to automatically have the "covar" formula select only the periods with data for each respective stock and have it match up with the same time frame of S&P returns?

    I have attached a sample spreadsheet (with fake randomized returns)to better help you visualize the problem. I calculated the 1st covariance in column C manually to show an example of what I need across the full 100 columns of data.

    Thanks,

    Ben
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1