
Check out my student Facebook Group...
It's a great place to get fast support for this course from me, to interact with other students, to post your projects and code, and to access course announcements and extras...
Join Now!
https://www.facebook.com/groups/codemycom/
Download and install Python from the website, choose the 32-bit version, and add Python to the path to run it from anywhere. Avoid Anaconda or Jupyter Notebook for this course.
Set up a dedicated Python virtual environment for your project, using python -m venv and activating it across platforms, to prepare for using openpyxl to work with Excel files.
Install the OpenPyXL library via pip in your virtual environment from the command prompt. Verify the installation with pip freeze and keep the dependencies isolated to the virtual environment.
Learn to pull large data from an Excel sheet using Python and OpenPyXL by grabbing entire columns or rows. Iterate over cells to access values and print results.
Learn to grab a specific cell range with Python slices and colons, navigate the resulting tuple of tuples with nested loops, and prepare for iterating columns and rows.
Learn to iterate through rows and columns in a worksheet using the rows and columns functions, with min_row, max_row, min_col, and max_col, and optional values_only for clean data.
Explore iterating through columns in openpyxl, compare it to rows, set min and max columns, and extract data such as names and favorite colors; prepares for saving changes.
Change a cell value in a worksheet and save the workbook as a new file using absolute or relative paths. The lesson covers workbook versus worksheet and optional save confirmation.
Learn the second method in openpyxl to add multiple cells by looping through rows, starting at a designated row and assigning values with the start cell function and dot value.
Create a new spreadsheet workbook with Python, add headers, populate columns one and two with names and colors using loops, then save the file.
Learn to style cells in openpyxl by changing font, size, color, bold, and italics for a selected cell, using hex color codes and the openpyxl.styles font function.
Illuminate the two-step process to add borders in a spreadsheet with openpyxl: define a border with sides and color, then apply it to cells and save, handling style validation.
Learn to create a pie chart in Excel using Python and OpenPyXL, including 2D and 3D charts, with labels, data ranges, and placing the chart on the worksheet.
Create a basic line chart and a 3d line chart in a spreadsheet using Python with openpyxl. Explore the available chart types and how to tweak colors and options.
Unlock lifetime access to 60 plus courses, including Python and Excel programming with openpyxl, at a $49 one-time price with a Udemy coupon and access to a book library.
In this course you'll learn how to use the OpenPyXL Library for Python to connect your Python programs to Excel and vice versa.
Using OpenPyXL, you can use Python to do all sorts of cool things in Excel; from creating spreadsheets from your code, to updating existing spreadsheets. You'll be able to load data from a spreadsheet into your python program and do anything you want with it, and then save it back to the spreadsheet.
We'll learn how to style spreadsheets using Python, and also how to make basic charts and graphs in a spreadsheet using Python.
You'll learn...
- Install Python
- Install Sublime Text and Git Bash Terminal
- Set up a Virtual Environment
- Install OpenPyXL
- Create a First Python Program
- Load an Excel Spreadsheet Workbook into a Python Program
- Grab a Spreadsheet Cell Programatically
- Grab whole Columns and Rows from a Spreadsheet with Python
- Change the Data in your Spreadsheet using Python
- Save Changed Spreadsheets from your Python Program
- How to Loop Though A Spreadsheet programatically with Python
- Learn How To Create an Excel Spreadsheet from scratch with Python
- Use Excel Formulas in your Python Code
- Change The Font color, size, boldness, italics and more With Python
- Add Borders to Cells in your Spreadsheet with Python
- Create Pie Charts With Python
- Create Bar Charts With Python
- Create Line Charts With Python
- and More!
At the end of this course you'll be able to use Python to do all sorts of fun things with Spreadsheets, all from your python programs!
See you inside!
- John Elder