Skip to main content
Chemistry LibreTexts

Spreadsheet tutorials

  • Page ID
    396117
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \) \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)\(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\) \(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\)\(\newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    What do I hand in for this lab?

    To receive credit for this lab, please hand in the handout at the end of lab and the spreadsheet homework next week. The homework should include printouts of one data table with descriptive statistics (part 2), one data table where at least one of the columns is calculated with a formula you entered yourself (part 3), and one scatterplot where you fitted data to a line (part 4). As we are running this lab before you collect your own data, the instructor will provide data from the previous semesters.

    Part 1: Lab safety

    We will discuss safety features in the lab and your responsibility in terms of lab safety after watching the first video in the ACS lab safety video series. Through the semester, as we encounter new substances and techniques with specific risks, we will continue to learn about safety in the lab.

    Part 2: Data tables and descriptive statistics

     

    Here are the slides used in the video.

    Data tables

    Here is an example of a data table for measuring the mass of some samples:

    Object m1 (g) m2 (g) m3 (g) average mass (g)
    Apple 154.627      
    Banana        
    Carrot        

    You could make the data table headers before you start the lab, and then add the data as you measure it.

    Descriptive statistics

    When you measure something multiple times, there will be some variation in your measurements. You can summarize the measurements by giving the average, the standard deviation, and N, the number of measurements. These values give you an expectation of what to expect of additional measurements. In our example above, we are just calculating the average, i.e. the sum of the measurements divided by N, the number of measurements. You could do this using a pocket calculator but that becomes tedious (and error-prone) when having to calculate a lot of averages. Instead, with an electronic spreadsheet, you can enter a formula into the column for the average, and the spreadsheet will do the math. As an added bonus, it is very easy to copy and paste the formula into the remainder of the column. The video tutorial will show you how to enter a formula, and how to copy and paste it.

    Apart from average and standard deviation, you might also be asked to calculate median, standard error and relative error. Here is a brief summary of why these are useful.

    Average: Also called "mean". If your experiments does not have any systematic errors, the average will be closer to the true value than individual measurements because random errors cancel out when averaging.

    Median: You expect 50% of your measurements to be higher than the median, and 50% to be lower.

    Standard deviation: Describes the spread of the measurements around the average. If the deviation is due to small random errors, about 2/3 of the measurements will be within one standard deviation from the average.

    Standard error: an estimate how far from the true value your average is. The idea is that the average is a better estimate than any single measurement because you are averaging out random errors. To get the standard error, you divide the standard deviation by the square root of the number of measurements. The more measurements, the smaller the standard error. For example, comparing the average of 10 measurements to 40 measurements (i.e. four times as many), the standard error gets cut into half. A quick way of giving average and standard error is to write something like "m = 45.33 ± 0.04 g".

    Relative error: This is giving the standard deviation or standard error as a percentage of the average. You could say that the relative volume error of a pipette is 0.5%. For a volume of 100 mL, you would expect to be off by about 0.5 mL. Or you could say the average of your measurements is expected to be off by 2%, which would be the standard error divided by the average.

     

    Part 3: Repetitive calculations

    Sometimes, you have to do the same set of calculations for every measurement in your experiment. It makes sense to use a spreadsheet for these repetitive calculations because it is convenient and you can avoid mistakes. Even if the arithmetic is taken care of for you, you still are responsible for correct data entry, formulas, units and significant figures.

     

    Part 4: Plotting data and fitting a line to it

    This is a brief tutorial showing you how to plot your data (for a lab report or presentation). It also shows you how to fit a line to your data in the scatter plot. Data fitting within a spread sheet is more reproducible than with pencil, paper and ruler (and faster).

    Here is the finished spread sheet. When you click on the link, it asks you whether you want to make a copy of it, and you should say yes if you want to edit a copy of it.


    Spreadsheet tutorials is shared under a CC BY-NC-SA 4.0 license and was authored, remixed, and/or curated by LibreTexts.

    • Was this article helpful?