+ Reply to Thread
Results 1 to 3 of 3

VBA Correlation Calculation

  1. #1
    Registered User
    Join Date
    06-25-2012
    Location
    Stamford, CT
    MS-Off Ver
    Excel 2003
    Posts
    24

    VBA Correlation Calculation

    Hi all,

    I'm new to this forum so bear with me. I have a macro written thus far that automatically pulls dates into the first column, and then after a series of calculations, pulls two different sets of data into the second and third column.

    What I need to do:

    Write code to be able to calculate rolling correlations (so for instance, a rolling 30 day correlation from date x to date y)

  2. #2
    Registered User
    Join Date
    06-14-2012
    Location
    Cambridge, UK
    MS-Off Ver
    Excel 2013
    Posts
    48

    Re: VBA Correlation Calculation

    Is the in-built correlation function not suitable?

    Please Login or Register  to view this content.
    If you need that function in VBA it should work by preceding with 'WorksheetFunction.'

    Please Login or Register  to view this content.
    <--- Please click the star to say thank you

  3. #3
    Registered User
    Join Date
    06-25-2012
    Location
    Stamford, CT
    MS-Off Ver
    Excel 2003
    Posts
    24

    Re: VBA Correlation Calculation

    I'm using that function, however, I need to be able to select a data range via a user form. So it may be over a 3 month stretch in 2008, or an entire year in 2010. The point is that it has to be flexible

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1