How do you add a straight vertical line to a chart?

LostCause

Board Regular
Joined
Jul 13, 2006
Messages
99
Firstly, thanks for reading.

I wish to add a vertical line mathematically (without drawing it in) to the following chart.



The line I want to add is basically x = 40 (I've drawn it here).

I have trouble doing this because when I go to add series, the data it tries to plot it against is the x-axis.

Any ideas?

Thanks again.
 

Some videos you may like

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().

LostCause

Board Regular
Joined
Jul 13, 2006
Messages
99
Hmm...

I can get the lines to appear no problem, but is there anyway to have all four in the same series order sequence?

Right now, if I click into series order, it only displays either the two vertical lines or the two sloped lines
 

Andy Pope

Board Regular, The other chart guy
Joined
Dec 31, 2003
Messages
348

ADVERTISEMENT

Only series of the same chart type and axis will appear in the series order list.

You could make the 2 line charts into xy-scatter charts also.

Why do you need to change the series order?

Anything to do with the legend or maybe the vertical lines appearing in front of the data lines?
 

LostCause

Board Regular
Joined
Jul 13, 2006
Messages
99
Thanks.

I wanted to import the chart into PowerPoint and stagger the animation of the various lines. It didn't like this because it grouped them in pairs rather than one group of four. For example:

1) Red Sloped line
2) Brown Vertical line
3) Green Sloped line
4) Yellow Vertical line

In PowerPoint it would only let me go in order of sloped lines then vertical.

I have solved the problem for this specific situation (by using drawn lines in Excel) so am not in need of further aid. I've only highlighted the problem for discussion!

Thanks again
 

Jon Peltier

MrExcel MVP
Joined
May 14, 2003
Messages
4,922
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
Using drawn lines is not a very nice solution. The lines may move, while using a series keeps the lines in place.

Your chart looks like it would be well suited to an XY chart, as Andy has suggested. It has real numerical data along the horizontal axis. When all series are XY types, you'll be able to reorder them as needed.
 

LostCause

Board Regular
Joined
Jul 13, 2006
Messages
99
Thanks

What I did worked for the particular instance I needed it to work for. In future I'd use the method you propose.

:)
 

Watch MrExcel Video

Forum statistics

Threads
1,114,052
Messages
5,545,735
Members
410,703
Latest member
yaronjoseph
Top