Você está na página 1de 13

1

Data 1 Data 2 Make A1 = 1 to chart A3:A6 or anything else to chart B3:B6. I use a named formula
2 8 (ChartSeries) that is defined as an if function. The range changes depending on the value i
A1. The chart graphs the range. The title of the chart is also based a named range (ChartT
4 6
so that it will also change as the data series changes. Go to Insert Name Define to see the
6 4 definitions of the named ranges.
8 2

Data 1

9
8
7
6
5
4
3
2
1
0
1 2 3
Series1 2 4 6
use a named formula
s depending on the value in
ed a named range (ChartTitle),
t Name Define to see the

4
8
These are the 9 data series that can be charted
10.00 40.00 25.00 38.20 10.07 59.65 89.91 88.46 95.85
15.00 35.00 30.00 1.45 40.74 86.32 13.86 24.50 4.55
20.00 30.00 35.00 3.24 16.41 21.96 1.71 28.50 34.31
25.00 25.00 30.00 55.36 35.74 37.18 35.56 91.03 46.60
30.00 20.00 25.00 42.62 30.39 97.57 80.67 99.12 25.63
35.00 15.00 20.00 95.17 5.34 70.50 81.65 97.25 46.63
40.00 10.00 15.00 30.02 75.02 35.15 77.57 7.43 19.84
This worksheet demonstrates how to chart any of several series one at a tim
ChartRange3 ranges and data validation. Each range has a name, and then I created anot
(SeriesToChart) which is defined as =indirect(a10). Next, I selected A13:A
Choose a data series from the =SeriesToChart as an array. The chart below actually charts this range, bu
25.00 drop-down list and it will be name in A10, the data that is charted changes. This is just a more generaliz
charted. technique in the "Changing Chart Data" sheet.
30.00
35.00
30.00 ChartRange3
25.00
20.00
15.00 40.00
35.00
30.00
This is the data that is actually
25.00
charted.
20.00
15.00
10.00
5.00
0.00
1 2 3 4
ChartRange1
ChartRange2
ChartRange3
ChartRange4
ChartRange5
ChartRange6
any of several series one at a time. It uses named ChartRange7
s a name, and then I created another name ChartRange8
ect(a10). Next, I selected A13:A19 and entered ChartRange9
ow actually charts this range, but by changing the
ges. This is just a more generalized extension of the

Above are the names of the data


artRange3 series to be used in the data
validation for the drop-down list in
A10.

5 6 7
Series 1 Series 2
13.82 11.01 This shows how to create a multiple chart sheet as in Chart1.
15.96 18.99
18.85 19.58 To the left are two random data series. First, create a chart of Series 1 and put it
10.14 14.07 in a new sheet (Chart1). Now, clear the chart (right click it and choose Clear).
18.63 11.39 Recreate the chart of Series 1 and put it in the Chart1 sheet. Now, create a chart
12.45 10.45 of Series 2 and also put it in the Chart1 sheet. You can now adjust their sizes and
positions until they look right.
10.32 11.64
12.20 10.17
12.85 13.43
15.54 13.57
13.72 13.56
19.10 14.66
14.26 13.04
19.76 18.07
19.91 12.56
19.52 10.53
17.05 18.17
19.73 14.66
13.00 17.50
13.51 17.76
10.74 11.98
10.64 13.58
14.87 15.11
13.73 19.86
10.41 12.31
10.05 19.26
11.00 12.57
17.76 16.80
18.09 17.24
10.85 11.32
es 1 and put it
oose Clear).
create a chart
t their sizes and
Series 2 Series 1

25.00 25.00

20.00 20.00

15.00 15.00

10.00 10.00

5.00 5.00

