Websites, apps & code / Coding & debugging
Sum up several Excel files with Python
You get a dozen supplier statements in Excel each month and want one script to total them.
1Fill in your details
Leave blank to use the example. Names are remembered for other prompts too (stored only on your device).
3Copy the prompt
I have a folder of Excel supplier statements and want a Python script that combines them into one summary. Folder: C:\Users\Mei\Documents\statements\2026-11, containing 12 xlsx files Columns to total: The "Supplier" and "Amount (RM)" columns, data starting on row 3 My setup: I use Windows with backslash paths; show me how to open the command prompt and install what is needed. Please: 1. First ask what you still need (for example whether the column names are identical in every file) before writing code. 2. Write a complete runnable script using pandas that reads every file, totals the amount per supplier and saves a new xlsx without touching the originals. 3. Handle blank rows and amounts that contain "RM" or commas, and print at the end how many files were read and how many rows were skipped. 4. Walk me through running it, explaining what each command does. 5. Remind me to work on a copy first. Use only what I gave you; do not guess column names I did not mention. [Make it sound human] - Explain in plain words; no pleasantry openers or empty summaries. - Only necessary, short, practical code comments; the simplest working approach, no over-engineering. - Interface text (buttons, hints, error messages) should sound like a person wrote it; no "seamless", "empower", "unlock". [Quality] Code must run as is and handle common errors; tell me how to test it and confirm it works; ask first if a requirement is unclear; never put passwords or API keys in the code.
Paste it into ChatGPT, Gemini, Claude or Meta AI.
Test result
AI tools that suit this
- Claude Suggested tool Free plan
Strong at long documents, editing and code
- ChatGPT Suggested tool Free plan
The most widely used AI chat, for writing, questions and images
- Gemini Suggested tool Free plan
Google's AI; generates and edits images, works with Gmail and Docs
Recommendations only, not sponsored. Check each site for what the free plan includes.
This site is made by FullMark Tech
Want your own website, or your shop spreadsheets automated? FullMark Tech builds business websites and custom Excel tools.