A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
OK, I see what you mean now. I don’t think you can change the chart data range without over-writing the series names in Excel 2007/10 (i.e. unless you have a simple chart data range that includes references to series names (column headings)) . You have a few options (other than redefinining each series via the bottom half of the Select Data Source window), including:
a) Move the chart into the same worksheet as the data, click on the chart or individual series and drag the coloured ranges down to the required cells.
or
b) Make your chart dynamic by pointing it at dynamic named ranges. To do this, set up the following three named ranges by going Formulas tab > Define Name:
Name: Scope: Refers to:
Cats Workbook =INDIRECT("Sheet1!A" & Sheet1!$F$1 & ":B" & Sheet1!$G$1)
Series1 Workbook =INDIRECT("Sheet1!N" & Sheet1!$F$1 & ":N" & Sheet1!$G$1)
Series2 Workbook =INDIRECT("Sheet1!P" & Sheet1!$F$1 & ":P" & Sheet1!$G$1)
replacing Sheet1!$F$1 and Sheet1!$G$1 with references to any two single cells where you can enter start and end row numbers for your plot - they could be on another sheet (and you can call the named ranges anything you like, as long as they don’t look like a cell reference, e.g. Ser1 could be confused with cell SER1, so is not permitted).
Now change the chart so the Axis label range points to =Sheet1!Cats
and the first series “Series values” points to =Sheet1!Series1
and the second series “Series values” points to =Sheet1!Series2
Now the plot should show data from between the rows specified in Sheet1!$F$1 and Sheet1!$G$1 (or whatever you changed them to in the named ranges).
You said your categories (x) axis contained dates. If you were to put a date in cell E1 and put the following formula in F1, you could just enter a date in E1 to indicate where the plotted range should begin:
=MATCH(E1,A:A,0)
If the number of rows to be plotted is constant, you could put =F1+48 in G1.
All of the above assumes your data is on a sheet called “Sheet1”. Adjust the above accordingly if it isn’t.
Hope that helps.
Cheers
Rich