Thread: swapping axis'
View Single Post
  #6   Report Post  
Posted to microsoft.public.excel.charting
Jon Peltier Jon Peltier is offline
external usenet poster
 
Posts: 6,582
Default swapping axis'

You don't add a secondary axis. You format a series to be plotted on the
secondary axis, and this cues Excel to add the axis. Right click on a
series, choose Format Series, and on the Axis tab (2003) or on the main tab
(2007), select the secondary option.

To start out with labels (assuming the two series Y data are in columns B
and C) put the labels in the row above the data in columns B and C, and
leave the corresponding cell in column A blank. Select the data including
this first row, and Excel adds the labels as series names.

To add series names to existing series, select the series and look in the
formula bar. If there are no labels already, the formula will start like

=SERIES(,

Click between the opening paren and the comma, and type the name you want in
quotes. Or click between the opening paren and the comma, then click on the
cell that contains the series name, so the formula will begin something
like:

=SERIES("First Series",

or

=SERIES(Sheet1!$B$1,

Items in the formula after the first column are the X values, the Y values,
and the plot order of the series. For more info:

http://peltiertech.com/Excel/ChartsH...esFormula.html

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services, Inc.
http://PeltierTech.com/WordPress/
_______



"baltobernie" wrote in message
...
Yes, the XY chart is what I wanted, all along. OK, almost the

1.) How do I add a secondary Y axis (data)? If I select columns A,B & C,
the chart is created with both lines and both axis correctly, but "add
secondary Y axis" is greyed out.

2.) How do I rename "Series 1" and "Series 2" labels?

"Jon Peltier" wrote:

If you put the X values to the left of the Y values, select them both,
and
create the chart, Excel should automatically use the leftmost column for
X
values.

Quick trick: so Excel doesn't make two sets of lines, make an XY chart
(which you probably want anyway, because the line chart treats X values
as
nonnumeric labels). You can select an option that uses markers and lines.
If
you still think you want a line chart per Microsoft's definition, you can
right click on the chart and pick Chart Type to change it.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services, Inc.
http://PeltierTech.com/WordPress/
_______


"baltobernie" wrote in message
...
In Excel 2002, Column "A" data: 6, 7 8, 9, 10. Column "B" data: 200,
300,
400, 500

When I try to create a line chart, Column "B" data is in the X axis. I
want
Column "A" data on the X axis, so I swap the two columns. No matter,
the
chart still puts 200, 300, etc. on the X axis!

How do I choose which column is X, and which is Y?