Research data
Write a codebook for a student research spreadsheet
A spreadsheet's column names rarely explain everything needed to interpret its contents. A value of one might mean a count, a category or a coded response, while an empty cell can have several meanings. Create a codebook alongside the data so those decisions do not remain only in your memory.
Leeds explains the value of describing research data, and Microsoft's guidance on identifiers shows why apparent numbers can need text treatment. Use your project's approved data dictionary if one exists. The example workflow below helps you document meaning; it does not authorise collecting new information or changing research definitions without the appropriate agreement.
We may earn a commission from retailer links. This guide does not claim first-hand product testing. Our editorial approach
Define the unit of each row
Start by writing what one row represents: a permitted observation, sample, response or other unit. Explain whether repeated rows can relate to the same participant or object and how that relationship is represented under the project's rules. This prevents another reader from treating repeated measurements as unrelated cases.
Identify the approved record key and keep sensitive linking information in its required separate location. Do not include participant names in an ordinary explanatory file merely to make the spreadsheet easier to recognise. A codebook should support interpretation while respecting the same access and privacy rules as the research workflow.
Describe each variable plainly
For every column, record its exact name, meaning, expected type and units where relevant. Explain coded categories in full. A label such as status needs a definition of each allowed value and the circumstances in which it is assigned. Avoid using another unexplained abbreviation as the entire description.
Include the source or method used to obtain the value when it matters to interpretation. Distinguish directly collected data from derived calculations. If a variable changes meaning between phases of the project, document the change and version rather than quietly reusing the same column heading for a different concept.
Preserve identifiers and missing meanings
Mark identifiers as identifiers, including any required leading zeros or fixed length. Microsoft's guidance explains why text handling can be needed for such fields. Test the import or export process with representative values and record the expected format. A codebook can reveal a changed identifier, but it cannot always reconstruct a lost original.
Define missing values explicitly. Separate not collected, not applicable, unavailable and genuine zero where the research design distinguishes them. Use the project's agreed codes and explain them in the documentation. Do not invent a convenient missing-value convention midway through analysis without checking how it affects existing records and planned calculations.
Document derived fields
For a calculated column, record the rule, relevant inputs and any inclusion or exclusion condition. Include the software or script reference where appropriate. A column called score is incomplete without an explanation of how it was obtained. Keep enough detail for another authorised person to reproduce the calculation under the same assumptions.
If you correct an error in the derivation, update the documentation and affected outputs together. Preserve the appropriate version record. Avoid changing a formula in one workbook while leaving the submitted or archived codebook describing the old method. The data and its explanation should tell the same story at each meaningful project stage.
Test the codebook against real records
Ask an authorised reader to interpret a small permitted sample using the codebook. Check whether they can identify units, category meanings and missing values without asking you to fill gaps from memory. Use their questions to improve the document. Do not share restricted records outside the approved team for a convenience test.
Keep the codebook with the authorised dataset and update it when the structure changes. Verify that the handover or submission includes the matching version. Hardware is rarely the main obstacle here; a simple accurate document can make an existing spreadsheet much more useful than a larger storage device containing unexplained columns.
Your next steps
- Define what one row represents.
- Document every variable and unit.
- Explain identifiers and missing-value codes.
- Keep derived-field rules and dataset versions aligned.
Products and offers
Products and offers to explore
These products and offers relate to this guide. A verification-pending label means the details still need checking. Confirm specification, availability, price and terms with the retailer.
Products
- MacBook Pro Core i9 2.3 16" (Scissor 2019) 16GB Grey 1TB Space Grey - GoodMusic Magpie · United Kingdom · Verification pending — read supplied details
- MacBook Pro Core i7 2.6 16" (Scissor 2019) 16GB 512GB Silver - Very GoodMusic Magpie · United Kingdom · Verification pending — read supplied details
- MacBook Pro 13" 2022 M2 8-Core CPU 10-Core GPU 8GB 512GB Space Grey - GoodMusic Magpie · United Kingdom · Verification pending — read supplied details
- MacBook Pro Core i5 1.4 13" (Scissor 2020) 8GB 512GB Grey - Very GoodMusic Magpie · United Kingdom · Verification pending — read supplied details
Offer source records
1 source offers in this bounded selection. Their supplied country labels do not establish currency or delivery compatibility.
- Get £10 off selected MESH Custom Asus, Lenovo, HP LaptopsMesh Affiliate Programme · verification pending — supplied details
Listed for: United Kingdom. The source does not give a currency. Check delivery and checkout currency with the retailer. Headline amounts use GBP. Headline copy does not establish checkout currency.
Additional source records and references
5 unranked references in this bounded selection. These detail links preserve supplied records that need country, currency, availability or offer checks. They are separate from a shopper recommendation.
Product source records
- GOOLOO Discovery 100 Portable Power Station – 99.9Wh, 100W AC Output, 27000 mAh Fast Charging Generator, Multiple Charging Ports, Compact Power Station for Laptops, Phones, and Outdoor Use
Listed for: United Kingdom. Supplied currency: USD. Your selected currency is GBP; no conversion has been made. Check delivery and checkout currency with the retailer.
Supplied availability: InStock. Review the original details before deciding.
- 66w Gan Fast Charger Pd 3.0 Qc 3.0 Dual Port Usb A Type C Eu Plug Super Fast Charging Adapter For Laptop Phone
Listed for: United Kingdom. Supplied currency: RSD. Your selected currency is GBP; no conversion has been made. Check delivery and checkout currency with the retailer.
Supplied availability: InStock. Review the original details before deciding.
- 2 i 1 OTG-adapterkabel med nylonfletting USB 3.0 til Micro USB Type C datasykler for MacBook U-disk Type-C OTG
Listed for: United Kingdom. Supplied currency: NOK. Your selected currency is GBP; no conversion has been made. Check delivery and checkout currency with the retailer.
Supplied availability: InStock. Review the original details before deciding.
- Chave de Elétrica, Kit 68 com 64 Bits Magnéticos, Ferramenta Sem Fio para de Celular, Câmera e Laptop
Listed for: United Kingdom. Supplied currency: EUR. Your selected currency is GBP; no conversion has been made. Check delivery and checkout currency with the retailer.
Supplied availability: InStock. Review the original details before deciding.
Offer source records
- The Bubble 20L Puffy 15.6" Laptop Work Tote - 10% OFF
Listed for: United Kingdom. The source does not give a currency. Check delivery and checkout currency with the retailer.
Supplied status: quarantined. Dates and eligibility need checking.
Source membership and supplied amounts do not establish delivery coverage, checkout currency, current stock or a working offer.
Sources and further help
Each source below shows its recorded consultation date. Provider terms and services can change; check your exact booking, product or university service.
- University of Leeds: describing research data · Consulted
- Microsoft: preserve leading zeros and long numbers · Consulted
Keep planning
- Name research project files so you can explain them later
- Make spreadsheet coursework easy to check and reproduce
- Choose a student laptop from your course requirements
- Keep coursework backed up and practise getting it back


















