+ Reply to Thread
Results 1 to 4 of 4

Using Linear Regression to Fill in Missing Values

  1. #1
    Registered User
    Join Date
    03-26-2009
    Location
    Brisbane, Australia
    MS-Off Ver
    Excel 2003
    Posts
    2

    Using Linear Regression to Fill in Missing Values

    Hi Everyone,

    I am trying to use linear regression to fill in values (Excel 2003). If I have two arrays of values (X,Y) with known X values and only the first and last Y values, how can I get Excel to calculate and fill in the unknown Y values for each other X value? I have attached a small excel file to illustrate the problem.

    I see this as a linear regression problem and can get my calculator to do it but of course would like to be able to generate unkown values for many X values so the calculator becomes laborious.

    It seems like such as simple task but I simply cannot seem to figure it out. Appreciate any help anyone can throw my way.

    Matty @ MHS
    Attached Files Attached Files

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Using Linear Regression to Fill in Missing Values

    Welcome to the forum.

    In E8 and copy down, =$D$7 + ($D$16 - $D$7 ) * (C8 - $C$7) / ($C$16 - $C$7)
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    03-26-2009
    Location
    Brisbane, Australia
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Using Linear Regression to Fill in Missing Values

    Thanks shg,

    I was hoping there was a function for it but looks like I'm doing it manually.

    Thanks again,

    Matty @ MHS

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Using Linear Regression to Fill in Missing Values

    You could use a function, but it requires five arguments -- hardly seems worth it.

    I'll give you one if you prefer -- otherwise, would you please mark the thread as Solved?

    EDIT: Here you go ...
    Please Login or Register  to view this content.
    Last edited by shg; 03-30-2009 at 07:26 PM.

+ 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