Date post: | 08-Nov-2014 |
Category: |
Documents |
Upload: | ffsdfsfdftrert |
View: | 7 times |
Download: | 0 times |
1Data 1 Data 2
2 84 66 48 2
0
2
4
6
8
10
12
Data 1
Make A1 = 1 to chart A3:A6 or anything else to chart B3:B6. I use a named formula (ChartSeries) that is defined as an if function. The range changes depending on the value in A1. The chart graphs the range. The title of the chart is also based a named range (ChartTitle), so that it will also change as the data series changes. Go to Insert Name Define to see the definitions of the named ranges.
0
2
4
6
8
10
12
Data 1
Make A1 = 1 to chart A3:A6 or anything else to chart B3:B6. I use a named formula (ChartSeries) that is defined as an if function. The range changes depending on the value in A1. The chart graphs the range. The title of the chart is also based a named range (ChartTitle), so that it will also change as the data series changes. Go to Insert Name Define to see the definitions of the named ranges.
These are the 9 data series that can be charted10.00 40.00 25.00 38.20 10.07 59.65 89.91 88.46 95.8515.00 35.00 30.00 1.45 40.74 86.32 13.86 24.50 4.5520.00 30.00 35.00 3.24 16.41 21.96 1.71 28.50 34.3125.00 25.00 30.00 55.36 35.74 37.18 35.56 91.03 46.6030.00 20.00 25.00 42.62 30.39 97.57 80.67 99.12 25.6335.00 15.00 20.00 95.17 5.34 70.50 81.65 97.25 46.6340.00 10.00 15.00 30.02 75.02 35.15 77.57 7.43 19.84
ChartRange3
25.0030.0035.0030.0025.0020.0015.00
1 2 3 4 5 6 70.00
5.00
10.00
15.00
20.00
25.00
30.00
35.00
40.00
ChartRange3
This is the data that is actually charted.
Choose a data series from the drop-down list and it will be charted.
This worksheet demonstrates how to chart any of several series one at a time. It uses named ranges and data validation. Each range has a name, and then I created another name (SeriesToChart) which is defined as =indirect(a10). Next, I selected A13:A19 and entered =SeriesToChart as an array. The chart below actually charts this range, but by changing the name in A10, the data that is charted changes. This is just a more generalized extension of the technique in the "Changing Chart Data" sheet.
ChartRange1ChartRange2ChartRange3ChartRange4ChartRange5ChartRange6ChartRange7ChartRange8ChartRange9
1 2 3 4 5 6 70.00
5.00
10.00
15.00
20.00
25.00
30.00
35.00
40.00
ChartRange3Above are the names of the data series to be used in the data validation for the drop-down list in A10.
This worksheet demonstrates how to chart any of several series one at a time. It uses named ranges and data validation. Each range has a name, and then I created another name (SeriesToChart) which is defined as =indirect(a10). Next, I selected A13:A19 and entered =SeriesToChart as an array. The chart below actually charts this range, but by changing the name in A10, the data that is charted changes. This is just a more generalized extension of the technique in the "Changing Chart Data" sheet.
Series 1 Series 213.82 11.0115.96 18.9918.85 19.5810.14 14.0718.63 11.3912.45 10.4510.32 11.6412.20 10.1712.85 13.4315.54 13.5713.72 13.5619.10 14.6614.26 13.0419.76 18.0719.91 12.5619.52 10.5317.05 18.1719.73 14.6613.00 17.5013.51 17.7610.74 11.9810.64 13.5814.87 15.1113.73 19.8610.41 12.3110.05 19.2611.00 12.5717.76 16.8018.09 17.2410.85 11.32
This shows how to create a multiple chart sheet as in Chart1.
To the left are two random data series. First, create a chart of Series 1 and put it in a new sheet (Chart1). Now, clear the chart (right click it and choose Clear). Recreate the chart of Series 1 and put it in the Chart1 sheet. Now, create a chart of Series 2 and also put it in the Chart1 sheet. You can now adjust their sizes and positions until they look right.
This shows how to create a multiple chart sheet as in Chart1.
To the left are two random data series. First, create a chart of Series 1 and put it in a new sheet (Chart1). Now, clear the chart (right click it and choose Clear). Recreate the chart of Series 1 and put it in the Chart1 sheet. Now, create a chart of Series 2 and also put it in the Chart1 sheet. You can now adjust their sizes and positions until they look right.
1 2 3 4 5 6 7 8 9 10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
0.00
5.00
10.00
15.00
20.00
25.00
Series 2
1 2 3 4 5 6 7 8 9 10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
0.00
5.00
10.00
15.00
20.00
25.00
Series 1
Quarter Real GDP Recession?1947q1 1481.7 01947q2 1489.4 01947q3 1493.1 01947q4 1516.4 01948q1 1537.9 01948q2 1562 01948q3 1568.4 01948q4 1571.4 11949q1 1549.4 11949q2 1545.1 11949q3 1562.6 11949q4 1546.5 11950q1 1610.5 01950q2 1658.8 01950q3 1723 01950q4 1753.9 01951q1 1773.5 01951q2 1803.7 01951q3 1839.8 01951q4 1843.3 01952q1 1864.7 01952q2 1866.2 01952q3 1878 01952q4 1940.2 01953q1 1976 01953q2 1992.2 11953q3 1979.5 11953q4 1947.8 11954q1 1938.1 11954q2 1941 11954q3 1962 01954q4 2000.9 01955q1 2058.1 01955q2 2091 01955q3 2118.9 01955q4 2130.1 01956q1 2121 01956q2 2137.7 01956q3 2135.3 01956q4 2170.4 01957q1 2182.7 01957q2 2177.7 01957q3 2198.9 11957q4 2176 11958q1 2117.4 1
1947
q119
47q2
1947
q319
47q4
1948
q119
48q2
1948
q319
48q4
1949
q119
49q2
1949
q319
49q4
1950
q119
50q2
1950
q319
50q4
1951
q119
51q2
1951
q319
51q4
1952
q119
52q2
1952
q319
52q4
1953
q119
53q2
1953
q319
53q4
1954
q119
54q2
1954
q319
54q4
1955
q119
55q2
1955
q319
55q4
1956
q119
56q2
1956
q319
56q4
1957
q119
57q2
1957
q319
57q4
1958
q119
58q2
1958
q319
58q4
1959
q119
59q2
1959
q319
59q4
1960
q119
60q2
1960
q319
60q4
1961
q119
61q2
1961
q319
61q4
1962
q119
62q2
1962
q319
62q4
1963
q119
63q2
1963
q319
63q4
1964
q119
64q2
1964
q319
64q4
1965
q119
65q2
1965
q319
65q4
1966
q119
66q2
1966
q319
66q4
1967
q119
67q2
1967
q319
67q4
1968
q119
68q2
1968
q319
68q4
1969
q119
69q2
1969
q319
69q4
1970
q119
70q2
1970
q319
70q4
1971
q119
71q2
1971
q319
71q4
1972
q119
72q2
1972
q319
72q4
1973
q119
73q2
1973
q319
73q4
1974
q119
74q2
1974
q319
74q4
1975
q119
75q2
1975
q319
75q4
1976
q119
76q2
1976
q319
76q4
1977
q119
77q2
1977
q319
77q4
1978
q119
78q2
1978
q319
78q4
1979
q119
79q2
1979
q319
79q4
1980
q119
80q2
1980
q319
80q4
1981
q119
81q2
1981
q319
81q4
1982
q119
82q2
1982
q319
82q4
1983
q119
83q2
1983
q319
83q4
1984
q119
84q2
1984
q319
84q4
1985
q119
85q2
1985
q319
85q4
1986
q119
86q2
1986
q319
86q4
1987
q119
87q2
1987
q319
87q4
1988
q119
88q2
1988
q319
88q4
1989
q119
89q2
1989
q319
89q4
1990
q119
90q2
1990
q319
90q4
1991
q119
91q2
1991
q319
91q4
1992
q119
92q2
1992
q319
92q4
1993
q119
93q2
1993
q319
93q4
1994
q119
94q2
1994
q319
94q4
1995
q119
95q2
1995
q319
95q4
1996
q119
96q2
1996
q319
96q4
1997
q119
97q2
1997
q319
97q4
1998
q119
98q2
1998
q319
98q4
1999
q119
99q2
1999
q319
99q4
2000
q120
00q2
2000
q320
00q4
2001
q120
01q2
2001
q3
0
1000
2000
3000
4000
5000
6000
7000
8000
9000
10000
0
0.2
0.4
0.6
0.8
1
Year & Quarter
Rea
l G
DP
This workbook shows how we can add shading to various time periods -- here, recessions. It is common in charts of economic data series to show shading during recessionary periods. To do this we create an extra data series using a formula that results in either True (1) or False (0). In this case, True (1) means a recession and False (0) means expansion. Now, chart this data series as a Column chart and place it on the secondary Y axis (axis on the right). Eliminate the lines around the columns and set the "gap width" to zero. Now, on the Scale tab change the scale so that it ranges from 0 to 1.01. Finally, change the color of the columns so that it is a light gray color (this will allow the other series to be seen through the columns). I have also set the secondary axis so that it shows no tick mark labels and so that the font color is white. This will cause it to be invisible.
1958q2 2129.7 11958q3 2177.5 01958q4 2226.5 01959q1 2273 01959q2 2332.4 01959q3 2331.4 01959q4 2339.1 01960q1 2391 01960q2 2379.2 11960q3 2383.6 11960q4 2352.9 11961q1 2366.5 11961q2 2410.8 01961q3 2450.4 01961q4 2500.4 01962q1 2544 01962q2 2571.5 01962q3 2596.8 01962q4 2603.3 01963q1 2634.1 01963q2 2668.4 01963q3 2719.6 01963q4 2739.4 01964q1 2800.5 01964q2 2833.8 01964q3 2872 01964q4 2879.5 01965q1 2950.1 01965q2 2989.9 01965q3 3050.7 01965q4 3123.6 01966q1 3201.1 01966q2 3213.2 01966q3 3233.6 01966q4 3261.8 01967q1 3291.8 01967q2 3289.7 01967q3 3313.5 01967q4 3338.3 01968q1 3406.2 01968q2 3464.8 01968q3 3489.2 01968q4 3504.1 01969q1 3558.3 01969q2 3567.6 01969q3 3588.3 0
1969q4 3571.4 11970q1 3566.5 11970q2 3573.9 11970q3 3605.2 11970q4 3566.5 11971q1 3666.1 01971q2 3686.2 01971q3 3714.5 01971q4 3723.8 01972q1 3796.9 01972q2 3883.8 01972q3 3922.3 01972q4 3990.5 01973q1 4092.3 01973q2 4133.3 01973q3 4117 01973q4 4151.1 11974q1 4119.3 11974q2 4130.4 11974q3 4084.5 11974q4 4062 11975q1 4010 11975q2 4045.2 01975q3 4115.4 01975q4 4167.2 01976q1 4266.1 01976q2 4301.5 01976q3 4321.9 01976q4 4357.4 01977q1 4410.5 01977q2 4489.8 01977q3 4570.6 01977q4 4576.1 01978q1 4588.9 01978q2 4765.7 01978q3 4811.7 01978q4 4876 01979q1 4888.3 01979q2 4891.4 01979q3 4926.2 01979q4 4942.6 01980q1 4958.9 11980q2 4857.8 11980q3 4850.3 11980q4 4936.6 01981q1 5032.5 0
1981q2 4997.3 01981q3 5056.8 11981q4 4997.1 11982q1 4914.3 11982q2 4935.5 11982q3 4912.1 11982q4 4915.6 11983q1 4972.4 01983q2 5089.8 01983q3 5180.4 01983q4 5286.8 01984q1 5402.3 01984q2 5493.8 01984q3 5541.3 01984q4 5583.1 01985q1 5629.7 01985q2 5673.8 01985q3 5758.6 01985q4 5806 01986q1 5858.9 01986q2 5883.3 01986q3 5937.9 01986q4 5969.5 01987q1 6013.33 01987q2 6077.16 01987q3 6128.1 01987q4 6234.44 01988q1 6275.85 01988q2 6349.84 01988q3 6382.34 01988q4 6465.24 01989q1 6543.84 01989q2 6579.39 01989q3 6610.57 01989q4 6633.54 01990q1 6716.28 01990q2 6731.75 01990q3 6719.4 11990q4 6664.24 11991q1 6631.35 11991q2 6668.54 01991q3 6684.87 01991q4 6720.89 01992q1 6783.32 01992q2 6846.76 01992q3 6899.65 0
1992q4 6990.6 01993q1 6988.72 01993q2 7031.15 01993q3 7062.01 01993q4 7168.66 01994q1 7229.37 01994q2 7330.24 01994q3 7370.16 01994q4 7461.11 01995q1 7488.69 01995q2 7503.3 01995q3 7561.35 01995q4 7621.9 01996q1 7676.4 01996q2 7802.9 01996q3 7841.9 01996q4 7931.3 01997q1 8016.39 01997q2 8131.95 01997q3 8216.56 01997q4 8272.9 01998q1 8396.34 01998q2 8442.91 01998q3 8528.47 01998q4 8667.85 01999q1 8733.48 01999q2 8771.22 01999q3 8871.46 01999q4 9049.92 02000q1 9102.5 02000q2 9229.38 02000q3 9260.09 02000q4 9303.92 02001q1 9334.47 02001q2 9341.74 12001q3 9333.38 1
1947
q119
47q2
1947
q319
47q4
1948
q119
48q2
1948
q319
48q4
1949
q119
49q2
1949
q319
49q4
1950
q119
50q2
1950
q319
50q4
1951
q119
51q2
1951
q319
51q4
1952
q119
52q2
1952
q319
52q4
1953
q119
53q2
1953
q319
53q4
1954
q119
54q2
1954
q319
54q4
1955
q119
55q2
1955
q319
55q4
1956
q119
56q2
1956
q319
56q4
1957
q119
57q2
1957
q319
57q4
1958
q119
58q2
1958
q319
58q4
1959
q119
59q2
1959
q319
59q4
1960
q119
60q2
1960
q319
60q4
1961
q119
61q2
1961
q319
61q4
1962
q119
62q2
1962
q319
62q4
1963
q119
63q2
1963
q319
63q4
1964
q119
64q2
1964
q319
64q4
1965
q119
65q2
1965
q319
65q4
1966
q119
66q2
1966
q319
66q4
1967
q119
67q2
1967
q319
67q4
1968
q119
68q2
1968
q319
68q4
1969
q119
69q2
1969
q319
69q4
1970
q119
70q2
1970
q319
70q4
1971
q119
71q2
1971
q319
71q4
1972
q119
72q2
1972
q319
72q4
1973
q119
73q2
1973
q319
73q4
1974
q119
74q2
1974
q319
74q4
1975
q119
75q2
1975
q319
75q4
1976
q119
76q2
1976
q319
76q4
1977
q119
77q2
1977
q319
77q4
1978
q119
78q2
1978
q319
78q4
1979
q119
79q2
1979
q319
79q4
1980
q119
80q2
1980
q319
80q4
1981
q119
81q2
1981
q319
81q4
1982
q119
82q2
1982
q319
82q4
1983
q119
83q2
1983
q319
83q4
1984
q119
84q2
1984
q319
84q4
1985
q119
85q2
1985
q319
85q4
1986
q119
86q2
1986
q319
86q4
1987
q119
87q2
1987
q319
87q4
1988
q119
88q2
1988
q319
88q4
1989
q119
89q2
1989
q319
89q4
1990
q119
90q2
1990
q319
90q4
1991
q119
91q2
1991
q319
91q4
1992
q119
92q2
1992
q319
92q4
1993
q119
93q2
1993
q319
93q4
1994
q119
94q2
1994
q319
94q4
1995
q119
95q2
1995
q319
95q4
1996
q119
96q2
1996
q319
96q4
1997
q119
97q2
1997
q319
97q4
1998
q119
98q2
1998
q319
98q4
1999
q119
99q2
1999
q319
99q4
2000
q120
00q2
2000
q320
00q4
2001
q120
01q2
2001
q3
0
1000
2000
3000
4000
5000
6000
7000
8000
9000
10000
0
0.2
0.4
0.6
0.8
1
Year & Quarter
Rea
l G
DP
This workbook shows how we can add shading to various time periods -- here, recessions. It is common in charts of economic data series to show shading during recessionary periods. To do this we create an extra data series using a formula that results in either True (1) or False (0). In this case, True (1) means a recession and False (0) means expansion. Now, chart this data series as a Column chart and place it on the secondary Y axis (axis on the right). Eliminate the lines around the columns and set the "gap width" to zero. Now, on the Scale tab change the scale so that it ranges from 0 to 1.01. Finally, change the color of the columns so that it is a light gray color (this will allow the other series to be seen through the columns). I have also set the secondary axis so that it shows no tick mark labels and so that the font color is white. This will cause it to be invisible.