Merging Excel files on a machine with no internet
Finance and government machines often have no outbound network, no admin rights to install software, and no Excel licence. A single-file script with one dependency covers that case.
Requirements that actually bind
No network at run time. No installer. No admin rights. Ideally no Python either, which is why a browser page that works offline is often the only option that survives IT review.
The Python route: one file, one dependency (openpyxl), installed into a user-level environment. It runs from a USB stick.
Getting it onto the machine
Copy the script and the wheel files, then pip install --no-index --find-links ./wheels openpyxl. That is a fully offline install with no network access at any point.
Step by step
- On a connected machine:
pip download openpyxl -d wheels. - Copy the script and the wheels folder to the restricted machine.
- Install with
--no-index --find-links. - Run against a folder; verify the row count in the report.
The command, concretely
pip download openpyxl -d wheels
# ... copy to the offline machine ...
pip install --no-index --find-links ./wheels openpyxl
python sheetkit.py merge ./data -o out.xlsx
What goes wrong
Assuming the browser is allowed
Many restricted environments block browser extensions but allow a local page. Test before relying on it.
Python version mismatch
A wheel built for 3.12 may not install on 3.8. Download wheels on a machine with the same Python version as the target.
Questions people actually ask
Does it need Excel?
No. It reads and writes the .xlsx format directly.
Can it run from a USB stick?
Yes — the script and the installed packages can live on removable media.
Do it now, in this browser
Drop the folder in, check the detected header, merge. Nothing is uploaded — the file is processed in the tab. Free for one-off merges; the unlimited local build is $9.