An extraction that swaps two columns looks perfectly tidy while being completely wrong: quantities sit under prices and prices under quantities, and every total built on them is nonsense. Comparing the headings one by one against the source catches the swap before any number is used.
Prerequisites
- The source table
- The extracted sheet
- A copy of the source file, so the original stays untouched.
Steps
- Write down the column headings of the source table in order, from left to right.
- Write down the headings of the extracted sheet in the same order and compare the two lists.
- Flag any column that sits in a different position, and check its values against the source column.
- Move each misplaced column to its source position, and re-check the values in it.
- Add a SUM or a spot check per column to confirm each column now holds the right kind of value.
Worked example: Fictional order table column order check
The practice table below is a fictional five-order list with the columns in source order. Each amount is quantity times unit price, and the total is their sum. The table below is fictional practice material, with fictional values. It is the expected result, worked out by hand, not a run of any tool.
| Item | Qty | Unit price | Amount |
|---|---|---|---|
| Order 401 | 2 | 9.50 | 19.00 |
| Order 402 | 3 | 7.25 | 21.75 |
| Order 403 | 1 | 19.99 | 19.99 |
| Order 404 | 4 | 5.50 | 22.00 |
| Order 405 | 2 | 12.75 | 25.50 |
| Total | 108.24 |
Expected result. Five orders, columns in source order, and the total is 108.24. UNTESTED: no AI extraction was run for this guide; the table shows the expected values a check should produce.
Limits
- Two columns with the same kind of value, such as two money columns, are the easiest to swap and the hardest to spot.
- A heading that extracts as a data row will shift every column, so check the header row first.
