Sub topic 1
Prepare Your Data: One Table, One Header Row
Prerequisites
You should know how to open a Google Sheets spreadsheet, enter data, use rows and columns, and recognize a range such as A2:D100. You should also be comfortable entering a simple formula such as =SUM(C2:C10).
Sorting and filtering work best when your data has a clear, rectangular structure. A rectangular range has the same columns for every row. Each row represents one record, such as one order or one employee. Each column represents one attribute of that record.
For example, an order table might use these columns:
| Order ID | Region | Customer | Amount | Order Date |
|---|---|---|---|---|
| 1001 | West | Oak Street Cafe | 1250 | 2026-01-12 |
| 1002 | East | Pine Market | 875 | 2026-01-13 |
The first row is the header row. A header is a short label that describes the values below it. Keep exactly one header row at the top of the table.
Keep the Table Rectangular
Start the table in one cell, usually A1. Put one field in each column and one record in each row.
Follow these rules:
- Use one header row.
- Give every column a useful, unique name.
- Do not leave completely blank rows inside the table.
- Do not insert notes, subtotals, or headings between data rows.
- Keep related fields in the same table.
- Avoid merged cells in the table.
- Keep the same type of value in each column.
A blank row can make Google Sheets treat the data above and below it as separate areas. A subtotal row can also be mistaken for an ordinary record. Put summaries outside the source table, or build them on another sheet.
Choose Consistent Data Types
A data type is the kind of value stored in a cell. Common types include text, numbers, dates, and checkboxes. A column should normally contain one type.
For example, enter amounts as numbers, not as text such as "$1,250" typed with a leading apostrophe. Text-formatted numbers may sort alphabetically, so 900 can appear after 1,000. Dates stored as text may also sort in an unexpected order.
Use formatting to display a number as currency rather than typing currency symbols into every value. Use Google Sheets date values and apply a date format to the column.
Be careful with blanks. An empty amount is different from an amount of zero. Decide what each blank means before sorting or filtering.
Select the Correct Range
Before using a Data menu command, check whether the selected range includes all columns and rows in the table. Include the header row when Google Sheets asks whether the range has a header row. Exclude unrelated notes or summary cells.
For a table in columns A through D with headers in row 1, the data range is commonly A1:D100. The records alone begin at A2:D100.
If you expect new rows, leave room for them or use a formula-driven result on another part of the sheet. Keep that output area clear so new results have space to expand.
Check Before Sorting or Filtering
Use this quick checklist:
- Is there one header row?
- Does every data row have the same columns?
- Are numbers stored as numbers?
- Are dates stored as dates?
- Are there blank rows or subtotal rows inside the table?
- Does the intended range include every column?
- Are notes and summaries outside the source range?
Exercise
In a sales table, the Amount column contains 100, 900, and '1,000. What problem can this cause, and how should you correct it?
Show answer
The apostrophe makes 1,000 text, which can sort differently from numbers. Store it as a numeric value and apply currency formatting if needed.