The easiest way to get different formats is to use different series. If you
had one series, you could use autofiltering to narrow the displayed range of
data. However,I would probably build something with defined names to help
split the display into different series.
Suppose you have dates in column A (A2:A30) and values in column B (B2:B30).
Name the range of dates AllDates and the range of values AllValues. To do
this, select the range, and type the name into the Name Box (above cell A1).
Put the cut-off date into a cell (E3) and name this cell CutOffDate. Define
some dynamic ranges of values: Go to Insert menu > names > Define. Define
these two names:
Name: OldValues
Refers To:
=IF(AllDates<=CutOffDate,AllValues,NA())
Name: NewValues
Refers To:
=IF(AllDates>=CutOffDate,AllValues,NA())
This yields ranges with either the values or with unplottable error values
#N/A. I used both <= and >=, so both series include a point at CutOffDate.
Adjust the inequality operator to get what you need.
Create an XY chart using AllDates and AllValues. The series formula looks
like:
=SERIES(Sheet1!$B$1,Sheet1!$A$2:$A$30,Sheet1!$B$2:$B$30,1)
You could change it to
=SERIES(Sheet1!$B$1,Sheet1!AllDates,Sheet1!AllValues,1)
and Excel will change it to
=SERIES(Sheet1!$B$1,Book1.xls!AllDates,Book1.xls!AllValues,1)
but the series will remain in the chart. Change this to
=SERIES(Sheet1!$B$1,Book1.xls!AllDates,Book1.xls!OldValues,1)
and only the values before CutOffDate will appear. Copy the series formula,
select the plot area or chart area of the chart, click in the formula bar,
and paste the formula, then edit it to
=SERIES(Sheet1!$B$1,Book1.xls!AllDates,Book1.xls!NewValues,2)
A new series appears which shows only the new values. If you adjust
CutOffDate, the transition between old and new values in the chart moves
automatically.
- Jon