In: Finance
Hello, I was having trouble combining two stock data sets into excel. If you could please select a random stock and S&P 500 and conduct the following
A.1) From Yahoo Finance’s Historical Data feature, download 5 years of daily data. The measures include Date, Open, High, Low, Close, Adj Close, and Volume. You should download this data for both your stock as well as for the S&P500.
A.2) Combine the data in one Excel sheet. Add a prefix to each column header (except Date) as XYZ or SP500.
A.3) In Excel, define columns that calculate the daily return of the stock, as well as S&P500, as XYZ Return and SP500 Return. The daily return should be based on the Adj Close (not the Close), since this is restated to account for stock splits and dividends.