+ Reply to Thread
Results 1 to 2 of 2

Problems Consolidating Range for Analysis ToolPak Regression

  1. #1
    Registered User
    Join Date
    01-31-2014
    Location
    London
    MS-Off Ver
    Excel 2003, 2010
    Posts
    12

    Problems Consolidating Range for Analysis ToolPak Regression

    I am trying to do a number of regressions in excel (2010) using the analysis toolpak regression functions through vba;

    The sheets with the data haave a number of columns with a heading (sometimes a gap) and formulas underneath that return either a value or "" (blank). The regression is against variously 1, 3 or 4 variable.

    Heading 1
    Formula Returning Value
    Formula Returning Value
    Formula Returning Value
    Formula Return ""
    Formula Return ""
    Formula Return ""
    Formula Returning Value
    Formula Return ""
    etc.

    Obviously if I try and pass this range to the analysis toolpak, it give the error; Regression 0 Input range contains non-numeric data. because of all the "" blanks.

    Is there a cunning way of using unions and intersect to parse the values to the regression function that I have failed to think of?

    My immediate though was to read the data into arrays and consolidate the arrays, but this didn't work either its throwing the error; Regression - Input Y range must be a contiguous reference

    Am I calling the regression function in an odd way such that it does not like my arrays as parameters or doing something else silly?

    Can anyone spot what I am doing wrong or have any ideas for a way round my problems? I don't really want to have to copy the values to a new set of columns and operate off the new value columns, which is about all I can think of to do.

    Workbook has a reference to ATPVBAEN.XLAM

    [side point as you will see I was also having problems with getting the number of dimensions of the array after it has been transposed]

    Please Login or Register  to view this content.

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,445

    Re: Problems Consolidating Range for Analysis ToolPak Regression

    Welcome to the Forum, unfortunately:

    This is a duplicate post and as such does not comply with Rule 5 of our forum rules. This thread will now be closed, you may continue in your other thread.

    Thread Closed.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Problems Consolidating Range for Analysis ToolPak Regression
    By nb- in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-29-2014, 11:25 AM
  2. [SOLVED] Analysis Toolpak
    By koochandkai in forum Excel General
    Replies: 1
    Last Post: 07-24-2012, 04:27 PM
  3. [SOLVED] Analysis toolpak
    By reno in forum Excel General
    Replies: 4
    Last Post: 06-21-2006, 01:15 PM
  4. [SOLVED] Analysis ToolPak installed but no Data Analysis option
    By Eric Stephens in forum Excel General
    Replies: 3
    Last Post: 02-02-2005, 06:06 PM
  5. Analysis Toolpak add in
    By Lori in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-17-2005, 11:06 PM

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