+ Reply to Thread
Results 1 to 7 of 7

Need help with adding a +10% and -10% line above and below a given trendline

  1. #1
    Registered User
    Join Date
    10-16-2014
    Location
    Elko, NV
    MS-Off Ver
    MS Office 2010
    Posts
    4

    Need help with adding a +10% and -10% line above and below a given trendline

    I am working on some comparative data analysis involving two columns of data (original vs. duplicate assay results) that are being displayed on a scatter plot graph. The trend line that I add to the scatter plot data is useful but I would also like to display a +10% and -10% "warning line" above and below the trend line.

    Like this:
    ScatterPlot_TrendLine-with-WarningLines.PNG

    Has anyone done this before? I obtained the image from some company literature, however, it does not describe how to accomplish the graph shown.

    Can I display a simple line that uses the same linear formula with a slight adjustment to the slope (+ or - 10% to the slope value)?

    Please help.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Need help with adding a +10% and -10% line above and below a given trendline

    Welcome to the Forum SivartKram!

    Quote Originally Posted by SivartKram View Post
    Can I display a simple line that uses the same linear formula with a slight adjustment to the slope (+ or - 10% to the slope value)?
    That is exactly what you want. Is that line a true trend line, or just the idealized relationship? Because it seems like an awful big coincidence to me that the trendline is exactly x=y for empirical data.

    How to do that depends on how you are generating the trend line. If you do not already have data defining the trend line, you can use the TREND function to generate it. Then create two new rows (or columns) of data for the +10% and -10% lines, then plot them.

    It would be much easier to give you more specific guidance if you attach your Excel file.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    10-16-2014
    Location
    Elko, NV
    MS-Off Ver
    MS Office 2010
    Posts
    4

    Re: Need help with adding a +10% and -10% line above and below a given trendline

    The picture given is not real data, or at least I don't have the data or program or file that that came from. It's just an example of what I'm trying to achieve.

    Thanks for your reply. I can attach the file but I will need help on how to create two new rows/columns that would represent + or - 10% of the trend line.

    I'm using Excel 2010, so most of these functions are "user friendly" (ie. I can see the guts of how they work). After creating the scatter plot graph I right clicked on the data and chose "Add Trendline...". And under "Format Trendline" there aren't too many options.

    I also tried a version of what you are suggesting by taking the X axis data and the Y axis data and independently increased or decreased the data by 10%. But when this is plotted it only artificially augments or decreases the original data set (therefore a trendline generated on the newly augmented or decreased data would yield the same trendline).

  4. #4
    Registered User
    Join Date
    10-16-2014
    Location
    Elko, NV
    MS-Off Ver
    MS Office 2010
    Posts
    4

    Re: Need help with adding a +10% and -10% line above and below a given trendline

    This is what I've come up with based on your suggestion:
    2ndAttemptControlLines.PNG

    What's weird now is that when you run a percent difference on the original trend line slope value against the two new trend line slope values you get percent differences of 22.2% and 18.2% (respectively for the "plus 10" and the "minus 10").

    In addition to that I don't want to have to show the fictitious data that was used to generate the two new trend lines. How do I remove that data and still display the +10 and -10 lines?

  5. #5
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Need help with adding a +10% and -10% line above and below a given trendline

    See attached where I re-created the chart.

    Your 10% is not 10% of the trendline, it's 10% of your data. Not what you want. You can add a trendline that Excel plots automatically but then you don't have the data for it. SO you have to use the TREND function to be able to calculate the +/-10%. All shown in the attachment.

  6. #6
    Registered User
    Join Date
    10-16-2014
    Location
    Elko, NV
    MS-Off Ver
    MS Office 2010
    Posts
    4

    Re: Need help with adding a +10% and -10% line above and below a given trendline

    Thanks for showing me how the TREND function works. It really demystified the trendline function in Excel. And after doing more research into my company's guideline representation of this kind of scatter plot data (as show above in the first example). The "trend line" is in fact not a trend line (like you seemed to catch onto from the first reply). It is just a y=x line, with the +/- 10% generated the same way as you have done but with the y=x line as a reference.

    The result is in my opinion cheating. Or an over simplification of the data, using an idealized 1:1 ratio of the comparative data. Which doesn't really tell you very much about your actual data, just how it fits in with an ideal situation.

    Thanks again. I will have to play around with the TREND function. I somewhat understand the syntax but I will need to study it a bit more to understand it more fully.

  7. #7
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Need help with adding a +10% and -10% line above and below a given trendline

    After your explanation, I'm not sure what you really need--a reference line, or a true trend line. If you are measuring tolerances from a standard then you want the x=y line instead of the TREND data.

    TREND looks at your data give by the x values and y values given in the first two arguments and calculates a trend line. Then the third argument is an x value, and it determines the corresponding y value that falls on the trend line. Related functions for analyzing variability of data are LINEST, INTERCEPT, SLOPE, RSQ.

+ 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. Pivot Chart adding a Trendline line or baseline
    By Ted Dennis in forum Excel Charting & Pivots
    Replies: 7
    Last Post: 11-16-2015, 01:05 PM
  2. Straight Line and Trendline Chart together
    By sakmsb in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 02-24-2013, 05:25 AM
  3. Replies: 0
    Last Post: 10-11-2011, 03:22 PM
  4. Adding TrendLine to my chart
    By walid66 in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 06-06-2008, 10:00 AM
  5. [SOLVED] Line chart in Excel - trendline incomplete
    By [email protected] in forum Excel Charting & Pivots
    Replies: 7
    Last Post: 05-13-2005, 01:06 PM

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