Sub topic 2
Preparing Your Data: A Clean Header Row and Consistent Columns
This chapter assumes you know how to select cells, enter data, write simple formulas such as SUM, and read A1 ranges such as A1:E4. The goal is to prepare an ordinary range so Google Sheets can convert it into a table without confusing headers, broken columns, or unwanted rows.
Why preparation matters
A table treats each column as a field and each row as one record. For example, one row might represent one order. The first row gives the field names, such as Order ID and Amount. Every row below it should follow the same structure.
A plain range can contain almost anything. It may include a title, blank lines, a subtotal, or notes below the data. A table needs a clear boundary. If the range includes extra content, Google Sheets may treat that content as table data or make later sorting and filtering difficult.
The following layout is a good starting point:
| Order ID | Customer | Order Date | Amount | Paid |
|---|---|---|---|---|
| 1001 | Acme | 2026-01-05 | 250 | TRUE |
Use one header row
Put one header in each column of the first row of the selected range.
Good headers are:
- Short but descriptive.
- Unique within the range.
- Written in one row.
- Free of unnecessary symbols and line breaks.
- Consistent in capitalization and wording.
For example, use Order Date rather than leaving the column unnamed. Do not use two headers named Status, because formulas and filters become harder to understand. Use names such as Order Status and Payment Status when the meanings differ.
Do not place a report title above the header row if you plan to include the title in the selected range. Put the title elsewhere, or start the table range at the actual header row.
Keep each column consistent
Each column should hold one kind of value. A consistent column lets Sheets sort, filter, format, and calculate values predictably.
| Column | Suitable values | Common problem |
|---|---|---|
| Order ID | `1001`, `1002` | Mixing numbers with notes such as `Pending` |
| Order Date | Real date values | Dates stored as text |
| Amount | Numbers such as `250` | Values such as `€250` entered as text |
| Paid | `TRUE` or `FALSE` | Mixing checkboxes, words, and blanks |
Currency symbols and date appearance belong to formatting. The underlying value should still be numeric or a real date. For example, format the number 250 as currency instead of typing the currency symbol into the cell.
Identifiers need special care. If an identifier can begin with zero, such as 00027, store it as text. Otherwise, Sheets may convert it to the number 27 and remove the leading zeros.
Remove structural obstacles
Before selecting the range, check for these problems:
- Blank rows inside the data.
- Blank columns inside the data.
- Merged cells.
- Subtotal or total rows mixed with ordinary records.
- Notes, legends, or comments inside the data area.
- Formulas that return errors.
- Different meanings in the same column.
A blank value in a record can be valid. A blank row between two records is different because it interrupts the table body. Delete the row or fill it with a complete record before conversion.
Keep totals outside the table when possible. A total row uses a different structure from an ordinary record and can be mistaken for data during sorting or filtering.
=SUM(D2:D4)This formula is appropriate in a summary cell outside the prepared data range. It should not replace an order record inside the range.
Inspect values before formatting
Formatting can hide inconsistent values. A date may look correct while actually being text. A number may display as currency while another cell contains typed text. Test representative cells with a simple formula or by checking alignment and behavior.
The preparation flow is:
A practical preparation checklist
Before converting the range, confirm that:
- The first selected row contains the headers.
- Every header has a clear, unique name.
- Every row below the headers represents one record.
- Each column has one intended type.
- Dates are dates, numbers are numbers, and identifiers keep their required formatting.
- There are no merged cells or unrelated notes in the selection.
- Totals and summaries sit outside the data range.
Preparing the range carefully makes the later table steps more predictable. It also makes formulas, filters, and grouped views easier to maintain as the data grows.
Exercise
In a sales range, the Amount column contains 250, "$480", and "unknown", and a subtotal row appears below the records. What should you change before converting the range to a table?
Show answer
Make the numeric amounts actual numbers, decide how to represent the unknown value, and move the subtotal outside the data range. Keep one header row and one order record per body row.