+ Reply to Thread
Results 1 to 7 of 7

shift trendline up and down

  1. #1
    Registered User
    Join Date
    09-23-2021
    Location
    belgium
    MS-Off Ver
    MS365
    Posts
    7

    shift trendline up and down

    Hello,

    I have a exponential trendline of my data. My data is pressure in function of the temperature in of a gas in a container. Now I want to shift the trendline based on the values on 20°C. I want to shift the trendline +0.2 and -0.2 at 20°C so I can read on 50°C what my pressure can be without measuring at 50°C. Is it possible to draw a trendline with a formula (e^(x+0.2)) than?

    thanks in advance!
    Attached Files Attached Files
    Last edited by jonr123; 09-27-2021 at 06:37 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,934

    Re: shift trendline up and down

    1. You failed to thank your helpers in your first thread here, and you didn't mark it as solved. Please do this now: https://www.excelforum.com/excel-pro...dex-sheet.html
    2. There are instructions at the top of the page explaining how to attach your sample workbook.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

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

    Re: shift trendline up and down

    If you are not for some reason required to use the chart trendline feature, the easiest approach would be to use the LINEST() or LOGEST() functions to generate the regression coefficients directly in the spreadsheet. Then it will be relatively simple to add the desired offset to the final formula to calculate the desired values.
    LOGEST() help file: https://support.microsoft.com/en-us/...b-a272c1d18b4b
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  4. #4
    Registered User
    Join Date
    09-23-2021
    Location
    belgium
    MS-Off Ver
    MS365
    Posts
    7

    Re: shift trendline up and down

    Thank you for your answer, i can calculate now the trendline, but do you know how I can draw this trendline on the graph, wihout showing any datapoint? I basically want to have my measured values, than make a trendline and than shift this trendline 0.2 up and 0.2 down so I can make margins for the QC department who measure pressure on every container.

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

    Re: shift trendline up and down

    how I can draw this trendline on the graph, wihout showing any datapoint?
    What do you mean by this?

    The only way I know to do this is to calculate data points for the offset curves and then add those values to the chart as a new data series. So a lot depends on what you mean by "without showing any datapoint."

  6. #6
    Registered User
    Join Date
    09-23-2021
    Location
    belgium
    MS-Off Ver
    MS365
    Posts
    7

    Re: shift trendline up and down

    I already fixed that (I added new dataset and than maked the data markes invisible) problem is that when I add +0.2 and -0.2 to all the data that doesn't work for an exponential trendline. The higher the x value the more the curves shift to eachother,... I don't think this problem is solvable...
    Attached Files Attached Files
    Last edited by AliGW; 09-28-2021 at 03:21 AM. Reason: PLEASE don't quote unnecessarily!

  7. #7
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: shift trendline up and down

    I think you are not saying what you want

    if you followed MrShorty's suggestion you would have got there. the function is better than the tool on a graph, but more complex to explain using the logest function

    or crudely taken form your graph say in H3 and copy down
    =3.1518*EXP(0.0216*D3) to work out your y values then have columns with this + or - 0.2 and this will give uniform gaps

    i3=h3+0.2 (or whatever you fancy)
    j3=h3-0.2

+ 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. Replies: 4
    Last Post: 04-27-2021, 11:49 AM
  2. [SOLVED] Help with Index/Find formula to identify if employees shift matches their last shift.
    By PaddyP in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-02-2021, 09:22 PM
  3. Replies: 3
    Last Post: 09-09-2019, 10:25 AM
  4. Replies: 4
    Last Post: 12-20-2018, 12:11 AM
  5. [SOLVED] Excel 2010 Trendline With Data labels or number on forward forecast trendline
    By camelight in forum Excel Charting & Pivots
    Replies: 7
    Last Post: 10-15-2015, 08:35 AM
  6. Caculating # of Day Shift Hrs & Night Shift Hrs of a Given Shift
    By DaKhoda in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-29-2014, 08:36 PM
  7. Replies: 0
    Last Post: 10-11-2011, 03:22 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