To create a histogram, you must organize the data in two columns on the worksheet. These columns must contain the following data:

Size: px
Start display at page:

Download "To create a histogram, you must organize the data in two columns on the worksheet. These columns must contain the following data:"

Transcription

1 You can analyze your data and display it in a histogram (a column chart that displays frequency data) by using the Histogram tool of the Analysis ToolPak. This data analysis add-in is available when you install Microsoft Office Excel 2007, but it might not be loaded automatically. IMPORTANT If you don't see the Data Analysis button in the Analysis group on the Data tab, you must load the Analysis ToolPak add-in. To create a histogram, you must organize the data in two columns on the worksheet. These columns must contain the following data: Input data This is the data that you want to analyze by using the Histogram tool. Bin numbers These numbers represent the intervals that you want the Histogram tool to use for measuring the input data in the data analysis. When you use the Histogram tool, Excel counts the number of data points in each data bin. A data point is included in a particular bin if the number is greater than the lowest bound and equal to or less than the greatest bound for the data bin. If you omit the bin range, Excel creates a set of evenly distributed bins between the minimum and maximum values of the input data. The output of the histogram analysis is displayed on a new worksheet (or in a new workbook) and shows a histogram table and a column chart that reflects the data in the histogram table. Load the Analysis ToolPak Click the Microsoft Office Button, and then click Excel Options. Click Add-Ins. In the Manage box, click Excel Add-ins, and then click Go. In the Add-Ins available box, do one of the following: To load the Analysis ToolPak, select the Analysis ToolPak check box, and then click OK. To include Visual Basic for Applications (VBA) functions for the Analysis ToolPak, select the Analysis ToolPak - VBA check box, and then click OK.

2 Create a histogram 1. To enter the data that you want to analyze in a histogram, do one of the following: Copy the example worksheet data to your worksheet. Create a blank workbook or worksheet. Select the example in the Help topic. Press CTRL+C. In the worksheet, select cell A1, and press CTRL+V. A B Input Range Bin Range On a worksheet, enter your own data as follows: 1. In one column, type the input data. You must enter quantitative numeric data (such as item amounts or test scores) in each cell of the input column the Histogram tool does not work with qualitative numeric data (such as identification numbers). 2. In another column, type the bin numbers that you want to use for the analysis. The bin numbers must be entered in ascending order. If you don't enter the bin numbers on the worksheet, the Histogram tool automatically creates evenly distributed bin intervals by using the minimum and maximum If you want, you can add a label in the first cell of these columns.

3 On the Data tab, in the Analysis group, click Data Analysis. In the Analysis Tools box, click Histogram, and then click OK. Under Input, in the Input Range box, enter the cell reference for the range of data you want to analyze. If you are using the sample worksheet data, type A1:A11. You can also click the Collapse Dialog button, select the range on the worksheet, and then click the Collapse Dialog button again to return to the dialog box. Under Input, in the Bin Range box, enter the cell reference to a range that contains an optional set of boundary values that define bin ranges. If you are using the sample worksheet data, type B1:B5. You can also click the Collapse Dialog button, select the range on the worksheet, and then click the Collapse Dialog button again to return to the dialog box. If you do not enter a range in the Bin Range box, the Histogram tool creates a set of evenly distributed bins between the data's minimum and maximum values. However, we recommend that you enter or select the bin range that you used on the worksheet. If you included column labels when you selected the input and bin range data, select the Labels check box. Under Output options, do one of the following: To paste the output table on the same sheet, click Output Range, and then enter the cell reference of the upper-left cell of the output table. The Histogram tool automatically determines the size of the output area and displays a message if the output table will replace existing data. To insert a new worksheet in the current workbook and paste the output table starting at cell A1 of the new worksheet, click New Worksheet Ply. You can type a name in the New Worksheet Ply box. To create a new workbook and paste the output table on a new worksheet in the new workbook, click New Workbook. Under Output options, do any or all of the following: To present data in the output table in descending order of frequency, select the Pareto (sorted histogram) check box. To generate an output table column for cumulative percentages and to include a cumulative percentage line in the histogram chart, select the Cumulative Percentage check box.

4 Change the format of a selected chart element In a chart, click the chart element that you want to change, or do the following to select the chart element from a list of chart elements: 1. Click anywhere in the chart. This displays the Chart Tools, adding the Design, Layout, and Format tabs. 2. On the Format tab, in the Current Selection group, click the arrow next to the Chart Elements box, and then select the chart element that you want to format. On the Format tab, in the Current Selection group, click Format Selection. In the Format <Chart Element> dialog box, click a category, and then select the formatting options that you want. dialog box. Depending on the selected chart element, different formatting options are available in this Change the shape style of a selected chart element In a chart, click the chart element that you want to change, or do the following to select the chart element from a list of chart elements: 1. Click anywhere in the chart. This displays the Chart Tools, adding the Design, Layout, and Format tabs. 2. On the Format tab, in the Current Selection group, click the arrow next to the Chart Elements box, and then select the chart element that you want to format. On the Format tab, in the Shape Styles group, do one of the following:

5 Change the format of text in a selected chart element To format the text in chart elements, you can use regular text formatting options, or you can apply a WordArt format. USE TEXT FORMATTING TO FORMAT TEXT IN CHART ELEMENTS Click the chart element that contains the text that you want to format. Right-click the text or select the text that you want to format, and then do one of the following: Click the formatting options that you want on the Mini toolbar. On the Home tab, in the Font group, click the formatting buttons that you want to use.