Share via

Adding a Fixed Horizontal Line

Anonymous
2017-06-29T13:26:37+00:00

Hello All,

I am trying to add a fixed horizontal line to a scatter plot that will span the entire chart, regardless of x-axis. For this reason the error bar method will not work. It also needs to be dynamic, as the location is subject to change.

Thanks

Jacob

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

5 answers

Sort by: Most helpful
  1. Anonymous
    2017-06-29T22:10:31+00:00

    This may get you on track

    best wishes

    1 person found this answer helpful.
    0 comments No comments
  2. Anonymous
    2017-06-29T17:07:09+00:00

    You can still use a separate data series for the horizontal line. It would only require two data points (x1,y1) (x2,y2) connected with a line. Use formulas for the x and y values. For the y values you can use a formula that is based on the other data. You could use a formula for x1 and x2 that calculates the minimum and maximum of all 3 of the other sets of x values.

    0 comments No comments
  3. Anonymous
    2017-06-29T17:04:44+00:00

    Since the horizontal line will be described by data points, there is no reason those datapoints can't be built with a formula so that it is plotted based on the other data being plotted.   Unless you want to write macros, I believe this is pretty much you option.

    --

    Regards,

    Tom Ogilvy

    0 comments No comments
  4. Anonymous
    2017-06-29T16:53:19+00:00

    Hey Tom

    That wouldn't really work here. I have three different sets of data I am trying to plot on a scatter plot, and each set has differing amount of data. So I need something that will have a horizontal line at a point that can be set, and will move with the data no matter which set has the most points.

    Thanks

    Jacob

    0 comments No comments
  5. Anonymous
    2017-06-29T13:52:42+00:00

    add data as a new series that plots a straight line. 

    --

    Regards,

    Tom Ogilvy

    0 comments No comments