Correlation Matrix using VBA

Z

Zoheb

Hi

I was wondering if anyone was able to provide some assistance to produce a
correlation matrix code in VBA?

Any help would be greatful

Thanks
 
M

Mike Middleton

Zoheb -

The Correlation tool of Excel's Analysis ToolPak provides this feature,
i.e., all pairwise correlation coefficients for data sets with two or more
variables. The results are equivalent to using the CORREL worksheet function
on pairs of variables in a multivariate data set.

Do you want to replicate that functionality, or do you want something that
the Correlation tool doesn't provide?

- Mike Middleton
http://www.MikeMiddleton.com
 
Z

Zoheb

Mike -

Thanks for the response

I have 30 sets of data over a certain time period and want to produce a
correlation matrix of it.

I have used the Analysis ToolPak to calculate what the answers should be and
I want to replicate this in VBA, preferably using loop functions.

Thanks

Zoheb
 
M

Mike Middleton

Zoheb -

I'm working on other projects, and I'm not interested in writing VBA code to
replicate the Analysis ToolPak.

If you have thought about the exact specifications, like the specific input
data and specific output, and if you have decided how general-purpose you
want your code to be (variable number of columns, etc.), then if you post
the code you have so far, it's likely that someone will help you.

- Mike
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top