I have a daily data of stock returns of18 years in one sheet. For example my data starts with 7/1/2010 and ends at 6/30/2020. I have to calculate monthly variance of this data Means variance of june 2010 by using all observations of June 2010 then variance of august 2010 and so on till june 2020. can someone help in making a VBA code for this