Back

Session 12: Functions & Data Quality in Sheets

divider

Session 12

Functions & Data Quality in Sheets

Last Session's Question

Which of your weights' 3 trials would you most want averaged automatically?

Today, Sheets does that math for you.

Structure First

Quick recap from what you already know: clearly labeled headers, units included right in each header, one row per weight.

Structure First

Transfer your Session 11 data into Sheets this way before anything else today.

From Manual to Automatic

You could add up three trials and divide by 3 yourself.

Or you could write one formula that does it — and keeps doing it correctly if a number changes.

Meet AVERAGE

=AVERAGE(range)

Meet AVERAGE

Select the cell where you want the result, type the formula, select the range of trial cells, press enter.

Worked Example

Trials of 12, 14, and 13 in cells B2:D2:

Worked Example

=AVERAGE(B2:D2)

Worked Example

=AVERAGE(B2:D2) → 13

Meet MIN and MAX

  • =MIN(range) — your smallest trial
  • =MAX(range) — your largest trial

Together, they show the spread at a glance.

Why a Formula, Not a Typed Number

If you catch a typo in one of your trial cells and fix it, a formula recalculates instantly.

A number you typed in by hand just sits there, quietly wrong.

Two Things to Remember

A formula is smarter than a number.

It reflects your actual data, even after your data changes.

Two Things to Remember

Reference the cells. Don't retype the values.

=AVERAGE(B2:D2) stays correct. Typing "13" does not, the moment B2:D2 changes.

One More Value: Spread

Max − Min — how much your three trials disagreed with each other, as a single number you can compare across rows.

Conditional Formatting

A rule that changes how a cell looks, automatically, based on its value.

  1. Select your Spread column
  2. Format → Conditional formatting
  3. Format cells if… Greater than
  4. Enter your threshold value

Choosing a Threshold

A judgment call — the same kind you made in Session 9 with tolerance. Too tight and normal variation gets flagged constantly; too loose and real problems slip through.

And a flag is a question, not a verdict — a prompt to look closer. You will meet that same idea again next session with R².

Next Time

Session 13: Charting & Trendlines

Now that your data is clean and checked, let's turn it into a plot.

'F' → Fullscreen

divider

Build

Step 1: Structure Your Table

Transfer your Session 11 data into Sheets: clearly labeled headers with units included (e.g., Weight (g), Trial 1 (mm)), one row per weight.

[GIF PLACEHOLDER — Building the Header Row]

Step 2: Add an Average Column

For each weight's row, use =AVERAGE(range) to compute the average of its 3 trials. Reference the actual trial cells — don't type in a number you calculated by hand.

[GIF PLACEHOLDER — Typing the AVERAGE Formula]

Step 3: Add Min and Max Columns

For each row, add =MIN(range) and =MAX(range) for the same 3 trial cells.

WeightTrial 1Trial 2Trial 3AverageMinMax

Step 4: Sanity Check

For every row, confirm your Average falls between your Min and Max. If it doesn't, one of your three formulas is referencing the wrong cells.


Step 5: Add a Spread Column

Add one more column calculating Max − Min for each row. If Max is in F2 and Min is in E2, that is =F2-E2.


Step 6: Choose a Threshold and Flag It

Decide, with your instructor, what counts as "too much" spread for this experiment. Write down the number and one sentence for why. Then select your Spread column and set a conditional formatting rule that highlights anything greater than it.

[GIF PLACEHOLDER — Setting Up a Conditional Formatting Rule]

Step 7: Investigate Any Flagged Row

For any row your rule highlights, write one sentence: measurement noise, or something real about that weight? If nothing gets flagged, write one sentence on whether that surprises you.


Stretch (Optional): Flag the Actual Trial

Instead of flagging the whole row, try a custom formula conditional formatting rule that highlights just the one trial cell furthest from that row's average — ask your instructor if you want to attempt this.

divider

Checkpoint

Before you move on, confirm all of the following:

  • Average, Min, and Max are actual formulas — not typed-in numbers
  • Average falls between Min and Max for every single row
  • Headers still include units, from your Session 11 structure
  • Your Spread column uses a formula, not typed-in numbers
  • Your conditional formatting rule is applied and visibly working
  • Any flagged row has a written note explaining your read on it
divider

Reflection

Answer these on your own. Reflections are individual, even when the rest of the session was team work.

  1. Why might a formula-based average be more trustworthy than one you calculated by hand and typed in?
  2. For any row that got flagged, do you think it is measurement noise or something real about that weight? How would you actually find out?
  3. Next session turns this data into a plot. Do you expect a flagged row to stand out as an outlier on the scatter plot too?
divider

Submit

Submit your Sheets table with working Average, Min, Max, and Spread formulas, your conditional formatting rule, and your reflection.

Activity Complete