Power Query Problems

Consolidate Excel Timesheets with Power Query and PivotTables

Adam DavisAdam Davis Nov 14, 2026 869 views

Question details

The user wants to combine monthly instructor timesheets and analyze them by class format, date, time, and instructor.

Consolidate Excel Timesheets with Power Query and PivotTables
Product
Microsoft Excel Power Query and PivotTables
Device & OS
not provided
Scenario
Monthly timesheets have varying filenames, class names, and time formats and need to be consolidated for reporting.
Observed behavior
A standardized, refreshable dataset should feed PivotTables for instructor and class analysis.
Before you start

Check that each workbook has a consistent class-entry table with the same column names, and decide how freestyle classes should be categorized. Put the source workbooks in a dedicated folder and create a reference list of standard class names and known variations.

Solution 1Recommended

Combine standardized timesheets with Power Query

Use this approach to create a refreshable dataset from monthly workbooks and analyze it with PivotTables.

1
Standardize the source tables

In each workbook, select the class-entry range and choose Insert > Table. Use the same table name and column headers for fields such as instructor, class, date, and time; keep unrelated summary and expiration-date sections outside the table.

2
Import the folder

In the reporting workbook, choose Data > Get Data > From File > From Folder, select the timesheet folder, and choose Combine & Transform Data. Select the consistent class-entry table in the sample file.

3
Clean and categorize the data

In Power Query Editor, remove unnecessary rows and columns. Import the class-name reference table and use Home > Merge Queries to match known variations to standard names; retain or separately label freestyle entries according to your reporting rules.

4
Set date and time types

Select the date and time columns and use Transform > Data Type to set the appropriate Date or Time type. If regional formats cause conversion errors, use the column's Data Type > Using Locale option and review any remaining errors.

5
Load and build a PivotTable

Choose Home > Close & Load To and load the result to a table or the Data Model. Select the loaded data and choose Insert > PivotTable, then add class format, date, time, and instructor to the desired Rows, Columns, Filters, or Values areas.

6
Refresh for new months

Add new standardized workbooks to the same source folder, then choose Data > Refresh All in the reporting workbook to update the query and PivotTables.

Combine standardized timesheets with Power Query
Review unmatched class names: A reference-table merge only matches entries covered by its matching rules. Check unmatched names and update the reference list or handle freestyle classes separately.
Free Microsoft Office alternative

Review and analyze timesheets with WPS Spreadsheets

WPS Office is a free, lightweight alternative with a familiar interface for working with Excel files. Open existing timesheets and use spreadsheet and PivotTable tools for analysis; moving files is straightforward, although WPS does not fix Excel Power Query issues and query features may not transfer.

Open and edit Microsoft Excel XLSX and XLS filesAnalyze timesheet data with spreadsheet and PivotTable toolsUse a familiar interface to ease the move from Microsoft OfficeWork with a free, lightweight office suite
microsoft office alternative - wps office

Frequently Asked Questions

Do the timesheet filenames have to match?

No. Power Query can combine files with different names from the same folder, provided the class-entry tables have a consistent structure and can be selected during the combine process.

How can I standardize different names for the same class?

Create a reference table with known variations and their standard names, import it into Power Query, and use Home > Merge Queries to match the timesheet entries. Review unmatched entries before reporting.

What should I do with freestyle classes?

Decide whether freestyle entries need their own category or should retain their individual descriptions. Apply that rule in Power Query or the reference table rather than forcing them into an unrelated standard class.

How do I add a new month's timesheets to the report?

Place the new workbooks in the source folder using the same table structure, then open the reporting workbook and choose Data > Refresh All.

Why are some dates or times showing conversion errors?

The source values may use inconsistent text or regional formats. In Power Query Editor, select the affected column and use Data Type > Using Locale to select a matching type and locale, then inspect any remaining errors.