Python in Excel (xlwings Lite) with Natural Language Instructions.
- Amar Harolikar
- Sep 6, 2025
- 2 min read
Dictate logic โ AI codes. My Workflow for AI Code Generation.
๐ช๐ต๐ฎ๐ ๐ ๐ฐ๐ผ๐๐ฒ๐ฟ
1. xlwings Lite - quick start
2. Robust workflow - top 5 Rules
๐ฅ๐ฒ๐๐๐น๐๐ ๐บ๐ฎ๐๐๐ฒ๐ฟ - ๐ฐ๐ผ๐ฑ๐ฒ ๐ถ๐ ๐ถ๐ป๐ฐ๐ถ๐ฑ๐ฒ๐ป๐๐ฎ๐น
โช๏ธWhat doesnโt matter: The perfect python code
โช๏ธWhat matters: Delivering incremental impact without fatal errors.
๐ช๐ต๐ฎ๐ ๐ฑ๐ผ๐ฒ๐ ๐ป๐ผ๐ ๐๐ผ๐ฟ๐ธ
Some one-shot, in-the-cloud prompt. Thatโs demo theatre. Fine for concept demo - they don't work on live projects.
๐ช๐ต๐ฎ๐ ๐๐ผ๐ฟ๐ธ๐ - ๐ ๐ ๐ฑ ๐ต๐ฎ๐ฟ๐ฑ ๐ฟ๐๐น๐ฒ๐
๐ญ. ๐๐ฒ ๐๐ฝ๐ฒ๐ฐ๐ถ๐ณ๐ถ๐ฐ: High level gyan does not work
๐ฎ. ๐๐๐ฒ๐ฟ๐ฎ๐๐ฒ: One step at a time. Validate. Debug. It is tedious. At times frustrating.
๐ฏ. ๐ฅ๐ฒ๐๐ถ๐ฒ๐: Demand plan + pseudocode from AI. Scan code if you can.
๐ฐ. ๐ฉ๐ฎ๐น๐ถ๐ฑ๐ฎ๐๐ฒ: Sacrosanct. An engineer doesn't 'quick scan' a plane before takeoff. Same principle.
๐ฑ. ๐๐ ๐๐๐ฑ๐ถ๐: Final pass. Feed AI complete code in new session. It will still catch misses.
๐ง๐ผ๐ผ๐น๐ - ๐๐ ๐๐ผ๐ฑ๐ฒ๐ฟ๐
๐๐ฒ๐บ๐ถ๐ป๐ถ ๐ฎ.๐ฑ ๐ฃ๐ฟ๐ผ โ my top pick. Huge free tier. 1M context. aistudio.google.com
ChatGPT โ context fills fast + 2.5 Pro better.
๐๐๐ฟ๐๐ผ๐ฟ + Claude Sonnet 4 โ excellent. But they have tightened usage limits. I keep it for app builds.
๐ง๐ผ๐ผ๐น๐ - ๐ซ๐น๐๐ถ๐ป๐ด๐ ๐๐ถ๐๐ฒ ๐๐ ๐๐ผ๐ฑ๐ฒ๐ฟ ๐๐ป๐๐๐ฟ๐๐ฐ๐๐ถ๐ผ๐ป ๐๐ถ๐น๐ฒ
My personal 1855-line AI Coder instruction set for xlwings Lite. I use it on every project. Shared on app site. Optional, but makes code gen efficient
๐๐ถ๐ฐ๐๐ฎ๐๐ฒ - ๐ฑ๐ผ๐ป'๐ ๐๐๐ฝ๐ฒ
โช๏ธWhat does not matter: your typing speed
โช๏ธWhat matters: a robust workflow, expressing your requirements and business logic to AI, and validating results
โช๏ธVoice - It's fast and frictionless. Use Windows preinstalled tool (Win+H) and Mac (Fn key twice)
๐๐ฟ๐ฒ ๐๐ผ๐ ๐ฎ ๐๐ฎ๐ฟ๐ฝ๐ฎ๐๐ต๐?
My first line of code in 1994. Last major 'manual coding' in 2022. I've executed projects with ML models, campaigns, and automations on Python/SAS with millions of dollars in tracked, signed-off impact. Now โ AI-assisted. From automations to ML models. Faster. Better. Greater Impact
Unless youโre an Andrej Karpathy or Przemyslaw Debiak, let AI Code for you
๐ ๐น๐๐ถ๐ป๐ด๐ ๐๐ถ๐๐ฒ
โช๏ธPart of my primary stack.
Beyond automations, build standalone apps connected to databases and custom backends
โช๏ธOfficial site and docs: lite.xlwings.org
โช๏ธCreated by Felix Zumstein.
๐ ๐ฎ๐๐ฒ๐ฟ๐ถ๐ฎ๐น๐
Go to app.tigzig.com โ xlwings Lite Practice Lab.
Guides, workbooks, apps, instruction file - all there.
Video - 12 Min: youtu.be/rHXte26r3BY
