Course description

If you spend hours each month copying exports into Excel, fixing the same messy columns, doing the same lookups and rebuilding the same report, this course shows you how to hand that work to Python. You'll use pandas to read, clean and summarise your spreadsheets and openpyxl to write report workbooks with the formatting, tables and charts your colleagues expect.

There are 10 sections and 50 written lessons. Every idea is explained in Excel terms first: merge is your VLOOKUP, groupby is your SUMIFS, pivot_table is your pivot table. You follow Chantelle, a finance and reporting assistant at a fictional catering supplies wholesaler in Wolverhampton, as she automates her monthly sales report, from six messy sales exports to a formatted workbook with checks that prove the totals. Each section has a practice pack with fictional sales, expense and timesheet data, starter scripts to complete, solution scripts, the output each solution prints and a one-page cheat sheet.


What you'll learn

  • Getting set up: installing Python, pandas and openpyxl from python.org on Windows or a Mac, a project folder and script template, a quick Python refresher in spreadsheet terms, and when to use pandas or openpyxl.
  • Reading spreadsheets into pandas: read_excel and read_csv, UK dates, looking at a table the way you would in Excel, messy exports with title and totals rows, and reading every sheet or a whole folder of workbooks at once.
  • Everyday Excel tasks in pandas: choosing columns and rows, filtering like AutoFilter, sorting and ranking, calculated columns with rounding and IF, and text and date columns.
  • Lookups, totals and pivot tables: merge in place of VLOOKUP and XLOOKUP, checking a lookup for missing matches, groupby in place of SUMIFS and COUNTIFS, and pivot_table.
  • Cleaning spreadsheet data: blanks, numbers stored as text, dates in every format, duplicates and untidy names, and a cleaning function that turns six months of exports into one clean file.
  • Writing Excel files with pandas: to_excel, several sheets with ExcelWriter, adding a sheet to an existing workbook, one workbook per region and safe file names.
  • openpyxl: working cell by cell: opening workbooks, reading form-style timesheets, writing values and formulas, inserting rows and copying sheets, and filling in a template.
  • Making reports look professional: fonts, fills and borders, number formats and column widths, conditional formatting, Excel tables and drop-down lists, and bar and line charts.
  • Automating the whole report: planning from your Excel steps, a tidy script with settings and functions, checks that reconcile totals, running a report without opening IDLE, and sharing a script.
  • Final projects and next steps: building a full monthly sales pack from six raw exports, then an expenses and hours workbook with checks, and how to keep your scripts useful.


Who it's for

Office workers, analysts and bookkeepers who know Excel well and the basics of Python, and want to stop doing the same spreadsheet jobs by hand. You should be able to write a simple Python script with lists, loops and functions; lesson 1.4 gives a short refresher before the course moves on to pandas and openpyxl.


What this course is, and isn't

This is a practical course about automating spreadsheet work with Python scripts that run in IDLE or the terminal, on Windows or a Mac. It isn't a beginners' Python course, and it doesn't cover Excel macros, notebooks or databases. All you install is Python from python.org and the free pandas and openpyxl packages.

What will I learn?

  • Install Python, pandas and openpyxl on Windows or a Mac and run scripts that always find their data
  • Read workbooks and CSV files into pandas, including messy exports with title rows, totals and blank rows
  • Do everyday Excel jobs in pandas: filtering, sorting, calculated columns, text and dates
  • Replace VLOOKUP, SUMIFS and pivot tables with merge, groupby and pivot_table, and check the results
  • Clean text numbers, mixed date formats, duplicates and untidy names, then combine months of exports into one file
  • Write tables to Excel with pandas: several sheets, appending a sheet and one workbook per region
  • Read and write cells with openpyxl, including form-style timesheets and a template workbook
  • Format reports with fonts, number formats, conditional formatting, Excel tables, drop-down lists and charts
  • Turn a monthly report into one script with settings, checks that reconcile totals and a log, and share it with colleagues

Requirements

  • You should know basic Python: variables, lists, loops, if and functions, and how to run a script; lesson 1.4 gives a short refresher
  • You should be comfortable with Excel, including lookups, SUMIFS and pivot tables, as the course explains pandas in those terms
  • A Windows PC or Mac where you can install Python 3.12 or newer from python.org and the free pandas and openpyxl packages
  • Excel, or another spreadsheet program, to open the workbooks your scripts create

Frequently asked questions

It's for office workers, analysts and bookkeepers who spend hours in Excel and know the basics of Python. If you've never written any Python, take a beginners' Python course first; this one starts with a short refresher and then goes straight to spreadsheets.

Python 3.12 or newer from python.org, plus the free pandas and openpyxl packages, which you add with one pip command. Lesson 1.2 walks you through it on Windows and on a Mac.

You need Excel or another spreadsheet program to open the workbooks your scripts save. Python opens and saves the files itself, so Excel doesn't need to be open while a script runs.

No. Everything is done with Python scripts, which work on Windows and Mac, can process many workbooks at once and can run without anyone opening Excel.

Yes. Every section has a practice pack with fictional sales, expense and timesheet data, starter scripts with TODO steps, full solution scripts, the output each solution prints and a one-page cheat sheet.

No. Every lesson is written, with code you can copy, the output it gives and a short exercise, so you can work at your own pace.

You get lifetime access, including any lessons we add later.

Yes. You can ask for a refund within 14 days of buying if you've completed less than 30% of the course. Email support@rootlet.co.uk.
Python for Excel Users: Automate Your Spreadsheets and Reports

£34.99

Lectures

60

Skill level

Intermediate

Expiry period

Lifetime

Certificate

Yes

✓ 14-day money-back guarantee if you have completed less than 30% of the course. Refund policy

✓ Secure card payment by Stripe

✓ Questions before you buy? support@rootlet.co.uk

Sold by Rootlet Academy Ltd, a UK company (no. 17529179).

Share this course

Related courses

Learn something new every week

One short, practical tip each Thursday, plus news when new courses open. Free, and you can unsubscribe in one click.

We'll never share your email. See our privacy policy.