
Explore Python's origins, core features, and versatility as a general-purpose, high-level, interpreted language with easy syntax and rich libraries for AI, ML, data science, web development, and more.
Explore how variables work in Python, including declaring and initializing, printing values, and understanding undefined variables, global versus local scope, and variable examples.
Discover how to define and call functions in Python using def, explore parameters and arguments, and see how functions improve code reusability and readability.
Learn how Python lists are mutable data structures that store values, act as an array alternative, and offer indexing, nesting, concatenation, repetition, and membership checks with in and not in.
Master the dictionary data structure in Python by learning key-value pair storage, mutability, a fixed order, and accessing items by key, plus creating dictionaries.
Explore the Openpyxl library to read, write, and automate Excel files with Python. Learn how to install, create workbooks, access cells, save changes, and integrate Excel tasks into VS Code.
Explore how to work with Excel using Python by installing openpyxl and other libraries. Create basic Excel files, insert data, and apply formulas using Python.
Learn the basics of Microsoft Excel as a desktop tool for organizing and analyzing data, performing formulas, sorting, and visualizing results with charts, while Python enables data work in workbooks.
Explore popular Python libraries for Excel, with a focus on openpyxl, showing installation, creating and manipulating Excel files, inserting data, and loading data for console output.
Install and verify Openpyxl for Python by updating pip and running pip install openpyxl. Import the library in a Python file and test with a simple hello world script.
Import the open by Excel library, create a workbook, activate a sheet, append a data list, and save the workbook as test.xlsx to create an Excel file with data.
Load an existing Excel file with openpyxl, access a cell value such as A1 on a chosen sheet, and print or insert data with Python.
Explore creating a workbook and sheet, inserting data into cells from lists or loops, fetching data, applying formulas, adding comments, and saving or loading Excel files with Python.
Create a workbook with openpyxl, activate and rename the current sheet, insert values by cell address, and save the file as an xlsx.
Create and manage multiple sheets in an openpyxl workbook, name sheets, populate cells across sheets, and save as an xlsx file.
Learn to insert data into an Excel cell by row and column from a Python script using VS Code, loading a workbook, activating a sheet, writing the value, and saving.
Insert data into Excel cells using openpyxl by creating a workbook, activating the current sheet, writing values and formulas, saving the file, and iterating with for loops.
Learn to access Excel cell data with Python and openpyxl by loading a workbook, selecting a sheet, and retrieving a cell value using row and column indices.
Learn to access cell data in an Excel file with Python openpyxl by targeting a sheet, using a range and list comprehension to extract row or column values as lists.
Explore iterating through all cells in a sheet with Openpyxl by loading a workbook in Python, selecting the active sheet, and using iter_rows with values to print non-empty data.
Learn to access cell data in python by loading a workbook, targeting a sheet with coordinates, using the value attribute, and printing values like A1.
Access and iterate a 2x2 range of Excel cells with Python using openpyxl, slicing ranges like A1:B2 and A4:B5 to read and print cell values.
Load a created Excel file with Openpyxl, access the active sheet, and iterate rows using minimum_row and values_only to extract fields like name, age, and city.
Import openpyxl and its comments module, create a comment object, attach it to a specific cell, and save the workbook to display the comment in Excel.
Save changes in an openpyxl workbook by calling the workbook save method, ensuring edits persist in the same file. If you don't save, data is lost.
Learn to interact with Excel using Python and openpyxl to insert data and images, merge and unmerge cells, and format text with font, italic, underline, alignment, borders, and colors.
Learn to insert images into Excel cells with Openpyxl in Python, embedding from files or URLs, resizing, and placing multiple images using the add_image method.
Learn how to merge and unmerge cells in Excel using openpyxl, including merging ranges like E1 to I1, saving workbooks, and applying row- and column-wise data presentation techniques.
Format text in Excel with Python using the openpyxl font class to set name, bold, italic, underline, strike, color, and size for cells such as A1 and A2.
Learn how to control text alignment in Excel using Python, mastering horizontal and vertical alignment, wrap text, shrink to fit, indent, justify, and reading order for clean spreadsheets.
Learn how to apply borders to individual cells in Excel using Python and openpyxl, including left, right, top, and bottom borders with various styles and colors.
Set a cell background color in excel with python by using the pattern fill class from the style module, creating a pattern fill object, and applying a hex color.
Explore chapter four of openpyxl for excel interaction using python, covering read-only and write-only modes, and integrating pandas and numpy to analyze and manipulate excel data.
Open Excel files in read only mode with openpyxl to read data without modification, using read_only true to prevent writing and improve memory usage.
Learn to use write-only mode with openpyxl to write and append data to a new Excel file without reading existing data, saving the workbook and improving memory usage and performance.
Use pandas with openpyxl to read an Excel file into a dataframe, compute the sum and mean of a numerical column like age, and store results in D1 and D2.
Explore using numpy with openpyxl to analyze an excel column: read age values, convert to a numpy array, compute sum and mean, and write results to specific cells, then save.
Explore chapter five of Excel data analysis with Python, using Openpyxl to create charts from data, including column, bar, line, area, and bubble charts, and enhance Excel interactions.
Create a column chart in Excel with openpyxl by loading a workbook, extracting data, creating a column chart, configuring data and categories references, and embedding the chart in the worksheet.
Learn to create a bar chart in Excel with Python using Openpyxl, including importing the bar chart class, extracting data, setting data and category references, and saving the workbook.
Create a line chart in Excel with Python using openpyxl by loading data, configuring a line chart object, and adding it to the worksheet.
Create an area chart in Excel using Openpyxl by loading an existing workbook, activating the sheet, extracting data, and configuring title, data, and categories; then save the workbook.
Create a bubble chart in Excel using Python and openpyxl by loading data from an Excel file, iterating rows, and configuring a bubble chart with three columns.
Use Python with openpyxl to interact with Excel, inserting and accessing data and performing operations. Apply conditional formatting to highlight cells by value, range, attendance, and grades for data analysis.
Highlight cells in Excel using openpyxl by applying PatternFill to values greater than a threshold, iterating specified min_row, max_row, min_col, max_col, and saving the workbook.
Show how to highlight equal values in Excel with Python by loading a workbook, iterating a range, applying pattern fill and italic or bold formatting, and saving the workbook.
Apply conditional formatting for between values in Excel using Python to highlight cells with values from 11 to 19 (10–20 range), and customize fonts, colors, and styles.
Learn to highlight the first records in an Excel file using the openpyxl library by iterating rows, applying a green fill to targeted cells, and saving the workbook.
Master conditional formatting to highlight the last n records in an Excel sheet with Python and Openpyxl by computing total rows and applying a range from A to D.
learn to automate Excel attendance tasks with Python by highlighting absent students in a spreadsheet, using code to load, iterate rows, apply conditional formatting, and save results.
Explore using Python in VS Code to highlight pass and fail students in an Excel file, applying conditional formatting and color codes to specific columns.
Highlight marks below the passing threshold in an Excel sheet using Python, iterating columns D to I and handling numeric versus string data to mark fails.
Introduction to MS Excel Automation | Excel Data Analysis with Python
I’m thrilled to share something that can completely change the way you work with Excel. In today’s fast-paced, data-driven world, Python programming is not just a nice-to-have skill — it’s essential. If you’ve ever felt stuck doing the same Excel tasks over and over again, this course is designed to free you from that cycle.
Instead of spending hours on repetitive tasks, imagine running a simple Python script and letting automation handle everything for you — formulas, formatting, charts, conditional logic, sorting, filtering, and more. That’s not just productivity, that’s transformation.
This course is your bridge between Excel and Python, empowering you to think like a programmer and act like a true data professional. Whether you are an accountant, a student, a beginner in data science, or someone simply tired of repetitive Excel work, this course will give you the confidence to step into the world of Python data analysis.
Why Take This Course?
Because it’s not just about learning Excel or Python — it’s about learning to save time, work smarter, and unlock career opportunities. By the end of this course, you’ll look back at your old way of working in Excel and wonder why you didn’t start sooner.
If Angela Yu can inspire millions to start mastering Python, you can take this as your first step into Python for data analysis, Python for finance, and even broader fields like data science and machine learning (NumPy, Pandas, SciPy, Matplotlib). This course is 100% beginner-friendly, yet powerful enough to give you real-world skills that matter.
Course Purpose
The purpose of this course is simple: make Excel smarter with Python Coding.
You’ll learn how to:
Automate Excel spreadsheets step by step with openpyxl
Create and manipulate workbooks and sheets with Python
Apply formatting, formulas, charts, and conditional logic programmatically
Save hours of manual work by mastering Excel automation
Course Outline
Introduction to Excel & Python – Why Python for Excel, installing openpyxl
Workbooks & Sheets – Create, read, write, and protect Excel files
Formatting & Styling – Fonts, borders, colors, merging/unmerging cells
Charts in Excel – Automate bar, line, pie, bubble, and area charts
Conditional Formatting – Rules for greater than, top 5, last 5, and more
Formulas & Validation – Insert formulas, secure files, validate input
Sorting, Filtering, Tables – Automating Excel’s most-used features
Who Is This Course For?
Students exploring Python programming for productivity
Data analysts, accountants, and professionals who rely on Excel
Beginners eager to learn Excel automation as a first step into data science
Anyone tired of repetitive Excel tasks and looking to save time with automation
Final Words
This is not just another Excel tutorial. This is a mindset shift — from doing things the slow way to working smartly with Python. By enrolling, you’re not only learning automation, you’re building confidence, opening doors to data analysis, data science, and Python for finance, and taking the first step towards mastering tools like NumPy, Pandas, Matplotlib, and SciPy down the road.
Stop wasting time on repetitive work.
Enroll today and turn Excel into a powerful, automated data analysis tool with Python!
— Faisal Zamir