+ Reply to Thread
Results 1 to 4 of 4

Plotting thru 2 fixed points

  1. #1
    Registered User
    Join Date
    07-29-2014
    Location
    virginia
    MS-Off Ver
    2013
    Posts
    2

    Plotting thru 2 fixed points

    excel 2013: how can I fix or anchor both ends of a trendline, but allow the data in between to determine the shape of the line? Basically - fix the end points?

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

    Re: Plotting thru 2 fixed points

    I don't think the chart trendline feature will do that. The way I would do it would be to calculate/enter the desired endpoints in the spreadsheet, then add that data series to the chart. If you need to find slope and intercept from the desired endpoints, you can either find them algebraically or use the LINEST() function to calculate the slope and intercept of the line connecting those two points.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Registered User
    Join Date
    07-29-2014
    Location
    virginia
    MS-Off Ver
    2013
    Posts
    2

    Re: Plotting thru 2 fixed points

    Hmm.... I know I have a really weird case. And thanks. I was hoping there was a way with a series like this:
    2012 890
    2013 989
    2014 878
    2015 956
    2016 1,100
    2017 991
    2018 890
    2019 983
    2020 1000

    To have the trendline START at 890, and END at 1000 - and let the other numbers influence the shape.

    Signed, a very visual person.

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

    Re: Plotting thru 2 fixed points

    How do you want the other numbers to influence the shape? Are you looking for something that will smooth out the fluctuations or do want to keep the cyclical up and down?

    You could just plot the data as is in a line or scatter plot formatted as a smoothed line connecting the points. The smoothed curve will connect each point with what is called a cubic spline. It will be very difficult to back out the equations that describe this curve -- if that is what you need to do.

    If your algebra skills are up to the challenge, you could use a polynomial (or other suitable trendline equation). You would need to do some algebra on the polynomial to find expressions for two of the parameters based on the two endpoints, then use the LINEST() function to obtain the remaining parameters.

    Solver might be easier, though it should amount to almost the same thing. Set up some of kind of regression spreadsheet, then use Solver to optimize your "goodness of fit" statistic based on the constraints that y(2012)=890 and y(2020)=1000.

+ 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. Plotting points from Spreadsheet onto Calendar
    By jutaemma in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-28-2013, 02:12 AM
  2. Plotting curves showing less points than actually used
    By simaosig in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 07-30-2013, 08:36 AM
  3. Plotting points using VBA
    By adilson.perez in forum Excel Charting & Pivots
    Replies: 9
    Last Post: 01-08-2011, 10:37 PM
  4. Plotting points on a scatter graph
    By Hodged in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 04-04-2007, 07:36 AM
  5. [SOLVED] Plotting more than 32000 points on a chart
    By inquirer in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 08-17-2006, 04:45 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