
Automate Excel using Python teaches beginners to create workbooks and worksheets, apply read/write operations, styling, formulas, and charts, and extract data from text and multiple sheets into one worksheet.
Identify the software needed to automate Excel with Python, including Python, Openpyxl, pip, and the PyCharm IDE, and learn how to install them step by step.
Install Python 3.8.3 on Windows by running the installer as administrator, selecting the customize installation option, adding Python to environmental variables, and verifying Python and pip versions.
Install openpyxl on Windows by using the pip install openpyxl command in a command prompt after verifying the Python version.
Download PyCharm community version for Windows, install it, reboot, then open PyCharm to create a Python project, select your Python interpreter, and set the project path on the E drive.
Install the PyCharm IDE on Mac by downloading the community edition, dragging it to the applications folder, and launching the app after permission prompts.
Ensure Excel is installed on your PC to participate in this course on automating Excel using Python.
Learn Python basics, a general purpose, interpreted, object oriented scripting language, execute code line by line, and use it in web, data science, and Appium and Selenium automation testing.
Define variables as containers that store values in Python using the assignment operator. Assign ints, floats, and strings without explicit declaration; print and follow naming rules and case sensitivity.
Explore Python data types: numbers, strings, lists, tuples, and dictionaries, and learn to check types with type(), compare mutable lists with immutable tuples, and access dictionary values by keys.
Learn how to cast data types in Python using int(), str(), and float(), converting between float, integer, and string, and exploring list, tuple, and set conversions.
Explore the seven types of operators in Python, including arithmetic, assignment, comparison, logical, identity, membership, and bitwise operators, with practical examples.
Explore the string data type in Python, including single and multi-line strings, and slicing and length. Then learn case conversion, replacement, concatenation, and membership checks with in and not in.
Explore Python list operations, including indexing, slicing, length, updating, appending, inserting, removing, membership checks, iteration, list concatenation, and deletion.
Learn the tuple data type in Python, its immutability compared to lists, and how to access, slice, count duplicates, test membership, iterate, concatenate, and delete tuples.
Explore Python dictionaries: create dictionaries, assign key value pairs, access values by keys, copy dictionaries, update and add entries, iterate keys and values, remove entries, clear dictionaries, and delete dictionaries.
Learn how sets in Python avoid duplicates and are created with curly braces. Explore methods like add, remove, discard, pop, union, and iteration for membership tests.
Master conditional statements in Python, including if, else, and else if, to execute code based on comparisons and logical, identical, and membership operators, with nested examples.
Master how to use a while loop in Python to execute code until a condition is true, including initialization, increment, and control statements like break, continue, and else.
Master for loops in Python to iterate values in lists, tuples, dictionaries, and sets, using else, break, and continue; explore nested loops and printing outputs, with basic error guidance.
Define non-parameterized and parameterized Python functions with def, demonstrate return values, default values, and arbitrary keyword arguments, and show lists, tuples, dictionaries, sets, and print in camel case.
Explore lambda expressions, a small anonymous function that can take any number of arguments but has only one expression, and understand the single-line syntax that adds ten to a value.
Explore packages and modules in Python by creating a package with __init__.py, adding a class with methods, and reusing them via imports and aliases.
Demonstrates defining a Python class with an initialization method, using self to access instance attributes, and calling methods via object creation to manage employee data.
Explore inheritance in Python and oops concepts: access methods and data from one class in another, using initialization and importing employee data to reuse attributes like company without new objects.
The super keyword enables a subclass to call its parent class method when both define a method with the same name, illustrating method resolution and parent data access.
Explore data hiding in Python by using private variables with an underscore and exposing access through a method, preventing outside access while enabling controlled data retrieval.
Understand python decorators that add functionality to code by wrapping a function with an inner function. See how a function is passed as an argument and used with @ syntax.
Learn to automate Excel tasks by creating a workbook and a worksheet with Python using openpyxl, including naming sheets, writing data, and saving the file.
Learn to create a workbook and worksheets, insert sheets at the first or before the last position, rename titles, set background colors, and list sheet names.
Create and populate an Excel workbook with Python using openpyxl by creating a workbook and worksheet, then write data into specific cells such as B2 and C4 before saving.
Learn to write data into multiple Excel cells at once with a for loop in Python. Iterate a range, convert to strings, and append to column a.
Read the Excel file row by row and print non-null values by iterating through each row and cell in the worksheet, then close the workbook.
Learn to read an entire Excel sheet row by row using a for loop, iterate each row and cell, print non-null values, and close the workbook.
Learn to load an Excel workbook in read-only mode with openpyxl, prevent writing to cells, and verify the restriction by attempting a write operation on the worksheet.
Learn to automate Excel with Python by adding comments to a cell using openpyxl's comments class, including text and author, and verifying the result on another sheet.
Learn to style Excel cells with Python by creating a workbook and applying bold, italic, underline, font name, size, and color to text, then save the styled workbook.
Create and apply named styles in Excel using Python by defining a named style with font and border settings, then assign it to cell d5 to apply formatting.
Apply border styles in Excel with Python by defining cell B9, creating thin and double borders in black and red, and applying them to top, bottom, left, and right sides.
Explore applying pattern styles, gradient fills, and alignment to specific cells in Excel using Python, demonstrating foreground colors and text alignment techniques on cells like B14 and B16.
Learn to merge and unmerge cells in Excel using Python by manipulating a workbook and worksheet with the merge_cells and unmerge_cells functions, including start and end row and column parameters.
Learn how to insert images into an Excel file using Python, including importing packages, creating a workbook and worksheet, and using the add image method to place the image in cell d1.
Learn to add formulas to specific cells in a Python-driven Excel workbook, including inserting a sum formula into cell A1 and saving the workbook.
In this course you're going to learn how to automate excel using python.
Coding snippets we have uploaded at the respective video lecture itself.
Below are the topics we are going to cover in this course.
Section-1
Course Introduction
Section-2
Configuration softwares
1. List of softwares required for configuration
Python Installation
Openpyxl : Python Package installation
Pycharm IDE (IDE for writing the code)
Excel
Section-3
Python Basics
Introduction to Python
Variables
Data Types
Type Casting
Operators
String Data Type
List
Tuple
Dictionary
Sets Concepts
Conditional Statements ( if , if else , if elif else etc)
While Loop
For Loop
Different types of functions
Lambda Expressions
Packages and Modules
OOPS - Classes and Objects
Inheritance
Super keyword
Data Hiding
Python Decorators
Section-4
Overview on Workbook and Worksheet
Create Workbook and Worksheet
Overview on Worksheet
Write Operations
Write the data in cells
Write the data in Multiple cells
Read Operations
Read the data from the Excel file.
Read the data row wise.
Access excel file in Read only mode.
Comments in Excel sheet.
Add the comments to the cell.
Add Styles to Excel sheet data.
Part 1: Styles to the text data in Excel sheet : Bold , Italic , Underline , strike the text, Font color , Font size etc.
Part 2 : Named Styles.
Border styles
Pattern Styles
Merge and Unmerge the cells
Add image to excel file.
Add Formulas
Add Formulas to the cell
Copy Formula to other cells
Filter Operations.
Charts
Create Pie Charts
Create 3D Pie Charts
Change Title and Colors for Pie Chart.
Create Bar Chart
Create 3D Bar Chart
Manipulating Worksheet
Deleting Rows and Columns
Inserting Rows and Columns
Data iterating
Iterating Data of Columns and Rows.
Find data with the last column and row in the excel sheet.
Read and Write Operations from different files.
Copy Data from one sheet to another sheet.
Read and write data from text file to excel sheet.
Read data from multiple sheets to a single worksheet.