· 3 min read

Excel Phone CSV Round-Trip Test Before a Recurring Export

Test a recurring phone CSV against source controls before uploading it. A row-level comparison catches digit loss that a spreadsheet preview can hide.

Test a recurring phone CSV against source controls before uploading it. A row-level comparison catches digit loss that a spreadsheet preview can hide.

Keep a small control file with the original phone strings and stable row IDs. Run it through the same import, edits and export as the customer list. Compare the exported text against the controls before releasing the file. A column that looks correct on screen can still contain a different value.

→ Explore CheckNumber.AI →

Build a control file someone else can reproduce

Pick examples that exercise the formats your source actually supplies. Include a local number with a meaningful leading zero if that format occurs, an international number with a plus sign, and two values that differ only near the end. Use authorized test data. Give each row a short permanent ID such as TEST-A so a sort cannot break the comparison. Keep the baseline outside the workbook being tested.

Write down any intended transformation before the test. If the workflow deliberately removes spaces, the expected output should already reflect that rule. A retained plus sign or leading zero should have its own expected value. This separates a genuine digit change from an approved formatting change.

Test the exported file, including its second trip through Excel

Start with a fresh copy of the source. Import the phone column as text before accepting Excel’s automatic type conversion. Apply the same transformations the operator normally uses, then export a CSV. Open that CSV in a plain-text viewer or read it with a CSV reader configured to keep strings. Compare the phone field for each test ID with the expected string. Comparing screenshots will miss some changes.

If staff routinely reopen and save the CSV, include that step and compare again. Microsoft documents that Excel can drop leading zeros and limit numeric precision. Setting a damaged value to Text later only preserves what is left. If the first export matches but the second fails, the reopen-and-save step is where to intervene.

Decide which file can leave the spreadsheet

On a mismatch, record the first failing step, row ID, expected text and actual text. Repeat with a fresh source after correcting the import settings. Keep real customer rows out of the test report. When a source value itself is uncertain, send that row back to its owner instead of trying several plausible digits.

Once the controls pass, run the customer export through the verified path and submit the appropriate list to the phone number checker. A successful check describes the number actually submitted. The round-trip test gives you a separate reason to trust that it was the intended one.