title: Sample Covariance vs. Population Covariance in VBA
body: <p>I am wondering how to use sample covariance in my VBA code. </p>
  
  <p>I can use <code>Application.WorksheetFunction.Covar(array_1,array_2)</code> to get the population covariance, but how about the sample covariance? I realize that there are <code>COVARIANCE.S</code> and <code>COVARIANCE.</code>P Functions in the formula bar. How can I use them in my VBA code?</p>
  
  <p>Thanks</p>