0Pricing
Python Academy · Lesson

Reading Workbooks

Open and read Excel files.

Excel from Python

openpyxl is the standard library for reading and writing modern Excel files (the .xlsx format). It lets Python automate spreadsheet tasks that people otherwise do by hand.

This lesson focuses on opening files and reading their contents.

The Workbook Model

Excel files have a clear hierarchy that openpyxl mirrors:

  • Workbook the whole file
  • Worksheet one tab inside it
  • Cell a single A1-style box with a value

You navigate from workbook to worksheet to cell.

All lessons in this course

  1. Reading Workbooks
  2. Writing and Styling Cells
  3. Formulas and Charts
  4. Batch Processing Reports
← Back to Python Academy