+ Reply to Thread
Results 1 to 2 of 2

3-D Linear Regression

  1. #1
    Registered User
    Join Date
    03-06-2010
    Location
    texas, texas
    MS-Off Ver
    Excel 2007
    Posts
    1

    3-D Linear Regression

    Hello everyone, first post here:

    I have 10 pages of data, all the same sizes of data. Basicaly, each page has 365 days of the year, with hourly temperature data for 24 hours. I want to run a linear regression through the same cell of the 10 pages. The intuitive function of : =LINEST(page1:page10!A1) doesn't work. My guess because it freaks over the lack of "x-values", which...is just laziness on microsoft's part. Anyway, does anyone know how to do this other than make one massive page of 365x24x10 numbers?

    -Thanks-

  2. #2
    Valued Forum Contributor rwgrietveld's Avatar
    Join Date
    09-02-2008
    Location
    Netherlands
    MS-Off Ver
    XL 2007 / XL 2010
    Posts
    1,671

    Re: 3-D Linear Regression

    Concatenating ranges is not possible outside VBA. I would make a simple VBA script, build an array and calculate the Sx Sx^2, Sxy, etc to make your y = a + bx.

    VBA is this case is simple as all is done with Summations. A loop through all the data once and your done.

    Please Login or Register  to view this content.
    Note: This is no real code, but an example to give directions
    Looking for great solutions but hate waiting?
    Seach this Forum through Google

    www.Google.com
    (e.g. +multiple +IF site:excelforum.com/excel-general/ )

    www.Google.com
    (e.g. +fill +combobox site:excelforum.com/excel-programming/ )

    Ave,
    Ricardo

+ 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