Better Histograms Using Excel. Michael R. Middleton School of Business and Management, University of San Francisco

Similar documents
San Francisco State University

Creating a Histogram Creating a Histogram

SAMLab Tip Sheet #4 Creating a Histogram

Open a new Excel workbook and look for the Standard Toolbar.

Chemistry 30 Tips for Creating Graphs using Microsoft Excel

Math 227 EXCEL / MEGASTAT Guide

Microsoft Excel 2007

SAMLab Handout #5 Creating Graphs

9 POINTS TO A GOOD LINE GRAPH

Microsoft Excel Chapter 1. Creating a Worksheet and an Embedded Chart

SAMLab Tip Sheet #5 Creating Graphs

Excel 2010 Charts - Intermediate Excel 2010 Series The University of Akron. Table of Contents COURSE OVERVIEW... 2

Chapter 3: Rate Laws Excel Tutorial on Fitting logarithmic data

Scientific Graphing in Excel 2013

Pre-Lab Excel Problem

SUM - This says to add together cells F28 through F35. Notice that it will show your result is

Separate Text Across Cells The Convert Text to Columns Wizard can help you to divide the text into columns separated with specific symbols.

Technology Assignment: Scatter Plots

Creating a Basic Chart in Excel 2007

Microsoft Excel 2010 Tutorial

Activity: page 1/10 Introduction to Excel. Getting Started

Physics 211 E&M and Modern Physics Spring Lab #1 (to be done at home) Plotting with Excel. Good laboratory practices

Lab 2: Your first web page

If you finish the work for the day go to QUIA and review any objective you feel you need help with.

Introduction to CS graphs and plots in Excel Jacek Wiślicki, Laurent Babout,

Chemistry Excel. Microsoft 2007

Using Charts in a Presentation 6

lab MS Excel 2010 active cell

0 Graphical Analysis Use of Excel

Excel Tutorial 4: Analyzing and Charting Financial Data

Starting Excel application

EXCEL SKILLS. Selecting Cells: Step 1: Click and drag to select the cells you want.

Rockefeller College MPA Excel Workshop: Clinton Impeachment Data Example

PivotTables & Charts for Health

Data Should Not be a Four Letter Word Microsoft Excel QUICK TOUR

Excel 2016 Intermediate for Windows

Budget Exercise for Intermediate Excel

Microsoft Excel 2007 Creating a XY Scatter Chart

1 Introduction to Using Excel Spreadsheets

Microsoft Excel 2016 / 2013 Basic & Intermediate

MICROSOFT EXCEL BIS 202. Lesson 1. Prepared By: Amna Alshurooqi Hajar Alshurooqi

Excel 2013 Intermediate

GCSE CCEA GCSE EXCEL 2010 USER GUIDE. Business and Communication Systems

Creating and Modifying Charts

Chapter 10 Working with Graphs and Charts

Three-Dimensional (Surface) Plots

Years after US Student to Teacher Ratio

Scientific Graphing in Excel 2007

Getting Started With Excel

Excel Core Certification

Math 2524: Activity 1 (Using Excel) Fall 2002

Creating Automated Dashboard Excel 2013 Contents

Excel 2013 Charts and Graphs

Charts in Excel 2003

ICT & MATHS. Excel 2003 in Mathematics Teaching

Content provided in partnership with Que, from the book Show Me Microsoft Office Access 2003 by Steve JohnsonÃÃ

The Chart Title can be formatted to change color, pattern, typeface, size and alignment using the Format Chart Title dialog box.

ENV Laboratory 2: Graphing

CSSCR Excel Intermediate 4/13/06 GH Page 1 of 23 INTERMEDIATE EXCEL

Chemistry 1A Graphing Tutorial CSUS Department of Chemistry

Microsoft Excel Chapter 1. Creating a Worksheet and a Chart

PRACTICAL EXERCISE 1.1.6b

Open Excel by following the directions listed below: Click on Start, select Programs, and the click on Microsoft Excel.

A cell is highlighted when a thick black border appears around it. Use TAB to move to the next cell to the LEFT. Use SHIFT-TAB to move to the RIGHT.

Discrete Probability Distributions

Scottish Improvement Skills

Excel Manual X Axis Labels Below Chart 2010

