How to Add Horizontal Line to Scatter Plot??

Barklie

Board Regular
Joined
Jul 4, 2013
Messages
86
Hello, I have a scatter plot and would like to add a vertical line with a value of 270 to it. Is there a way I can do this? Here is what it looks like so far.

IncumbPredElec_zps51995823.gif
[/URL][/IMG]

Thanks!
 
Last edited:

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
A line on a scatter chart is defined by {X1,Y1} and {X2,Y2}.

Put your min and max X in two cells, for example E2 and E3, and put the desired Y value for the line in both F2 and F3.

Right click on the chart, choose Select Data from the pop up menu. Choose Add above the list of series, then select the added series and choose Edit. Type a name in the first box ("Average" perhaps), click in the second box and select the range for the X values (E2:E3 using my sample cells), and click in the third box and select the range for the Y values (F2:F3).

Click OK.

Then select the added series, and format it so it shows a line and no markers.
 
Upvote 0

Forum statistics

Threads
1,217,383
Messages
6,136,265
Members
450,001
Latest member
KWeekley08

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top