views:

10810

answers:

3

I have monthly sales figures stored in separate sheets. I would like to create a plot of sales for multiple products per month. Each product would be represented in a different colored line on the same chart with each month running along the x axis.

What is the best way to create a single line chart that pulls from the same relative cells on multiple sheets?

+1  A: 

Use the Chart Wizard.

On Step 2 of 4, there is a tab labeled "Series". There are 3 fields and a list box on this tab. The list box shows the different series you are already including on the chart. Each series has both a "Name" field and a "Values" field that is specific to that series. The final field is the "Category (X) axis labels" field, which is common to all series.

Click on the "Add" button below the list box. This will add a blank series to your list box. Notice that the values for "Name" and for "Values" change when you highlight a series in the list box.

Select your new series.

There is an icon in each field on the right side. This icon allows you to select cells in the workbook to pull the data from. When you click it, the Wizard temporarily hides itself (except for the field you are working in) allowing you to interact with the workbook.

Select the appropriate sheet in the workbook and then select the fields with the data you want to show in the chart. The button on the right of the field can be clicked to unhide the wizard.

Hope that helps.

EDIT: The above applies to 2003 and before. For 2007, when the chart is selected, you should be able to do a similar action using the "Select Data" option on the "Design" tab of the ribbon. This opens up a dialog box listing the Series for the chart. You can select the series just as you could in Excel 2003, but you must use the "Add" and "Edit" buttons to define custom series.

Marc Reside
Obviously, you can always manually type in the needed values into the fields, using the format "=Sheet1!A2", but I posted the more GUI (mouse-oriented) way to do things.
Marc Reside
I'm using Excel 2007. How do you start the wizard? Or do you simply insert a chart and use the Chart Tools (Design/Layout/Format) to create the chart? Is this answer specific to a particular version of Excel?
AlanKley
I guess this is specific to Excel 2003 and previous.For 2007, you should be able to define series using the ribbon. Give me a moment to do some checking.
Marc Reside
I've updated the answer with the correct Excel 2007 information.
Marc Reside
I sure appreciate your time and answers Marc.
AlanKley
A: 

I spent 2 hours with figuring out how to add new series and found nothing! Their ribbon is the most stupid idea of history

MicrosoftGuy
A: 

2007 is more powerful with ribbon..:=) To add new series in chart do: Select Chart, then click Design in Chart Tools on the ribbon, On the Design ribbon, select "Select Data" in Data Group, Then you will see the button for Add to add new series.

Hope that will help.

Sabeena