Department of Chemical Engineering ChE-101: Approaches to Chemical Engineering Problem Solving Excel Tutorial VIII

Select Cases. Select Cases GRAPHS. The Select Cases command excludes from further. selection criteria. Select Use filter variables

Data Management Project Using Software to Carry Out Data Analysis Tasks

Microsoft Excel Chapter 2. Formulas, Functions, and Formatting

Introduction to Excel Workshop

The first thing we ll need is some numbers. I m going to use the set of times and drug concentration levels in a patient s bloodstream given below.

Microsoft Excel. Charts

Microsoft Excel 2013: Part 3 More on Formatting Cells And Worksheet Basics. To apply number formatting:

Excel 2016 Charting. Course objectives: Student Training and Support. Staff Training (Bookings)

Spreadsheet Applications for Materials Science Getting Started Quickly Using Spreadsheets

This activity will show you how to use Excel to draw cumulative frequency graphs. Earnings ( x/hour) 0 < x < x

Spreadsheet Concepts: Creating Charts in Microsoft Excel

Contents. Group 2 Excel Handouts 2010

Introduction to Excel 2013 Part 2

To move cells, the pointer should be a north-south-eastwest facing arrow

Reference Services Division Presents. Excel Introductory Course

GRAPHING IN EXCEL EXCEL LAB #2

Data Service Center May, Compiled by: Katey Semmel Donna Frieze

4) Study the section of a worksheet in the image below. What is the cell address of the cell containing the word "Qtr3"?

Creating Charts in Office 2007 Table of Contents

Pivot Tables and Pivot Charts Activities

