Sub topic 2
Preparing your data before converting
This chapter assumes you can select cells, enter data and formulas, and read A1-style references. It covers the checks to run on a plain range before you turn it into a table. Creating the table itself comes in the next chapter.
Why preparation matters
Excel can turn almost any block of cells into a table. A table works well only if the source range already looks like a database: one header row on top, one record per row, and one kind of value per column. Problems in the range carry over into the table. Fixing them afterward is slower, because filters, formulas and structured references have already been built on the faulty data.
A checklist for the source range
Work through these points before you convert.
- One header row. Put a single row of column names directly above the data. Do not use a two-line header or merge cells across it.
- Unique, non-empty headers. Every column needs a name, and no two names may match. Excel will rename duplicates for you (for example,
AmountbecomesAmount2), and it fills blank headers with names such asColumn1. Check these names yourself. Formulas will refer to them later. - No blank rows or columns inside the data. A fully blank row or column ends the contiguous block. Excel then selects only part of your data.
- No merged cells. Merged cells break sorting and filtering, and a table cannot contain them in its body.
- One type of value per column. Keep dates as real dates and numbers as real numbers. A column that mixes numbers, text and blanks gives odd sort orders and wrong totals.
- No subtotal or grand total rows inside the block. Totals belong in the table's total row, which a later chapter covers. A stray total row would be treated as one more record.
- No stray cells touching the block. Anything typed directly beside or below the data gets pulled into the selection.
Spotting numbers stored as text
A common fault is a number that Excel stores as text. It is usually left-aligned and may show a small green triangle in the corner of the cell. It will not add up in a sum. Select the column, open the warning icon, and choose Convert to Number.
You can also test a cell with a formula:
=ISNUMBER(C2)This returns TRUE for a real number and FALSE for text that only looks like one.
Seeing what Excel will select
Click any single cell inside your data and press Ctrl+A. Excel selects the current region, which is the block of cells bounded by blank rows, blank columns and the sheet edge. When you later create the table from that cell, Excel proposes this same block.
If the highlighted area is smaller or larger than you expect, you have found a blank row, a blank column or a stray cell. Fix it now.
A worked example
Suppose a sales sheet has these problems:
| Cell or area | Problem | Fix |
|---|---|---|
| A1:C1 | The title "Sales 2026" is merged across the top | Move the title above the data with one empty row between, or delete it |
| B1 and B2 | Both headers read "Amount" | Rename them "Net Amount" and "Tax Amount" |
| Row 8 | Fully blank | Delete the row |
| Row 15 | Contains a "Total" row | Delete it, and use the total row later |
| D2:D14 | Quantities stored as text | Convert to numbers |
After these fixes, click inside the data and press Ctrl+A. The selection should cover exactly the header row and the records, with nothing extra.
Common errors
- The table covers only part of the data. A blank row or column cut the block short. Remove the gap and select again.
- A header appears as
Column1. A header cell was empty. Type a name before converting, or rename it afterward. - A filter hides rows that look identical. The values differ in type, such as
10as a number and10as text.
Exercise
You click a cell in your data and press Ctrl+A, but the selection stops at row 40, although the data continues to row 90. What is the most likely cause, and what should you do before creating the table?
Show answer
Row 41 is probably completely blank, and that ends the current region. Delete the blank row (or fill it with data if it was meant to be a record), then select again. Confirm that Ctrl+A now covers all the rows through row 90 before you create the table.