+ Reply to Thread
Results 1 to 2 of 2

Need help with a Macro to run Regression.

  1. #1
    Registered User
    Join Date
    06-19-2009
    Location
    U.S.
    MS-Off Ver
    Excel 2003
    Posts
    18

    Need help with a Macro to run Regression.

    See attached for file.

    I need to run a regression with column C as the Y variable, and column BM as the X variable. Then, I need to repeat this with column C continuing as the Y variable, and column BN as the X variable, and so on.

    Then I need to repeat the above with Column D as the Y variable, and columns BM - CJ as the X variables (but run them one at a time NOT a multiple regression).

    I also need to name the sheets with the regression outputs with a concatenation of cell C5 and cell bm5, then c5 and cell bn5, etc. OR, If its possible, put all the Y variable regression outputs in the same sheet, named cell c5, d5, e5, etc.

    Here is the code I have so far, but can't seem to get the rest. Thanks in advance:

    Please Login or Register  to view this content.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591

    Re: Need help with a Macro to run Regression.

    Hi

    Make sure you have a sheet in your workbook called sheet2 and then try

    Please Login or Register  to view this content.
    rylo

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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