Candy is Dandy Project (Project #12)

How to use Excel Spreadsheets for Graphing

Intermediate Microsoft Excel (Demonstrated using Windows XP) Using Spreadsheets in the Classroom

Make sure to keep all graphs in same excel file as your measures.

Survey of Math: Excel Spreadsheet Guide (for Excel 2016) Page 1 of 9

Beginner s Guide to Microsoft Excel 2002

Introduction to the workbook and spreadsheet

Section 33: Advanced Charts

BioFuel Graphing instructions using Microsoft Excel 2003 (Microsoft Excel 2007 instructions start on page mei-7)

Appendix C. Vernier Tutorial

COMPUTER TECHNOLOGY SPREADSHEETS BASIC TERMINOLOGY. A workbook is the file Excel creates to store your data.

Excel 2003 Tutorial II

Transcription:

Better s Using Excel Michael R. Middleton School of Business and Management, University of San Francisco A histogram is usually shown in Excel as a Column chart type (vertical bars). The labels of a Column chart are aligned under each bar, and there is no Excel feature for changing the alignment. A better histogram has a horizontal axis with numerical labels aligned under the tick marks between the bars as shown below. Desired Chart Miles Per Gallon The method described here involves adding a new data series to the Column chart, changing the new series to an XY (Scatter) chart type, using the horizontal axis of the new series, and making the unneeded axes disappear. Since the intermediate steps of this method involve some rather strange looking charts, and a chartist may give up before getting the final result, I have included detailed steps. The data for this example are gas mileages for 7 cars []. The minimum value is 8 mpg, and the maximum is mpg. intervals bounded by multiples of,,, or are easier to interpret, and I follow the usual guideline of using between and intervals. Since the Column chart's bars are equal width, it is important to choose equalwidth intervals. And I like to include an empty interval at each end. Before using Excel's tool, bin values from to in steps of are entered in a column. These bin values specify the inclusive upper bound for equal-width intervals. The results (frequency distribution and Column chart) from the tool are shown below. You could obtain a similar result by creating an Excel Column chart after using (a) the array-entered FREQUENCY worksheet function, (b) multiple COUNTIF worksheet functions, or (c) a Pivot Table.

Initial Chart Using Tool 6 7 8 9 6 7 8 A B C D E F G H I J K L M MPG 7 9 6 8 7 More 8 9 9 The tool adds an interval "More" to the original bins. Instead, if you use the FREQUENCY worksheet function to obtain the frequency distribution, you can select a range with one more cell than the bin range before array-entering the function. Excel may display only every other label on the horizontal axis of the Column chart. To see more labels, you can use a smaller font, change the alignment, or make the chart larger. In this Column chart, the labels associated with each interval are,,...,, More. Some Less Desirable Solutions If the data values are discrete, as opposed to continuous, you can change the text labels in column E to specify discrete ranges for the horizontal axis, as shown below. For example, this approach is quite appropriate for integer-valued data. If the text labels have many characters, you can format the horizontal axis to use a smaller font. Chart Suitable for Integer-Valued Data 6 7 8 9 E F G H I J K L M N - 6- - 6- - 6- - 6- - 6- More - 6- - 6- - 6- - 6- - 6- Miles Per Gallon If the data values are continuous or many-valued, and if you want the horizontal axis to reflect this characteristic, you can change the axis title to indicate that the axis values are the inclusive upper bound for each interval, as shown below.

Embellished Chart From Tool 6 7 8 9 E F G H I J K L M Interval Maximum, in miles per gallon Charts may used for both analytic and presentation purposes. If you are doing your own analysis that will not be shared with others, you may not be concerned about properly labeling the axes. However, for formal presentations involving continuous-valued data, you may want to take the extra steps to create a histogram with horizontal axis labels aligned directly under the tick marks separating each bar. Step-by-Step Instructions The following steps start with the chart produced by Excel s data analysis tool. To see the initial histogram chart more clearly, I make the entire chart larger by dragging the chart fill handles, delete the legend, and use a smaller font on the horizontal and vertical axes. Basic Formatting of Chart Using Tool 6 7 8 9 E F G H I J K L M More More If you prefer not to have empty intervals at each end, select any chart object, and from Excel's main menu choose Chart Source Data Series to change the Values range and the Category (X) Axis Labels range. Alternatively, in recent versions of Excel, the cells of the data ranges are highlighted on the worksheet, so you can click and drag the fill handles to modify the two ranges.

The primary task is to replace the horizontal axis with one that has a number aligned directly under each tick mark separating the columns. The desired axis is shown below. Desired Horizontal Axis In the tool frequency distribution output labeled and Frequencies, select two rows by two columns of numbers somewhere in the middle of the output. (Any adjacent two-by-two selection in the and Frequencies columns is satisfactory; the exact values are not important.) Edit Copy. For this example I selected E:F. Single click just inside the outer border of the chart to select the chart. From Excel's main menu, choose Edit Paste Special. In the Paste Special dialog box, verify Add cells as New series and Values (Y) in Columns; check only the box Categories (X Labels) in First Column, as shown below. Dialog Box for Adding New Data Series to Chart Click OK, and the chart appears with the new data series, as shown below.

New Data Series on Chart More Select the new data series on the chart. (If it s difficult to select the data series using the mouse, first select any object on the chart, and then use the up and down arrow keys to cycle through the main chart objects until the new data series is selected. The left and right arrow keys cycle through all detailed chart objects.) The formula bar shows =SERIES(...,). With the new data series selected, from the Chart menu, choose Chart Type. In the Chart Type dialog box, select the Standard Types tab. Select XY (Scatter) as the Chart type, and check the Options box for Apply to selection. Click OK. The result is shown below. New Data Series as XY (Scatter) Type With the new data series selected, choose Format Selected Data Series. Select the Axis tab. Select Primary Axis, and click OK. The result is shown below.

New XY Data Series Using Primary Axis Select the column data series, and choose Format Selected Data Series. Select the Axis tab. Select Secondary Axis, and click OK. The result is shown below. Column Data Series Using Secondary Axis With any chart object selected, from the Chart menu, choose Chart Options and select the Axes tab. Check each of the four check boxes, and select Automatic for each X axis. Click OK. The result is shown below. 6

Chart Showing All Four Axes More Select the horizontal Secondary Category Axis at the top of the chart. If it s difficult to select the axis, first select any object on the chart (e.g., the plot area), and then use the left and right arrow keys to cycle through the detailed chart objects. The Name Box shows Secondary Category Axis. With the Secondary Category Axis selected, from the Format menu, choose Selected Axis and select the Patterns tab. Click None for Lines (or for Axis), None for Major tick mark type, None for Minor tick mark type, and None for Tick mark labels. Click OK. The result is shown below. Chart Not Showing Secondary Category Axis Select the vertical Secondary Value axis at the right side of the chart. From the Format menu, choose Selected Axis and select the Scale tab. Clear the check box for Category (X) axis crosses at, type (zero) in the edit box, and click OK. The result is shown below. 7

Column Secondary Value Axis Crossing at Zero With any chart object selected, from the Chart menu, choose Chart Options and select the Axes tab. At the bottom of the dialog box, for the Secondary axis, clear the check box for Value (Y) axis. The other three boxes should have check marks. Click OK. The result is shown below. Chart Not Showing Column Secondary Value Axis Select the horizontal Value (X) axis at the bottom of the chart. From the Format menu, choose Selected Axis and select the Scale tab. Click Minimum and type the value for the leftmost tick mark in the edit box. (If your original chart was developed from the tool, the Minimum value is equal to the first bin minus the interval width.) Click Maximum and type the value for the rightmost tick mark in the edit box. Click Major unit and type the value of the interval width in the edit box. Click Value (Y) axis Crosses at and type the Minimum value in the edit box. 8

Dialog Box for XY Horizontal Axis Scale Click OK. The result is shown below. Chart Showing Desired Horizontal Axis Click one of the XY data points on the chart to select the new XY data series. From the Format menu, choose Selected Data Series, and click the Patterns tab. Select None for Line and None for Marker. Click OK. The result is shown below. 9

Chart Not Showing XY Data Series To resize the tick mark labels, select the axis, from the Format menu choose Selected Axis, click the Font tab, and enter a font size. If you plan to resize the entire chart and you don t want the font size to change, uncheck the Auto scale check box. Click OK. The Usual Embellishments Click on one of the columns of the chart to select the data series. From the Format menu choose Selected Data Series. Optionally, on the Patterns tab, select Automatic for Border and None for Area. Most importantly, on the Options tab, change the Gap width to (zero). Click OK. The result is shown below. Chart Showing Zero Gap Width Optionally, click above the columns of the chart to select the Plot Area. From the Format menu choose Selected Plot Area. On the Patterns tab, select None for Border, select None for Area, and click OK. Select the horizontal axis title, and type a descriptive title. The result is shown below.

Desired Chart Miles Per Gallon If you prefer not to have empty intervals at each end, click one of the histogram vertical bars to select the data series of the Column chart, and change the reference from E:F to E:F. Also, select the horizontal axis, and format the axis scale to be Minimum, Maximum, and Major Unit. The result is shown below. Desired Chart Without Empty Intervals 6 7 8 9 E F G H I J K L M More Miles Per Gallon The charts shown here are embedded chart objects on Excel worksheets, as opposed to a chart on a separate chart sheet. I prefer the formatting options that are only available for an embedded chart on a worksheet. If you want to include such a chart in a Word document, you may want to explore various methods for copying the Excel chart. Select the entire chart by clicking just inside its outer border. In addition to using a simple Edit Copy command, try holding down the Shift key while you select the Edit menu. The options available from Shift Edit Copy Picture may yield a higher quality chart when you paste into Word.

Conclusion The chart produced by Excel s data analysis tool can be easily modified for discrete-valued data and personal analysis purposes. The extensive modifications described here are most appropriate for developing a histogram of continuous-valued data for presentation purposes. Possible extensions involve superimposing a normal curve on the histogram and using VBA to automate creating the histogram. References [] Middleton, M. R. Data Analysis Using Microsoft Excel: Updated for Office XP, Duxbury (). Web Sites of Excel Chart Gurus www.tushar-mehta.com peltiertech.com/index.html www.j-walk.com/ss www.bmsltd.ie/excel www.appspro.com/utilities/chartlabeler.htm Tushar Mehta's Tutorials and Add-Ins Jon Peltier's Excel Chart Pages John Walkenbach's Spreadsheet Page Stephen Bullen's Excel Page Rob Bovey's XY Chart Labeler Excel Chart Newsgroup Account: msnews.microsoft.com Newsgroup: microsoft.public.excel.charting Updates for this paper Primary web site: http://www.treeplan.com Secondary sites: http://www.mikemiddleton.com http://www.usfca.edu/~middleton Reference for VBA Add-In John Walkenbach, Excel Power Programming with VBA, M&T Books,.