Day 1 – What ‘good’ Data Is
Learning goals
By the end of this day, you should be able to:
- explain what data represents and what it does not
- distinguish data lifecycles (stages) e.g. data entry, data storage, data analysis
- recognize common sources of mistakes
- learn core principles of data handling and management
- use Excel to enter and structure biological data in a controlled way
- understand that every dataset is a simplified representation of reality
No prior experience with Excel or programming is required.
Motivation
Biology deals with complex, variable systems.
Data are not reality.
Data are a structured representation of selected aspects of reality.
Before we analyze anything, we must understand:
- what was observed,
- how it was recorded,
- and what information was lost in the process.
Poorly structured data cannot be rescued by sophisticated analysis later.
Agenda
- Course overview and expectations
- The data lifecycle (high level)
- What Excel is good at — and where it fails
- Real-world examples of silent data corruption
- Reflection and outlook to Day 2
13:30–14:15 | Block 1 – Introduction and course framing
- Course is structured (5 days, Excel → R)
- How we will work: alone and in pairs, hands-on, reflection
- Where materials, data, and exercises live (course website / GitHub)
- Short introduction: who I am
- Belize protected-area case study
14:15–14:30 | Break ☕️
14:30–15:15 | Block 2 – What data is (and what it is not)
- Overview of the data lifecycle and where Excel fits in
- FAIR: Findability, Acessibility, Interoperability, and Reusability
- Examples of spreadsheet failures
- Data vs reality: observations, variables, metadata
- Data as a simplified representation of complex systems
- Good vs bad tables: diagnosing common problems
- Why structure matters more than software
15:15–15:30 | Break ☕️
15:30–16:15 | Block 3 – Hands-on: structured data entry in Excel
- Rules for analysis-ready tables
- Enter biodiversity monitoring data using a provided template
- Work in pairs (driver / navigator)
- Identify and discuss emerging inconsistencies
16:15–16:30 | Reflection, discussion, and outlook 🧠
- What was harder than expected?
- Which problems cannot be fixed later?
- What questions remain open?
- Preview of Day 2: summarizing and visualizing data
Context: a real-world case study
Throughout this course, we work with a simplified but real world scenario:
You are working with biodiversity monitoring, conservation planing and foresty data from a national protected area in Belize.
Data are collected by yourself, rangers, partner NGOs, and external consultants over long periods of time.
What is data?
Deliberately tool-agnostic and discipline-neutral.
Short version
Data are recorded observations about the world.
Longer version
Data are representations of observations, measurements, or events, encoded in a form that allows storage, comparison, and interpretation.
Data are not facts themselves, they are encodings of facts.
This distinction matters: tools only operate on the encoding, never on reality.
Core comcepts definition
In this course, we use the following working definitions:
Observation: something you perceive or record in the world
e.g. one species observation at one location and timeMeasurement: an observation made using a rule or instrument
e.g. “Tree height = 12.4 m measured with a clinometer.”Variable: a property that can vary between observations
e.g. species name, height, location, date, time, countData: the recorded representation of that measurement
e.g. a value in a table:height = 12.4Dataset: a collection of observations recorded in a structured form e.g. a spreadsheet or CSV file with many rows and columns
Metadata: information about how, when, where, and why data were collected e.g. units, methods, location, observer, context
Once written down, data are detached from the original context unless you preserve it.
What counts as data in biology?
In biology, data can take many forms:
- numbers (e.g. body mass, abundance, concentration)
- categories (e.g. species name, habitat type)
- text (e.g. field notes, descriptions)
- images (e.g. microscopy, camera traps)
- sequences (e.g. DNA, RNA, proteins)
- time series (e.g. temperature, population size)
- spatial coordinates (e.g. GPS locations)
Key point
Data are always abstractions of reality, never reality itself.
This is why interpretation without context is dangerous and wrong.
Why context matters: metadata
Data without context are dangerous.
That context is called metadata, for example:
- units
- methods
- time
- location
- who collected it
- how it was collected
- what assumptions were made
Example: There is data, and there is data
| Recorded value | Meaning |
|---|---|
| 12.4 | meaningless |
| 12.4 m | better |
| 12.4 m; tree height; clinometer; dry season; treeID766; transect A; observer O. Hagen | usable |
Rule of thumb:
- Data + metadata = information
- Data without metadata = confusion
This is exactly why FAIR stresses rich metadata and standardization: without it, your “data” are not really reusable.
Where metadata should live (best practice)
Excel sheets are bad at metadata. Do not rely on formatting or comments.
Use three layers instead:
- File name
Encodes place, year, content, and status.
- README file (outside Excel)
README.mdorREADME.txt
Describe: - who collected the data - when and where - units - methods - known issues
- Dedicated metadata sheet (inside Excel)
- one sheet called
metadata - plain text only
- no merged cells
Risk of Excel-only metadata
- formatting is lost on export
- meaning disappears outside Excel
The FAIR principles (what they really mean)
The FAIR principles describe how scientific data should be handled so that they remain useful beyond the moment they are collected.
FAIR does not mean “open to everyone” and it does not guarantee data quality.
FAIR means that data are prepared in a way that allows others (and your future self) to find, understand, and reuse them.
We present FAIR principles expanded from
Wilkinson et al. (2016), The FAIR Guiding Principles for scientific data management and stewardship
by the wider research data management community.
FAIR stands for:
🔍 Findable
What it means
Data can be discovered by humans and machines.
In practice, this requires - a clear name or identifier - descriptive metadata - a stable location (repository, database, archive)
Why it matters If data cannot be found, they effectively do not exist for science.
A file on your laptop called
final_data_v3_REAL.xlsxis not findable.
🔓 Accessible
What it means
Once found, it is clear how the data can be accessed, even if access is restricted.
In practice, this requires - a clear access procedure - documented permissions or licenses - long-term availability
Why it matters Accessibility is about clarity, not openness.
Even restricted data must explain how access works.
“Email the author” is not a sustainable access strategy.
🔗 Interoperable
What it means
Data can be combined with other data and used by different tools.
In practice, this requires - standard formats (e.g. CSV, not proprietary-only files) - consistent units - controlled vocabularies - clear data types
Why it matters If every dataset uses its own conventions, integration becomes untractable.
12,12.0,12 m, andtwelveare not interoperable without context.
♻️ Reusable
What it means
Data can be understood and used correctly in a new context.
In practice, this requires - rich metadata - documented methods - clear assumptions - provenance (who did what, when, and how)
Why it matters Reuse without context leads to misinterpretation and error.
Data without metadata are numbers without meaning.
Data are not neutral
This is important and often missed.
Data depend on:
- what you chose to measure
- what you ignored
- instrument precision
- human judgement
- classification decisions
In ecology, for example:
- species presence depends on detectability
- absence is rarely true absence
- counts depend on effort
So data always embed theory, assumptions, and bias.
Why this matters for tools like Excel and R
Tools don’t understand meaning. They only manipulate symbols.
- Excel does not know what a species is.
- R does not know what a tree is.
- Both only see strings, numbers, and dates.
That’s why:
- Excel can silently change your data (auto-conversion, formatting surprises)
- R forces you to be explicit (types, scripts, reproducible steps)
Bottom line: the responsibility for meaning stays with the scientist.
Data as a model
Every dataset is already a model:
- it includes some aspects of reality
- it excludes others
- it simplifies complex systems
This idea will return later in statistics and modelling courses.
For now, remember:
Data are never neutral.
Choices are made at the moment of data collection.
The Data lifecycle
Data generation
What this stage is about
- Data originate in the real world: measurements, observations, experiments, surveys, sensors, and field notes.
Biology examples
- Species counts, trait measurements, GPS tracks, lab assays, environmental monitoring.
Good tools
- Field sheets, instruments, sensors, lab notebooks, electronic lab notebooks (ELNs).
Data entry & initial structuring
What this stage is about
- Transcribing observations into digital form.
- Defining rows, columns, identifiers, and units.
- Performing the very first human sanity checks.
Good tools
- Excel, Google Sheets, LibreOffice Calc, simple data entry forms.
Excel: ✅ Excellent when used carefully (fast manual entry, visual feedback, validation rules).
R: ⚠️ Not designed for manual entry; it expects data files or databases.
Key rule: one row = one observation, one column = one variable, and no analysis logic in the raw file.
Data cleaning & quality control
What this stage is about
- Fixing typos, harmonising codes, handling missing values.
- Checking ranges, units, and consistency.
Good tools
- Excel (for transparent, small datasets), R, Python (pandas).
Excel: ⚠️ Limited and risky because changes are hard to audit and history is lost.
R: ✅ Very strong — every cleaning step is scripted and reproducible.
Key transition: if you cannot explain exactly what you changed and why, leave Excel.
Data storage & archiving
What this stage is about
- Long-term storage, collaboration, and repository submission.
Good tools
- Plain-text tables (CSV/TSV), databases, Zenodo, Dryad, institutional servers.
Excel: ❌ Poor choice — hides metadata, embeds formulas, fragile across versions, hard to diff.
R: ⚠️ Produces clean portable data files but is not itself the archive.
Data analysis
What this stage is about
- Statistical summaries, models, hypothesis testing, simulations.
Good tools
- R, Python, specialized statistical software.
Excel: ❌ Danger zone — formulas are opaque, errors hard to detect, reproducibility is weak.
R: ✅ Core strength — transparent, testable, and scriptable analysis.
Visualization & communication
What this stage is about
- Figures, tables, reports, presentations.
Good tools
- R (ggplot2), Python (matplotlib, seaborn), Quarto, Illustrator for polishing.
Excel: ⚠️ Fine for quick exploratory plots and sanity checks, but not for final reproducible figures.
R: ✅ Excellent control and consistency.
Reproducibility & reuse
What this stage is about
- Others reusing your data, or you revisiting it months later.
- Reviewers asking “how did you get this result?”
Good tools
- Scripts, version control (Git), Quarto/notebooks.
Excel: ❌ Actively hostile — undocumented and non-repeatable.
R: ✅ Designed for exact reruns with explicit provenance.
Excel is widely used because it is:
- easy to access
- human-readable
- flexible
Excel is well suited for: - data entry - inspection - small-scale summaries
Excel is not well suited for: - enforcing consistency - documenting decisions - scaling analyses
Understanding these limits is part of digital competence.
Spreadsheet Failures lead to Financial, Policy, and Health Costs
Before we look at biological and environmental data, it is worth understanding why spreadsheets deserve respect. The cases below are not about beginners. They involve intelligence agencies, governments, banks, and elite academics.
These failures occurred because spreadsheets silently changed data, hid assumptions, or scaled beyond what they were designed for.
Why Excel behaves the way it does
Excel is designed for convenience, not scientific safety.
It assumes: - dates are more common than gene names - numbers should be auto-formatted - users want speed, not explicitness
The following examples are not edge cases. They are the logical consequence of these design choices.
🕵️📞🎯❌ MI5 wiretapped the wrong people
(UK intelligence error) Source: The Guardian
A spreadsheet formatting issue altered the last three digits of phone numbers to 000, leading to 134 incorrect surveillance targets. The error originated from automatic formatting in a spreadsheet.
Lesson
- Automatic data conversion can silently change identifiers.
Why it matters
- Intelligence and security systems rely on exact identifiers.
- A single formatting error can redirect surveillance to innocent people.
🦠📉🚫📋 Nearly 16,000 COVID-19 cases lost in England
(Public health reporting failure) Source: The Guardian
During the COVID-19 pandemic, 15,841 positive cases were omitted from official statistics because a CSV file was opened in Excel and truncated at the row limit. (i.e. 65,536 for the used version). Contact tracing was delayed and incomplete as a result. Can we even calculate the true impact of these errors?
In modern Microsoft Excel (including Office 365 / Microsoft 365) the maximum number of rows per worksheet is 1,048,576. You cannot add more rows in a single sheet beyond that limit; if you try to import data that exceeds this, rows beyond the limit may be truncated. The maximum number of columns is 16,384 (column XFD Support Microsoft).
Lesson
- Excel has hard limits (row counts) that are invisible until exceeded.
Why it matters
- Incomplete data leads to flawed epidemiological response.
- Delayed contact tracing can plausibly translate into preventable infections and deaths.
📊➗⚠️🏛️ Reinhart & Rogoff economic growth error
(Influential academic policy failure) Source: The Guardian, Retraction Watch
A highly cited economic study claimed that countries with debt above 90% of GDP experienced sharply reduced growth. It was later discovered that an Excel formula excluded large parts of the data, significantly altering the result.
Lesson
- Hidden formula errors can persist even in peer-reviewed research.
Why it matters
- This work influenced austerity policies worldwide.
- Spreadsheet mistakes can shape economic policy affecting millions.
💰📑❌🏦 Fannie Mae misreported over $1 billion
(Financial reporting failure) Source: The Guardian
In 2003, the U.S. mortgage giant reported quarterly results containing over $1 billion in accounting errors, traced back to an incorrect Excel formula.
Lesson
- Formula logic in spreadsheets is rarely audited or tested.
Why it matters
- Financial misreporting undermines investor trust and regulatory oversight.
- Small spreadsheet mistakes can become material financial risks.
🐋📉💣🏦 JPMorgan “London Whale” $6 billion loss
(Risk modelling failure) Source: The Guardian
A trading loss of approximately $6 billion was linked to risk models managed through manually edited Excel spreadsheets. Cut-and-paste workflows and poor version control amplified risk.
Lesson
- Manual workflows lack audit trails and reproducibility.
Why it matters
- Risk systems must be automated, tested, and transparent. - Spreadsheet-based models do not scale safely.
Spreadsheet Failures in Biology and Environmental Sciences
Spreadsheet misuse has caused systematic scientific errors, not just technical inconveniences. These are particularly relevant for biologists, where identifiers, codes, and metadata matter. The case study below is a more in depth examples in genomics. However, all the issues above are also applicable to many Environmental and Ecological data.
🧬📅❌📊 Gene name auto-conversion errors in genomics
Spreadsheet software automatically converts certain character strings into dates or numbers. In genomics, this silently corrupts gene names such as SEPT2, MARCH1, or DEC1, which are converted into dates (e.g. 2-Sep, 1-Mar, 1-Dec) without warning.
Large-scale scans of published supplementary Excel files show that around 30% of papers containing gene lists are affected.
Prevalence of Excel-induced gene name errors over time
“This [the error] is due to gene names being converted not just to dates and floating-point numbers, but also to internal date format (five-digit numbers). (Abeysooriya et al. 2021)”
Concept that would have prevented this
- Explicit data typing (text ≠ date ≠ number)
- Avoiding spreadsheet auto-formatting for identifier columns
- Using plain-text formats (CSV/TSV) with scripted imports
What all these failures have in common
Across intelligence, finance, economics, public health, and scientific research the same patterns recur:
- Silent data transformation
- Hidden assumptions and formulas
- Hard limits that are easy to exceed
- No version control or audit trail
- Tools used beyond their design scope
- Organic design / Changing specs
- Lack of testing
- Lack of relevant knowledge and skills
Spreadsheets did exactly what they were told.
Humans misunderstood what they were doing.
This is why learning to use these tools properly matters. And this is why this course starts with Excel discipline, but does not end there.
Concept that would have prevented this
- Separation of raw data and derived results
- Version control instead of manual file duplication
- Explicit metadata and data dictionaries
- Well designed data entry
- Skilled and knowledgeable users
- Treating spreadsheets as data entry interfaces and quick overview tools, not databases
- Validation rules and controlled vocabularies
- Early transition to scripted, reproducible workflows
Core data concepts reinforced by these cases
Across all examples, the same principles recur:
- Data types must be explicit
- Identifiers must never be auto-transformed
- Raw data must be immutable
- Analysis must be reproducible (easier in script languages, but more on day 3)
- Metadata is part of the data
These principles motivate why this course starts with Excel discipline, but quickly moves to R and Quarto.
Excel as a data tool
Used correctly, Excel helps you:
- enter data consistently
- inspect data visually
- detect obvious errors early
Used incorrectly, Excel:
- silently changes data
- mixes metadata, logic, and values
- hides errors in formatting and formulas
The goal is discipline, not Excel mastery.
There are alternatives to Excel (Google Sheets, LibreOffice Calc), but the principles remain the same.
File formats, metadata, and storage
Separators (delimiters): commas, tabs, semicolons, and why they matter
Plain-text data files (.csv, .tsv, .txt) store tables using separators (also called delimiters) to mark where one column ends and the next begins.
Excel does not store separators inside .xlsx files, but relies on them heavily when importing and exporting text data.
Common separators you will encounter
| Separator | File extension | Typical use | Common problems |
|---|---|---|---|
Comma , |
.csv |
Default in many countries | Conflicts with decimal commas |
Semicolon ; |
.csv |
Common in Europe | Misread by software expecting commas |
Tab \t |
.tsv |
Scientific data exchange | Invisible, but robust |
Pipe | |
.txt |
Rare, custom exports | Requires manual import |
Why separators break things
Separators fail when they collide with content.
Examples:
- commas inside text fields (species names, notes)
- decimal commas vs decimal points
- inconsistent exports across operating systems
- Excel guessing the wrong delimiter
A file can be syntactically valid and still be interpreted incorrectly.
CSV is not a standard (this surprises many people)
Despite its name, CSV has no single global standard.
CSV files vary by:
- separator (
,vs;) - decimal symbol (
.vs,) - text encoding
- quoting rules
What if the data itself contains a my separator?
If a value contains a separator, it must be wrapped in double quotes
Example:
plot_id, species, notes
1, Iguana iguana, “observed near river, basking on rock”
From Excel
- Create a new sheet with the data as shown bellow

