Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Python Office Automation: Spreadsheets, Files and Reports
New

Python Office Automation: Spreadsheets, Files and Reports

Automate spreadsheet chores with beginner Python: read, check and combine .xlsx files, rename files, build reports.
Last updated 11/2026
English
English

What you'll learn

  • Write and run short Python scripts using variables, lists, dictionaries, loops, if and f-strings
  • Read workbooks with openpyxl and check TOTAL rows against the rows above them
  • Create formatted .xlsx files with number formats, SUM formulas, highlighting and charts
  • Read messy sheets with pandas: title rows, TOTAL rows, blank rows and stray spaces
  • Combine many monthly workbooks into one table and summary, and split a table into one file per group
  • Rename and organise files safely with pathlib: dry run first, copy, never overwrite
  • Produce email-ready text summaries, chart images and a one-page PDF report
  • Check every result (total two ways, counts, spot-check) and fix common errors

Course content

6 sections • 23 lectures • 30m total length
  • Welcome: five office chores we will automate1:48
  • Set up and run your first script1:31
  • Python basics you actually need2:08

Requirements

  • No programming experience needed
  • A Windows, Mac or Linux computer
  • Free Python 3 plus pandas, openpyxl and matplotlib, installed with one command shown in the Setup Guide
  • Any spreadsheet program to view results: free LibreOffice Calc (used in the videos), Microsoft Excel, or Google Sheets
  • The practice files, included in the course resources

Description

This course contains the use of artificial intelligence.


Stop doing the same spreadsheet chore every week.


Copying numbers from monthly files into one summary. Checking that a total row is right. Renaming a folder of badly named files. Building the same small report again. These chores eat hours, and Python can do them in seconds. This course shows you how, from zero, with short scripts you can read and adapt.


Learn on realistic files from one small business

Every lesson uses practice files from Harbour Lane Bakery, a fictional Sydney bakery with three market stalls: 18 monthly workbooks with real-world quirks (title rows, TOTAL rows, a blank row, a header with a stray space), 24 invoice files with messy names, and a staff-hours workbook. You will:


  • run Python scripts and learn just enough Python: variables, lists, dictionaries, loops, if and f-strings

  • read workbooks cell by cell with openpyxl, and check a TOTAL row against the rows above it

  • create formatted workbooks with bold headers, number formats, SUM formulas, highlighting and a bar chart

  • read messy sheets with pandas and combine 18 monthly workbooks into one table and summary

  • check combined results three ways before anyone uses them

  • rename 24 files safely: dry run first, then copy into a new folder, never overwrite

  • write email-ready text summaries, chart images and a one-page PDF

  • split one table into one file per group, build an invoice register, and audit every workbook for problems

  • read common error messages, and catch a silent mistake that doubles a total


Honest note: no Excel needed, and none shown

Python creates and reads standard .xlsx files. In the videos, the files are opened in LibreOffice Calc, which is free. The same files open in Microsoft Excel or Google Sheets, but Excel itself is never shown, and menus and colours look different there. Formulas written by Python are calculated by whichever spreadsheet program opens the file.


Watch real scripts run, then practise

Every demonstration is a real screen recording (91 live demonstrations) of code typed and run in a terminal or Python session, and of the resulting files opened in LibreOffice. Most lessons have a worksheet (63 tasks in total) and an answer key with the code and its exact output. Key numbers were checked against an independent calculation before release. All 12 finished scripts are included.


Short and practical

23 lectures, about 31 minutes of video, including three small projects. All tools are free: Python, openpyxl, pandas, matplotlib, and any spreadsheet program to view the results.


How AI was used to make this course

The narration is a synthetic text-to-speech voice (Kokoro-82M); it is not a recording of a real person. Scripts, slides and worksheets were drafted with AI assistance, and every result was produced by really running the code. Captions match the narration word for word. No AI-generated video is used. One lesson shows how to use AI assistants to draft scripts, and why you must check their results.


What this course is not

It is not a Microsoft Excel course, a VBA or macros course, or a full Python programming course. It does not cover Excel-only features, emailing or scheduling scripts automatically, or web automation. It does not promise a job, a salary or any time savings for your specific work. The practice data is fictional.


Watch the free preview lessons, and automate your first chore today.

Who this course is for:

  • Office, admin and operations staff who handle the same spreadsheets and files every week
  • Spreadsheet users who want to try Python on real office tasks
  • Small-business owners and staff who combine reports from several branches or months
  • Not for: experienced Python developers, or people looking for Excel formulas, VBA or macros