+ Reply to Thread
Results 1 to 2 of 2

Changing trendline polynomial order

  1. #1
    Forum Contributor
    Join Date
    10-06-2015
    Location
    Leeds, England
    MS-Off Ver
    365 Version 2302 Build 16.0.16130.20942
    Posts
    130

    Changing trendline polynomial order

    I have data ranges in a spread sheet for x and y that are also shown on a scatter chart, I have used an index(linest) function to get coefficients for the ranges and calculate a y value based on a given x. I use the chart to see how the values a forecast beyond the range. However sometimes as the data in the range changes the polynomial order of the coefficients need to change.

    Is it possible to link the polynomial order of the trendline in my scatter chart to a cell so that when I change the polynomial order of the coefficients the chart also changes? Or is there VBA code that can do this when the cell changes? e.g. from polynomial order 2 to 3.

  2. #2
    Valued Forum Contributor
    Join Date
    10-15-2007
    Location
    Home
    MS-Off Ver
    Office 2010, W10
    Posts
    373

    Re: Changing trendline polynomial order

    Hi

    Let's say you have a chart in Sheet1 named MyChart.

    You added 1 polynomial trendline to its first series and you want its order to change to the value that you write in Sheet1!B1.

    You can use:

    Please Login or Register  to view this content.

    If you want this to be automatic use a ChangeEvent to call this procedure whenever you change the value in B1.

+ 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. 2nd order polynomial trendline - solving for x
    By eyedoc in forum Excel General
    Replies: 1
    Last Post: 09-18-2015, 05:35 PM
  2. Polynomial trendline
    By Bernie Deitrick in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 09-06-2005, 02:05 PM
  3. [SOLVED] Polynomial trendline
    By Xtian in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 10:05 AM
  4. [SOLVED] Polynomial trendline
    By Bernie Deitrick in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 09-06-2005, 07:05 AM
  5. Polynomial trendline
    By Xtian in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 AM
  6. Polynomial trendline
    By Xtian in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 AM
  7. [SOLVED] Polynomial trendline
    By Xtian in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12: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