- Save as
.csvand inspect the file in a text editor
File > Save As > “Save as type” > CSV UTF-8 (Comma delimited) (*.csv)
From text editor
Open a text editor (e.g. Notepad, Notepad++, VSCode, TextEdit) What changed in the data? what is the delimiter?
Save as
.csvand open in ExcelAfters inspecting, remove the last quote and re-open in Excel. What happens?
Now repeat the process and add ; as well as , inside a value. Once you open the file in a text editor, what do you see?
Now remove the quotes and re-open in Excel. What happens?
Note How delimiter and quotes are handled depends on your data by excel.
What if the data contains double quote
If a value contains a double quote “, you escape it by doubling it.
plot_id, species, notes
1, Iguana iguana, “observed”“near”” river, basking on rock”
TSV is often safer than CSV
Tab-separated values (.tsv) are preferred in science because:
- tabs rarely appear in text
- commas inside values do not break columns
- human-readable and machine-friendly
If you can choose: prefer TSV over CSV.
How Excel decides which separator to use
Excel uses: - system locale settings - regional settings - guessing
This means:
- the same file opens differently on different machines 😖
- the same file opens differently on Windows vs macOS 🤮
Text encodings
Text files do not store letters directly.
They store numbers that represent characters.
A text encoding defines how those numbers map to letters, symbols, and accents.
If you feel motivated, check out this 10min video explaining encoding and related concepts
Common encodings you will encounter:
- UTF-8: modern standard, cross-platform, supports all languages
- Windows-1252 / Latin-1: older, limited, Windows-specific
- MacRoman: obsolete legacy format
Best practice
Always use UTF-8 for data files.
Encodings are invisible until they break.
You only notice encodings when something goes wrong:
ä becomes ä
µ becomes µ
symbols turn into �
column names become unreadable
At that point, the problem is already in the data, not just on the screen.
Hands-on session: structured data entry

