In Microsoft Excel it is possible to display collected data against a desired or recommended range for the data. This range is usually displayed as a shaded or patterned bar on the plot area against which the data is plotted.
Create a Chart
To create a chart, follow these steps:- Close and save any open workbooks, and then create a new workbook. In
Sheet1, type the following values:
A1: B1: Recommended C1: Actual A2: 4 B2: 6 C2: 7.5 A3: 4 B3: 6 C3: 8 A4: 4 B4: 6 C4: 5.25 A5: 4 B5: 6 C5: 3 A6: 4 B6: 6 C6: 5
- Select cells A1:C6, and then click Chart on the Insert menu.
- In the Chart Wizard, click Area in the Chart type list, and then click Next.
- Click the Series tab in step 2 of the Chart Wizard, and then click Add to add a new data series to the chart.
- Select the entry in the Category (X) axis labels box, and then press DELETE.
- Select the entry in the Values box, press DELETE, and then type =Sheet1!A2:A6 in the Values box.
- Click Finish to create the chart.
Format the Data Series
- If the Chart toolbar is not visible, point to Toolbars on the View menu, and then click Chart.
- Click Series "Actual" in the Chart Objects list on the Chart toolbar. On the Format menu, click Selected Data Series.
- On the Axis tab, click Secondary axis under Plot series on, and then click OK.
- On the Chart menu, click Chart type, click Line in the Chart type list, and then click OK.
The "Actual" data series is represented with a line. - In the Chart Objects list on the Chart toolbar, click Series "Recommended" to format the "Recommended" data series.
- On the Chart menu, click Area under Chart type, click the upper-left area chart type under Chart sub-type, and then click OK.
Format the Axes Scale
You must apply the same scale to both of the value axes. In this example, the primary value axis has a maximum value of 7, and the secondary value axis has a maximum value of 9. You must change the maximum value of the primary value axis to 9. To do this, follow these steps:- In the Chart Objects list on the Chart toolbar, click Value Axis.
- On the Format menu, click Selected Axis, and then click the Scale tab.
- Type the value 9 in the Maximum box, and then click OK.
Hide the Extra Series
Apply the formatting that is necessary to hide Series3. To do this, follow these steps:- In the Chart Objects list on the Chart toolbar, click Series3.
- On the Format menu, click Selected Data Series.
You must select the same color for the area that you set for the plot area. By default, the plot area is gray. - Click an appropriate shade of gray, and then click OK.
- In the Chart Objects list on the Chart toolbar, click Legend, and then click the legend entry once for Series3. (You must select the entire entry, including the caption.)
- Press DELETE to remove the legend entry.
Remove Gridlines
Remove the gridlines that are automatically inserted in the chart. To do this, follow these steps:- On the Chart menu, click Chart Options, and then click the Gridlines tab.
- Under Value (Y) axis, click the Major gridlines box to remove the gridlines, and then click OK.