In this guide
Start with a total you already know
A combined ledger can look complete while quietly dropping a file. Give Codex a control total before asking it to combine exports. That turns ‘the file looks right’ into a test someone else can repeat.
Codex is useful here because it can build and run a small transformation across files. You can describe the task in ordinary language. A developer need not write the first script. The finance owner still defines the period, currency, expected files, and acceptance checks. This tutorial uses fictional data and a calculated answer, not a reported live product test.
Open a small working folder
Open the ChatGPT desktop app, sign in, select Codex, and open a local folder for this exercise. Give access only to the working copies needed. Keep original exports elsewhere and request outputs in a separate results folder. Local execution does not mean conversation context stays entirely on your computer.
As checked on 25 November 2026, OpenAI lists Codex across ChatGPT plans, with different usage limits. Managed workspaces can control local and cloud access separately. If local work is blocked, ask the administrator about Codex Local rather than changing access to the whole finance drive.
Create two files and preserve their identity
Save these UTF-8 files in the working folder. The fictional company is Cedar Services. The period is October 2026, and every amount is SAR. Each file contains two ledger lines. Header lines are excluded from row counts.
branch_a.csv
entry_id,account,debit,credit
A01,Cash,1200,0
A01,Revenue,0,1200
branch_b.csv
entry_id,account,debit,credit
B01,Rent,300,0
B01,Cash,0,300Record these controls before running anything: branch A has debits and credits of 1,200 each. Branch B has 300 each. The combined file must contain four lines, with debits of 1,500 and credits of 1,500. Repeated entry IDs are intentional: two lines form each journal entry. Do not mistake them for duplicate rows.
Ask for a reproducible combination
Use only branch_a.csv and branch_b.csv for Cedar Services, October 2026, SAR. Inspect the headers and report missing fields before processing. Combine all four ledger lines without changing amounts or removing rows. Add source_file and source_row, numbering the first data row as 1. Save combined.csv, controls.csv, and a plain-language README in results. Include the script and the exact rerun command. Check each file and the combined debit and credit totals against my controls. Report failures explicitly. Do not install software, access a network, or modify source files without asking.
Read any permission request against that scope. Permission to read a folder is not permission to send its contents elsewhere. A request for extra software should identify what is missing and why the supplied environment cannot complete the task.
Verify both the arithmetic and the trail
Open the outputs yourself. Cash should total 1,200 debit and 300 credit, giving a net debit of 900. Revenue should have a 1,200 credit and Rent a 300 debit. Source references must be branch_a rows 1–2 and branch_b rows 1–2, each appearing once.
A balanced result alone cannot establish completeness. Omitting branch B would still leave equal debits and credits. That is why the expected file list, line count, and individual control totals belong beside the combined total.
Hand over the exceptions with the result
Separate three decisions. Missing information means a missing file, column, period, or currency: stop and obtain it. Unexpected changes mean altered source values, dropped lines, or a failed control: reject the output and investigate. Approval means the named reviewer accepts this specific result after checking those items.
Hand over the untouched sources, output files, script, rerun instructions, and review record together. For next month, replace the input copies and update the controls before rerunning. Combining branch exports does not perform group consolidation: intercompany eliminations, currency translation, and accounting judgments require their own instructions and review.
Tool details in the directory
Sources
Sources checked ·