Training datasets and templates
All practice files in data/raw and data/templates originate from the actual Belize protected-area monitoring programme plus the Sanchez-Martinez et al. 2025 drought-throughfall experiment and other linked datasets that will be downloaded directly. They have been lightly anonymized (IDs scrambled, locations jittered, sensitive observer metadata removed) to satisfy data privacy, permitting, and compliance rules while keeping the true structure we work with in the field. Because this site renders straight from GitHub, the following links open the exact files in the public repository.
You might want to download the entire repo, and acess the files locally for easier handling. Visit this, click on the green “< > Code” button, and select “Download ZIP”. After that unzip the file on your computer. 
data/raw
csv/Caxiuana_tree_trait_data.csv– canopy-throughfall trait table exported exactly as received from UKCEH, with only tree IDs hashed for privacy.csv/Caxiuana_tree_trait_data_info.rtf– companion metadata sheet (variables, methods, sensor notes) for the trait table.Foresty/GAP_Data_2019andForesty/GAP_Data_2020– seasonal canopy-gap (GAP) monitoring exports for four permanent transects (filesGAP_2014.05_*throughGAP_2018.02_*) with sensitive stand IDs redacted.Foresty/PLOT_Data_2019andForesty/PLOT_Data_2020– full-plot remeasurement workbooks for the same transects, cleaned only for ranger names and GPS precision.PSP/PSP_NPD42_OH.xlsxandPSP/PSP_NPD847_OH.xlsx– Permanent Sample Plot (PSP) field exports with trunk/branch measurements, now using pseudonymous plot codes.
data/templates
PSP/PSP_#####_SFBC.xlsx– the clean data-entry template we fill during the field survey; replace#####with your plot code.PSP/README.docxandPSP/[YYYYMM]_PSP_report.docx– documentation that explains how rangers complete the template and assemble the monthly PSP report for supervisors.PSP/DW.pngandPSP/DW2.png– quick-reference visuals used in the field to remind teams of the DBH workflow and measurement checks.
Using formatting to understand data (not decorate it)
Formatting is for error detection and data visualization, not aesthetics.
Minimal but effective practices
View → Freeze Top Row(column headers; German Excel: Ansicht → Fenster einfrieren → Oberste Zeile einfrieren)View → Freeze Panes(ID columns; German Excel: Ansicht → Fenster einfrieren → Fenster einfrieren)- Conditional formatting (Home → Conditional Formatting; German Excel: Start → Bedingte Formatierung) to:
- flag missing values
- highlight out-of-range values
- reveal impossible measurements
Defining data formats explicitly (minimum discipline)
Steps
- Select the column
- Right-click → Format Cells (German Excel: Rechtsklick → Zellen formatieren)
- Set:
- Text for IDs
- Number (fixed decimals) for measurements
- Date (explicit format) for dates
This prevents Excel from “helping”. Try this out in any of the files.
Excel becomes a visual validator, not a calculator. Using those makes it harder to create and miss errors as well as for interpreting data.
Download and check this supplementary material excel sheet/. This is a real scientific excel file used in a scientific study and is a hands on example on gene name errors in genomics.
Open the provided spreadsheets. You can double click it.. this data is already “corrupted” by excel.
Freeze the top row.. see how it helps you navigate the data. (German Excel: Ansicht → Fenster einfrieren → Oberste Zeile einfrieren)
See line 466 and 467, row “geneSymbol”. What looks suspicious? You can select the entire column and use conditional formatting to highlight values that are not text
Home → Conditional Formatting (German Excel: Start → Bedingte Formatierung) → Choose any Icon Set or Color Scale (obs. this will ignore text values)
Right click the top and bottom cells and then Format Cells to see the current cathegory.
Select the entire column “geneSymbol” properties and right click → Format Cells → Text. What happens to the values in that column?
Now undo these two changes (Ctrl + Z or Cmd + Z).
On other cells at the same column, add possible geneSymbols like Sep3 and Sept21
Now repete step 5. and then step 7.
Note how did Excel auto-convert your new entries? What does this tell you about data entry in Excel?
Common data formats inside Excel (and how to use them)
Excel cells always have two things: - a value - a format
The Formula Bar (located to the right of the Name Box) is also important; it typically displays the unformatted, underlying value or formula of the active cell, regardless of the format applied to the cell itself.
Confusing these causes errors.
| Format | Use for | Common mistake |
|---|---|---|
| Text | IDs, codes, species names | Auto-conversion |
| Number | Counts, measurements | Mixed units |
| Date | Dates only | IDs converted to dates |
| Time | Time of day | Mixed with dates |
| Logical | TRUE / FALSE | Stored as text |
Rule
Identifiers are text, never numbers.
Correct import workflow (Excel 365)
Importing CSV, TSV, and delimited text correctly
Refrain from double-clicking a CSV file. That is how Excel destroys data.
This prevents: - automatic date conversion - loss of leading zeros - unwanted scientific notation
Steps Power Editor
Data → Get Data → From File → From Text/CSV(German Excel:Daten → Daten abrufen → Aus Datei → Aus Text/CSV) Alternatively, if avaiable, you can use:Data → From Text/CSV(German Excel:Daten → Aus Text/CSV)Select the file
csv/Caxiuana_tree_trait_data.csvInspect:
- delimiter (comma, tab, semicolon)
- decimal separator
- encoding (UTF-8)
Click Transform Data (German: Daten transformieren) to open Power Query Editor for more control. Use Load (German: Laden) only if you want to proceed with Excel default data transformation
Note the type of the last variable (column) of line 32 from Texteditor or 33 from Power Query Editor. Note this is a number but in scientific format.
- Explicitly set column data types
- Select columns
- Right-click → Change Type (German Power Query: Datentyp ändern) → choose correct type (Text, Decimal Number, Date, etc.) Alternatively you can change the type on the formula bar
- Click Close & Load (German: Schließen & Laden) to import the data into Excel
Check the imported data. Did anything change?
Steps Data Tools → Text to Columns
Do the same as above, but:
- Opening the .csv file from a text editor (e.g. Notepad, Notepad++, VSCode, TextEdit) and copy-pasting the content into Excel.
- Paste it on the first cell (A1)
- Select the entire first column (A)
- Go to
Data → Text to Columns(German Excel:Daten → Text in Spalten) - Choose Delimited (German: Getrennt) → Next
- Select different delimiters and see what happens with the dataset
- Select the correct delimiter (Comma, Tab, Semicolon) as well as types → Next (German: passenden Trenner wählen, dann Weiter) What happens to the data? Check specifically for the last variable (column) of line 32. Right click it → Format Cells and see the Cathegory and compare with the cell above it.
Limiting data entry (to avoid mistakes)
Data validation (essential)
Steps
- Select target cells or column
Data → Data Validation(German Excel:Daten → Datenüberprüfung)- Choose:
- numeric range
- whole numbers only
- allowed values
- no blanks
- Add an input message if useful
This stops bad data before it enters the table.
Creating drop-down lists (controlled vocabularies)
Use drop-downs for: - habitat types - sex - life stage - presence / absence - categories
Steps to create a drop-down list
- Create a list of allowed values (preferably on a separate sheet)
- Select the target cells
Data → Data Validation(German:Daten → Datenüberprüfung)- Under Allow, choose List (German: Zulassen → Liste)
- Set the source range (or type values manually)
- Confirm
This enforces consistency and avoids spelling variants.
- Open any of the PSP xlsx files.
- Identify at least three columns that need explicit formatting.
- Apply the correct format to each column.
- Use formatting to check extreme values and missing data.
- See data validation rules in action and spot possible improvements.
Bonus. Check PSP/PSP_NPD42_OH.xlsx and see if you can spot any data issues
Avoiding copy-paste disasters
Copy-paste is one of the biggest sources of silent errors.
Defensive rules
- Never insert rows inside data blocks
- Never mix formulas and raw data
- Keep raw data formula-free
- Use Paste Special → Values
Sorting and ranking data safely
Sorting a single column corrupts the dataset.
Safe sorting workflow
- Select the entire table
Data → Sort- Confirm Expand selection
- Open any of the PSP xlsx files.
- Select a single column (e.g. DBH) and sort it ascending.
Home → Sort & Filter → Sort A to Z(German:Start → Sortieren und Filtern → Von A bis Z sortieren) orRight click → Sort → Sort Smallest to Largest(German:Rechtsklick → Sortieren → Kleinste bis Größte) - Observe what happens to the rest of the data depending on your choice Continure with the current selectio would be catastrophic for the dataset! Values of variable DBH would be shuffled on the observations and no longer correspond to the rest of the data in the same row.
- Now move to the Analysis sheet and try addin a new row in the middle of a sequence of data
- Observe what happens to formulas in that sheet
- Copy a value and paste is with Ctrl+C and Ctrl+V in an empy cell. What happens?
- Now try pasting with
Ctrl + Alt + Vand select Values orRight click > Paste Special > Values(German:Rechtsklick → Inhalte einfügen → Werte). What happens now?
Freezing structure to avoid accidental edits and improve overview
- Protect sheets after data entry
- Lock identifier columns
- Allow edits only where needed
This is basic but powerful.
Locking structure (actual protection)
Excel locks cells in two steps.
Step 1: Unlock cells that may be edited
Select the cells that users are allowed to edit
Right-click → Format Cells
Go to the Protection tab
Uncheck Locked
Click OK
Step 2: Protect the sheet
Go to
Review → Protect Sheet(Optional) Set a password
Choose allowed actions (e.g. select unlocked cells only)
Confirm
All cells are locked by default,
but locking only takes effect after Protect Sheet is enabled.
Work in pairs.
You are designing a spreadsheet for PSP tree inventory data collected in the field.
For reference, use data/templates/PSP/PSP_#####_SFBC.xlsx
Your table must include at least the following variables:
- tag_id (unique identifier, e.g. metal tree tag)
- species_name (scientific name)
- dbh_cm (diameter at breast height, in cm)
- height_m (tree height, in meters)
- quality_class (e.g. good / damaged / dead)
Requirements
Design the spreadsheet so that it is hard to enter bad data:
- freeze the header row and identifier column
- explicitly set data types for each column
- use data validation:
- numeric ranges for dbh and height
- drop-down lists for quality_class and species names (you can just enter ABC…)
💬 Be ready to explain - why each column has its format - what mistakes your design prevents
- What surprised you today?
- What would you no longer trust Excel with?
- What surprised you about how errors occur?
- What would you like to know more about?
If you can, please take some time and give feedback on today’s session: - Anonymous feedback