automatize the calculation of correlation in a dataset

Occasional Visitor

I have 40 years of historical data with 3 columns: the stock price of Microsoft, S&P500, and date.

I have to find the correlation between MSFT and S&P500 for each year how can I automatize the calculation so I don't have to select the data of each year by hand?

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
22 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
flashing a white screen while open new tab
cntvertex in Discussions on
13 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
28 Replies