creating an xlsx (excel file) converter which converts to word documents for ease of reading when attending budget meetings
This script is designed to convert Excel files (xlsx) into Word documents (docx). The primary use case is to facilitate the reading of budget data during meetings. Instead of scrolling through rows and columns of numbers, you can read a well-formatted Word document that presents the data in a more digestible format.
- Installation: Clone this repository to your local machine. Ensure you have Python installed, along with the required libraries. You can install the necessary libraries by running
pip install -r requirements.txt
in your terminal. - Prepare Your Excel File: The script expects an Excel file with specific column headers. Make sure your Excel file is formatted correctly.
- Run the Script: Navigate to the directory containing the script in your terminal. Run the script by typing
python xlsx2docx4budget.py
followed by the name of your Excel file. For example:python xlsx2docx4budget.py budget.xlsx
. - Check the Output: The script will generate a Word document in the same directory. The name of the Word document will be the same as the Excel file, but with a .docx extension.
- Python 3.6 or higher
- pandas
- openpyxl
- python-docx
The Excel file should have the following column headers, in this exact order:
- Project title
- Project description
- Business driver
- Business value
- Business risk
- Budget expense
- Internal hours
- External hours
- Solutions involvement
- Solutions hours
- PMO involvement
- PMO hours
- Total expected hours
We welcome contributions to this project. Please feel free to submit issues and pull requests.
This project is licensed under the MIT License. See the LICENSE file for details.