This tutorial will show you how to separate Excel Data into Workbooks by Column Values. Instead of VBA, we will be using Python and the Pandas Library. The Python code from this tutorial can be a huge time saver. You can apply the code from this tutorial also any other Excel – you just need to tweak it slightly.
- [Enhance] Use pathlib to handle file path locations & to create output directory
- [Bug Fix] Use
fullmatchinstead ofcontains(To prevent partial match, e.g. 'romania' and 'oman')
Explore my tools and templates for Excel, automation, and more.
- YouTube: CodingIsFun
- Website: PythonAndVBA
- LinkedIn: Sven Bosau
- Contact: Get in Touch
If you find this project helpful, consider buying me a coffee.
