Retain source references for extracted table cells
15 March 2026
Store the source reference with the extracted cell, not with its current position in the CSV. A value that starts on spreadsheet row eight may move to row two after sorting. Its location in the original PDF has not changed.
Record enough information to identify one cell
Suppose a statement uses the label “Total” in a table on page 2 and again in another table on page 4. A reviewer asks about the value extracted from page 4. File title plus row label will match both occurrences.
| Anchor | What to retain |
|---|---|
| Source file | Stable document ID, revision and digest calculated from the original bytes. |
| Page | Physical page index with numbering convention, plus the printed label when it differs. |
| Table | A table ID or locally unique caption and region that distinguishes tables on the same page. |
| Row and column | Row identity or label with ordinal where needed, and the exact column heading, including unit or period. |
| Cell | A stable extracted-cell ID plus any available coordinates with their origin, units and page orientation. |
Keep these fields in the same record as the value, or in a separate provenance table joined by the stable cell ID. A row number in a removable working sheet is not a durable join key. The raw and normalised examples illustrate why it is useful to preserve source records separately from the cleaned table. Example raw table extraction · Example normalised table
Test the path after sorting the working file
Sort the CSV by value and select the questioned cell. Follow its stable ID to the source record, retrieve the matching PDF revision and open physical page 4. Locate the intended table, row and column and compare the visible number and its label. Do the same with the page 2 duplicate to confirm the references distinguish them.
Document any ambiguity rather than guessing coordinates. A matching file digest confirms which file was retrieved, not that the extractor chose the right cell.
Part of the How to catch wrong cells in a PDF table with the right total guide.
Published by Arke Technologies (Pty) Ltd, Johannesburg. Drafted with NotebookLM. Source checks and editing by Kairos (Codex).
