Data Analysis Spreadsheets and Graphs Procedure
Data Analysis Spreadsheets and Graphs Procedure
Overview
A huge amount of time in scientific fields is devoted to data analysis- chemical and
statistical calculations, organizing and displaying data (tables and graphs), and examining
data to find and explain relationships or patterns. Spreadsheets are a tool to make this
process easier, faster, and more productive.
This lab assumes you are using Microsoft Excel. It also assumes you have a basic
familiarity with spreadsheets- enough to open a file, save a file, and some terminology (cell,
column, row, etc). If you do not know these basics, you should get an early start. Excel is
used because it is ubiquitous, has a massive collection of on-line resources, and is available
on all campus computers. You may use whatever spreadsheet program you like but the final
work MUST be saved in the Excel format (.xlsx or .xls). We do not accept other formats
because they do not work well with Canvas. We do not accept links to exterior sources (like
Google Sheets) for security reasons.
Below are step-by-step directions to guide you through common spreadsheet tasks
and walk you through a complete and detailed example. Finish the example in its entirely
and verify that your results match the example. Save your work early and often.
NOTE: Excel is regularly changed and updated. There are significant differences
between Mac and PC versions as well as student and professional versions. Due to this,
some things (buttons, menus, etc) may be different for your version. It is up to you to know
how to do these things with your version. We can help, but only if you ask early.
Now that you know how to select cells to type in information, enter the data from
Table 1 into the spreadsheet, including the column labels (Trial, Mass beaker (g), etc).
Missing labels make your table difficult to interpret. You do not need to format the table yet.
Just get the data and labels into Excel.
The two calculations you just completed provide two different methods for selecting
data to use for calculations. You can type the cells directly (Part A) or you can select each
cell individually (Part B). For one-step calculations (addition, subtraction, etc) typing is
usually faster. For multi-step calculations or calculations with data in different areas of the
spreadsheet, mouse clicking can be more efficient.
This section demonstrated two basic math operations, subtraction (-) and division
(/). You can also multiply cells (*) and add cells (+) by using the appropriate operator.
3. Click the mouse or pad, hold down the button, and drag down to cell D6. Now
release the button. (You could also double-click the mouse after it turns to a +
sign. This is a handy shortcut, but has some limitations.)
a) + b)
Figure 5: a) Screenshot of the + sign that will allow you to copy
formulas across rows and columns. b) Screenshot of the filled cells.
Notice that the cells from D3 to D6 now contain the same formula but using their
respective rows (Figure 5b). For example, cell D3 contains the calculation C3-B3, cell D4
contains the calculation C4-B4, etc. Instead of typing each calculation, the drag feature
saves time and reduces typing mistakes. If you do the first calculation correctly all of the
copied ones are correct too.
Note: always click on a few cells after you copy a formula and double
check that the calculation is using the correct values. It is your
responsibility to verify the accuracy of calculations. If you make a
mistake in the initial calculation, that mistake will be distributed through all
columns and subsequent calculations. The calculation in column H depends
on the values calculated in Columns D and G. If D or G is incorrect it means
H is also wrong. Good practice is to do a few calculations by hand to double
check. This is another power of spreadsheets- if you do make a mistake in
one place, fixing will automatically fix any other cells that rely on that Figure 6: correct
value. In other words, you do not have to update every cell manually if density values
you set up your calculations correctly!
The labels in cells G7, G8, and G9 tell the reader what information is contained in the
cell next to it. The value in cell H9 is the "true" or "known" density value. This value is
important to record in the table since it is the value you are comparing your measurement
to. (Figure 7)
In Step 3 you selected multiple cells by clicking on one and then dragging the mouse
down the column. This is an efficient method of selecting data. It will work any time
you need to select data that is in consecutive cells (horizontally or vertically).
Calculating % error
1. Click on cell H8 and type the following: =((H7-H9)/H9)*100
2. Press Enter. You should get the value -0.2046 (possibly with more decimals).
(Figure 8)
Figure 8: Calculation
of % error.
6. In the Decimal Places box on the right, set it to 3. (You can use this option to set
any number of decimal places you would like. In this example, the balance gives
three decimal places.)
7. Click OK. All of your numbers in column D should now show three decimal places,
including the value in D6, which should show the trailing zero (31.240).
Column F should have two decimal points (common for a burette) but if the second
digit is zero, Excel does not automatically show it. You must format the cell properly to
show the correct number of decimals.
Note: Many versions of Excel have a short-cut button on the default toolbar that will
adjust the number of decimal places without the need to use the menu. The menu option is
presented here because there are many other powerful tools in this menu.
Figure 12: Image showing what a good table should look like, with gridlines and labels. It
may also be helpful to use formatting to differentiate column labels from data and
calculated data (mean, %diff).
1. Click cell A1, hold down the mouse button, and drag to cell H9. This will select all
of the data in the spreadsheet.
2. Right click anywhere in the area you selected.
3. In the menu that pops up, click on Format Cells.
4. In the tabs at the top of the Format Cells window, click on Border.
5. In the Border box at the lower left, select which lines you would like to show. For
small tables, you want to turn on all of the vertical and horizontal lines.
6. Click OK.
7. Press Ctrl-P and go to the Print Preview option to see the gridlines.
Notice that after adding a row for the table number and caption all of the calculations
automatically update and are still correct even though the row numbers for the data
changed. This is another advantage to spreadsheets- you can add, remove, and change
formatting and data without affecting the calculations.
Note: Excel will always assume the left-most column of data you select is the x-axis
(horizontal, independent variable) and the right-most column you select is the y-axis
(vertical, dependent variable). Flipping your axes will give graphs that are very confusing!
3. Select the data you want to graph. Click on cell A1, hold down the mouse
button, and drag to cell B7.
4. In the menu at the top of the screen, click on Insert.
5. In the Charts area, select Scatter. (Note, if you do not see a charts area, you
may need to search for instructions on how to add a scatter plot for your
particular version of Microsoft Excel.)
6. Choose the Scatter with Only Markers plot (upper left option in the Scatter
menu). A plot will appear on top of the worksheet. All the data you selected is
treated as a set of coordinates and those points are plotted. Your plot should look
like the one in Figure 13.
7. A new tab called Chart Tools has been added to the menu bar at the top.In the
Chart Tools menu, choose Layout.
8. Give the plot a title:
a. Click on Chart Title. (In some versions of Excel you can click on the text
box called “Chart Title” at the top of the plot and edit the text.)
b. Choose Centered Overlay Tile. A Title is now added to the plot.
c. Change the title to Graph 1: Heat produced vs Number of Candles
9. Label the independent variable (x-axis):
a. Click on Axis Titles.
b. Now choose Primary Horizontal Axis Title.
c. Choose Title Below Axis.
d. Replace Axis Title with Number of Candles.
e. Note: if the values have units you should include the units with the label.
10. Label the dependent variable axis (y-axis).
a. Click on Axis Titles.
b. Now choose Primary Vertical Axis Title.
c. Choose Rotated Tile.
d. Replace Axis Title with Heat produced (J).
e. Note: if the values have units you should include the units with the label,
usually units are placed in (parentheses).
After completing step 10, your plot should look like Figure 14.
The plot you created visually shows the relationship between the number of candles and the
amount of heat produced. The points appear to form a line (i.e. they have a linear
relationship, meaning that as you increase the number of candles, the amount of heat
increases proportionally.)
You are now ready to complete the report. Download the report template
from Canvas. It contains all of the data and questions for the report.