0.00 0.00
1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 1 3 5 7 9 11 13 15 17 19 21 23 25 27 29
Quarter Real GDP Recession?
1947q1 1481.7 0 This workbook shows how we can add shading to various time periods
1947q2 1489.4 0 It is common in charts of economic data series to show shading during recession
1947q3 1493.1 0 periods. To do this we create an extra data series using a formula that results in e
1947q4 1516.4 0 True (1) or False (0). In this case, True (1) means a recession and False (0) mean
1948q1 1537.9 0 expansion. Now, chart this data series as a Column chart and place it on the seco
1948q2 1562 0 axis (axis on the right). Eliminate the lines around the columns and set the "gap
zero. Now, on the Scale tab change the scale so that it ranges from 0 to 1.01. Fi
1948q3 1568.4 0
change the color of the columns so that it is a light gray color (this will allow the
1948q4 1571.4 1 series to be seen through the columns). I have also set the secondary axis so that
1949q1 1549.4 1 no tick mark labels and so that the font color is white. This will cause it to be in
1949q2 1545.1 1
1949q3 1562.6 1
1949q4 1546.5 1
1950q1 1610.5 0
1950q2 1658.8 0
1950q3 1723 0 10000
1950q4 1753.9 0 9000
1951q1 1773.5 0 8000
1951q2 1803.7 0 7000
Real GDP

1951q3 1839.8 0 6000


