A class schedule in PDF form is fine to read but awkward to plan around, because it cannot be sorted by room or teacher. Power Query in Excel can import the PDF table directly, and the imported times can then be checked against the PDF row by row.
Prerequisites
- Excel for Microsoft 365 on Windows
- The class schedule PDF (text-based)
- A copy of the source file, so the original stays untouched.
Steps
- In Excel, go to Data, Get Data, From File, From PDF and select the schedule PDF.
- In the Navigator, select the table that holds the schedule and click Transform Data.
- In the Power Query Editor, promote headers, set the start-time column to Time type, and remove blank rows.
- Click Close and Load, then read each class time in the sheet against the same row in the PDF.
- Fix any time that landed in the wrong column, then save the workbook.
Worked example: Fictional primary-school class schedule, autumn term
The practice table below is a fictional five-lesson schedule. The minutes column is the length of each lesson, and the total is the sum of all five. The table below is fictional practice material, with fictional values. It is the expected result, worked out by hand, not a run of any tool.
| Day | Lesson | Room | Minutes |
|---|---|---|---|
| Monday | Maths | Room 4 | 45 |
| Monday | English | Room 4 | 45 |
| Tuesday | Science | Lab 1 | 60 |
| Wednesday | History | Room 2 | 45 |
| Thursday | Art | Room 6 | 90 |
| Total | 285 |
Expected result. The sheet has five lessons, the minutes add to 285, and every lesson time matches the PDF. UNTESTED: no schedule PDF was imported for this guide; the table shows the expected values to check an import against.
Limits
- Power Query From PDF works on text-based PDFs; a scanned schedule needs OCR first.
- Merged header cells in the PDF often import as extra blank rows that must be removed.
