Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8514115
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T04:46:23+00:00 2026-06-11T04:46:23+00:00

I am wondering how to use sample covariance in my VBA code. I can

  • 0

I am wondering how to use sample covariance in my VBA code.

I can use Application.WorksheetFunction.Covar(array_1,array_2) to get the population covariance, but how about the sample covariance? I realize that there are COVARIANCE.S and COVARIANCE.P Functions in the formula bar. How can I use them in my VBA code?

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T04:46:24+00:00Added an answer on June 11, 2026 at 4:46 am

    In xl2010 you can certainly use
    Application.WorksheetFunction.Covariance_P

    Evaluate or the shorthand [] is your friend for calculating functions

    Sub Test()
    MsgBox Application.WorksheetFunction.Covariance_P([a1:a3], [b1:b3])
    MsgBox [Covariance.P(a1:a3, b1:b3)]
    End Sub
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I was wondering if there is any sample code out there for objective-C for
I am completely new to liquibase and I was wondering if I can use
I was wondering whether I can use the cellular network (3G or 2G or
Can I use xml/xslt for dynamic html generation in my code behind with my
I'm new to iOS programming. Wondering if anyone can point me to a sample
Just wondering if someone has sample code to return the top 25 links of
I was wondering if there is some sort of magic I can use to
As a continuation of this question I'm wondering if I can get some simple
I wondering whether use a webView to create a complex text area done with
Studying compilers course, I am left wondering why use registers at all. It is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.