1951q4 1843.3 0 5000
1952q1 1864.7 0 4000
1952q2 1866.2 0 3000
1952q3 1878 0 2000
1952q4 1940.2 0 1000
0
1953q1 1976 0
1947q1
1950q2
1953q3
1956q4
1960q1
1963q2
1966q3
1969q4
1973q1
1976q2
1979q3
1953q2 1992.2 1
1953q3 1979.5 1
1953q4 1947.8 1 Year & Quarter
1954q1 1938.1 1
1954q2 1941 1
1954q3 1962 0
1954q4 2000.9 0
1955q1 2058.1 0
1955q2 2091 0
1955q3 2118.9 0
1955q4 2130.1 0
1956q1 2121 0
1956q2 2137.7 0
1956q3 2135.3 0
1956q4 2170.4 0
1957q1 2182.7 0
1957q2 2177.7 0
1957q3 2198.9 1
1957q4 2176 1
1958q1 2117.4 1
1958q2 2129.7 1
1958q3 2177.5 0
1958q4 2226.5 0
1959q1 2273 0
1959q2 2332.4 0
1959q3 2331.4 0
1959q4 2339.1 0
1960q1 2391 0
1960q2 2379.2 1
1960q3 2383.6 1
1960q4 2352.9 1
1961q1 2366.5 1
1961q2 2410.8 0
1961q3 2450.4 0
1961q4 2500.4 0
1962q1 2544 0
1962q2 2571.5 0
1962q3 2596.8 0
1962q4 2603.3 0
1963q1 2634.1 0
1963q2 2668.4 0
1963q3 2719.6 0
1963q4 2739.4 0
1964q1 2800.5 0
1964q2 2833.8 0
1964q3 2872 0
1964q4 2879.5 0
1965q1 2950.1 0
1965q2 2989.9 0
1965q3 3050.7 0
1965q4 3123.6 0
1966q1 3201.1 0
1966q2 3213.2 0
1966q3 3233.6 0
1966q4 3261.8 0
1967q1 3291.8 0
1967q2 3289.7 0
1967q3 3313.5 0
1967q4 3338.3 0
1968q1 3406.2 0
1968q2 3464.8 0
1968q3 3489.2 0
1968q4 3504.1 0
1969q1 3558.3 0
1969q2 3567.6 0
1969q3 3588.3 0
1969q4 3571.4 1
1970q1 3566.5 1
1970q2 3573.9 1
1970q3 3605.2 1
1970q4 3566.5 1
1971q1 3666.1 0
1971q2 3686.2 0
1971q3 3714.5 0
1971q4 3723.8 0
1972q1 3796.9 0
1972q2 3883.8 0
1972q3 3922.3 0
1972q4 3990.5 0
1973q1 4092.3 0
1973q2 4133.3 0
1973q3 4117 0
1973q4 4151.1 1
1974q1 4119.3 1
1974q2 4130.4 1
1974q3 4084.5 1
1974q4 4062 1
1975q1 4010 1
1975q2 4045.2 0
1975q3 4115.4 0
1975q4 4167.2 0
1976q1 4266.1 0
1976q2 4301.5 0
1976q3 4321.9 0
1976q4 4357.4 0
1977q1 4410.5 0
1977q2 4489.8 0
1977q3 4570.6 0
1977q4 4576.1 0
1978q1 4588.9 0
1978q2 4765.7 0
1978q3 4811.7 0
1978q4 4876 0
1979q1 4888.3 0
1979q2 4891.4 0
1979q3 4926.2 0
1979q4 4942.6 0
1980q1 4958.9 1
1980q2 4857.8 1
1980q3 4850.3 1
1980q4 4936.6 0
1981q1 5032.5 0
1981q2 4997.3 0
1981q3 5056.8 1
1981q4 4997.1 1
1982q1 4914.3 1
1982q2 4935.5 1
1982q3 4912.1 1
1982q4 4915.6 1
1983q1 4972.4 0
1983q2 5089.8 0
1983q3 5180.4 0
1983q4 5286.8 0
1984q1 5402.3 0
1984q2 5493.8 0
1984q3 5541.3 0
1984q4 5583.1 0
1985q1 5629.7 0
1985q2 5673.8 0
1985q3 5758.6 0
1985q4 5806 0
1986q1 5858.9 0
1986q2 5883.3 0
1986q3 5937.9 0
1986q4 5969.5 0
1987q1 6013.33 0
1987q2 6077.16 0
1987q3 6128.1 0
1987q4 6234.44 0
1988q1 6275.85 0
1988q2 6349.84 0
1988q3 6382.34 0
1988q4 6465.24 0
1989q1 6543.84 0
1989q2 6579.39 0
1989q3 6610.57 0
1989q4 6633.54 0
1990q1 6716.28 0
1990q2 6731.75 0
1990q3 6719.4 1
1990q4 6664.24 1
1991q1 6631.35 1
1991q2 6668.54 0
1991q3 6684.87 0
1991q4 6720.89 0
1992q1 6783.32 0
1992q2 6846.76 0
1992q3 6899.65 0
1992q4 6990.6 0
1993q1 6988.72 0
1993q2 7031.15 0
1993q3 7062.01 0
1993q4 7168.66 0
1994q1 7229.37 0
1994q2 7330.24 0
1994q3 7370.16 0
1994q4 7461.11 0
1995q1 7488.69 0
1995q2 7503.3 0
1995q3 7561.35 0
1995q4 7621.9 0
1996q1 7676.4 0
1996q2 7802.9 0
1996q3 7841.9 0
1996q4 7931.3 0
1997q1 8016.39 0
1997q2 8131.95 0
1997q3 8216.56 0
1997q4 8272.9 0
1998q1 8396.34 0
1998q2 8442.91 0
1998q3 8528.47 0
1998q4 8667.85 0
1999q1 8733.48 0
1999q2 8771.22 0
1999q3 8871.46 0
1999q4 9049.92 0
2000q1 9102.5 0
2000q2 9229.38 0
2000q3 9260.09 0
2000q4 9303.92 0
2001q1 9334.47 0
2001q2 9341.74 1
2001q3 9333.38 1
ing to various time periods -- here, recessions.
es to show shading during recessionary
series using a formula that results in either
means a recession and False (0) means
Column chart and place it on the secondary Y
around the columns and set the "gap width" to
e so that it ranges from 0 to 1.01. Finally,
a light gray color (this will allow the other
ve also set the secondary axis so that it shows
r is white. This will cause it to be invisible.

0.8

0.6

0.4

0.2

0
1979q3
1982q4
1986q1
1989q2
1992q3
1995q4
1999q1

r & Quarter

Você também pode gostar