Keep the leading zeros in an AI-extracted invoice number in Excel
Compare the number in the original invoice, the extracted text and the imported Excel cell. Finding the first place a digit changed tells you which step to fix.
Trace one identifier across three copies
Illustrative invoice ID: 000731. Ask the document assistant: “Copy the invoice number character for character, including leading zeros. Return it as text. If a digit is unreadable, mark it for review.” Read the source PDF beside the answer. If the assistant returns 731, resolve the discrepancy against the PDF before moving to Excel.
Protect the column at import
If the raw CSV still contains 000731, open it in a plain-text viewer to confirm. In desktop Excel use Data → From Text/CSV, choose Transform Data and set the identifier column to Text before loading. Check the preview still contains all six characters; remove or replace an earlier numeric type-conversion step if it stripped the zeros. For a manual paste into a worksheet, format the destination cells as Text first.
Check what can be recovered
An extracted 000731 and an imported 731 point to a spreadsheet conversion. A six-digit display format can make the latter look like 000731 but cannot establish how many digits the invoice originally contained. Longer IDs have another trap: Excel’s numeric precision is limited to 15 significant digits. If the imported suffix has changed, get the original string again and import it as text.