+ Reply to Thread
Results 1 to 5 of 5

Problem using LINEST to report polynomial coefficients

  1. #1
    Registered User
    Join Date
    10-26-2011
    Location
    Bangor, Wales
    MS-Off Ver
    Excel 2003
    Posts
    17

    Problem using LINEST to report polynomial coefficients

    Hi guys.

    I am using the LINEST function to calculate the coefficients of a 2nd order polynomial relationship between 2 sets of variables i.e. LINEST(Y data, X data ^{1;2}). There are 8 values in total for the range of data and the values for X are always the same. The problem is Excel only reports these coefficients when a value is present in the Y range for all values of X. If there is a value missing, which there often is because we do always run the experiment using each of the X values, then #VALUE is reported for each of the 3 coefficients.

    Does anyone know a way around this?

    Many thanks
    Tim

  2. #2
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: Problem using LINEST to report polynomial coefficients

    Hi,

    Please upload a sample template of your workbook here.

  3. #3
    Registered User
    Join Date
    10-26-2011
    Location
    Bangor, Wales
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: Problem using LINEST to report polynomial coefficients

    Hi, have attached a template. The X axis range in B2:I2 and the Y range is B3:I3. Cell Q3 calculates the concentration of the parameter based on the measured value given in cell O3 and the coefficients in cells K3:M3.

    If one of the values is removed from the Y range, #VALUE! appears in the cells containing formula.

    Thanks
    Tim
    Attached Files Attached Files

  4. #4
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,808

    Re: Problem using LINEST to report polynomial coefficients

    From what I have seen, LINEST() just does not like blanks (or other non-numerics) anywhere in the input data. So this really becomes a question of how to extract the "non blank" data points into another range, and have the LINEST() function use that. Unfortunately, it is not the kind of programming I do much, so I'm not very good at it.

    Much of the time, because I don't do this very often and work on small data sets like yours, I will simply do it manually (figuring it will take longer for me to figure out how to automate it). Manually copy/paste the non-blank data to another range, use the LINEST() function on that range, and my regression is done.

    If we want to automate that process, it is "simply" a matter of figuring out the worksheet functions and/or VBA that will automate that kind of process.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  5. #5
    Registered User
    Join Date
    10-26-2011
    Location
    Bangor, Wales
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: Problem using LINEST to report polynomial coefficients

    If anyone comes across this thread needing a solution to this problem, the following link will provide the answers:

    http://newtonexcelbach.wordpress.com...ata-with-gaps/

+ 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. Problem using LINEST to report polynomial coefficients
    By t.jones in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 04-14-2014, 05:45 AM
  2. Extract polynomial coefficients with LinEst in VBA
    By shamedt in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 02-22-2011, 08:45 PM
  3. Replies: 5
    Last Post: 06-25-2009, 10:25 AM
  4. Polynomial coefficients
    By kc27315 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-03-2008, 04:51 PM
  5. [SOLVED] using linest to generate 3rd order polynomial coefficients
    By Incoherent in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-14-2005, 10:05 AM

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