Skip to content

Guard Rails

You'll make a sheet that refuses bad entries, with dropdowns, date checks, checkboxes and color rules, so it stays clean when someone else types in it.

About

The difference between a sheet that lasts a month and one that lasts a year is whether it lets you type the wrong thing. Data validation turns a free-text column into a dropdown, rejects a date that isn't a date and a number out of range, and conditional formatting makes the problems that do get through glow. This is an evening on a sheet you already keep, and it's the groundwork for every badge in this track where someone else does the typing. What counts is rules you set up yourself and tested by trying to break them. Color applied by hand, cell by cell, doesn't count, because it's wrong the moment the data changes.

At a glance

Per requirement
15 XP
Completion bonus
75 XP
Requirements
6
Takes
One evening
Skill level
Beginner (done it a few times)
Cost
Free
Supplies
Nothing special
Where
At home
Other people
With other people

Requirements

  1. 1
    Turn a free-text category column into a dropdown fed from a list on its own tab. Put the allowed values on a tab called Lists and point the validation rule at that range, with input rejected rather than warned. The list lives on its own tab so you can add a category without editing the rule. Take a screenshot with the dropdown open. Photo
  2. 2
    Add validation to a date column and a number column, then try to break both. The date rule is a date between a sensible start and today, and the number rule is a range that fits the column, like 0 to 10000. Set both to reject the entry rather than warn, because a warning triangle gets ignored by the second week. Then type 'tomorrow' into the date column and -5 into the number column and get refused. Film the refusals. Video
  3. 3
    Add a checkbox column and a formula that counts the ticked ones. Insert a checkbox in Sheets or in recent Excel, and =COUNTIF(F:F,TRUE) counts them. If your spreadsheet doesn't do cell checkboxes, a validated Yes or No dropdown and =COUNTIF(F:F,"Yes") does the same job. Take a screenshot of the column and the count. Photo
  4. 4
    Write three conditional formatting rules driven by formulas, not by hand. Good ones: a row goes red when its date is before TODAY() and the done box isn't ticked, a cell goes yellow when =COUNTIF($A:$A,$A2)>1 says it's a duplicate, and the top 10 percent of a number column goes green. Use the custom formula option, apply each rule to the whole range, and test each by typing something that should trigger it. Take a screenshot with the rules panel open. Photo
  5. 5
    Freeze the header, set number and date formats, and add a README tab. Freeze row one so it stays visible when you scroll. Give money two decimals and dates one format (yyyy-mm-dd sorts correctly even as text, which is why people use it). The README tab says what each column means and what never to touch, in under 100 words. Take a screenshot of the data tab scrolled halfway down with the header still showing, and paste the README text into your post. Photo
  6. 6
    Hand the sheet to someone for five minutes, ask them to enter three rows, and fix one thing they stumbled on. Watch where they hesitate, because that's where the next rule goes. Take a screenshot of their three rows, or a photo of them at it, and add one sentence on what you changed afterwards. Photo