+ Reply to Thread
Results 1 to 4 of 4

Graph - Horizontal line in scatter graph & intercept

  1. #1
    Registered User
    Join Date
    03-22-2018
    Location
    Australia
    MS-Off Ver
    2016
    Posts
    19

    Graph - Horizontal line in scatter graph & intercept

    Hi

    How do you simply put a horizontal Line (example, Y=100) onto a scatter Graph

    also, How do you extend a trendline so that when it intercepts at y=100, it'll draw a vertical line intercepting at x axis.. in which it returns a x value.

    THanks
    Last edited by natkemon; 06-17-2018 at 04:35 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,656

    Re: Graph - Horizontal line in scatter graph & intercept

    A sample file and a mock-up of what you are after would help.
    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
    Registered User
    Join Date
    03-22-2018
    Location
    Australia
    MS-Off Ver
    2016
    Posts
    19

    Re: Graph - Horizontal line in scatter graph & intercept

    My apologies. Here is my spreadsheet.

    I have managed to create 2 series Y Lines at MaxHR and 80%MaxHR.

    In this spreadsheet example. I'm trying to get the trendline to intercept(or stop) at MaxHR (y=180). And to which it draws a vertical line and provides a value representing at X axis.
    Attached Files Attached Files
    Last edited by natkemon; 06-17-2018 at 04:59 AM.

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

    Re: Graph - Horizontal line in scatter graph & intercept

    How much of this is really the charting question, and how much of it is the about the necessary algebra that needs to be done before adding the lines to the chart. Assuming I understand what you are trying to do, here's how I would do it:

    1) Instead of using the chart trendline to perform the regression, I would use the LINEST() function to perform the regression directly in the spreadsheet. https://support.office.com/en-us/art...a-fa7abf772b6d
    2) Once I have the regression coefficients, and I perform the algebra to solve y=mx+b for x, then I can readily compute x at y=maxHR or y=0.8*maxHR.
    3) From there, I can readily add lines to the chart by using additional data series, just like you did for the horizontal lines.

    Is there anything I am missing? Do you get stuck on anything?
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

+ 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. Horizontal Band Graph with line graph
    By ExcelDummy77 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 08-22-2016, 01:11 PM
  2. [SOLVED] How to add a horizontal line to a graph
    By BNCOXUK in forum Excel General
    Replies: 3
    Last Post: 10-29-2012, 11:20 AM
  3. Replies: 1
    Last Post: 03-23-2012, 10:17 PM
  4. How to plot scatter graph on horizontal axis
    By alsupport in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 09-28-2010, 04:53 AM
  5. Extra line on scatter graph that should not be there.
    By urbanvibration in forum Excel General
    Replies: 1
    Last Post: 05-25-2010, 02:25 PM
  6. Plotting a line over a scatter graph
    By rupakbanerjee in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 10-30-2009, 12:03 PM
  7. [SOLVED] Possible to Add Horizontal Line to Embedded Graph via VBA?
    By TimSchwaar in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 08-29-2005, 07:05 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