Power Query Problems

How to Combine Employee Timesheets and Calculate Project Billing in Excel

Khadija KhanKhadija Khan Nov 2, 2026 873 views

Question details

A business needs a method to consolidate individual employee timesheets, calculate project hours per pay period, and determine billing based on specific roles.

How to Combine Employee Timesheets and Calculate Project Billing in Excel
Product
Excel
Device & OS
not provided
Scenario
Consolidating multiple timesheet files to generate a unified summary for project billing and payroll calculations.
Observed behavior
Individual timesheet files currently lack sufficient standardized data, such as employee roles and project details, making it difficult to accurately calculate totals across the business.
Before you start

Before combining your timesheets, ensure that all individual files follow a uniform layout and contain necessary columns such as Employee Name, Project, Role, Date, and Hours to ensure smooth data integration.

Solution 1Recommended

Consolidate Timesheets Using Power Query and PivotTables

Use Power Query to automatically combine multiple timesheet files from a single folder and summarize the total hours and billing with a PivotTable.

This method requires placing all employee timesheet workbooks into a dedicated folder. Power Query will read all files simultaneously, and a PivotTable will summarize the consolidated data.

1
Organize Files

Create a dedicated folder on your computer and place all employee timesheet files inside it. Ensure no other files are kept in this directory.

2
Import Folder to Excel

Open a new Excel workbook, go to the Data tab, click Get Data, choose From File, and select From Folder.

3
Combine and Transform

Browse to the folder containing your timesheets, click Open, and then click Combine & Transform Data to merge the files in the Power Query Editor.

4
Load to PivotTable

In the Power Query Editor, verify your columns, click Close & Load To..., and select PivotTable Report.

5
Summarize Billing

In the PivotTable Fields pane, drag 'Project' and 'Role' to the Rows area, and 'Hours' to the Values area to summarize project billing.

Consolidate Timesheets Using Power Query and PivotTables
Tip: Ensure you add a billing rate column in your data model or calculate it within the PivotTable to automatically generate the total billing amounts.
Consolidate Data in WPS Spreadsheet

Manage and Consolidate Timesheets with WPS Office

WPS Spreadsheet offers powerful Data Consolidation and PivotTable features, making it incredibly easy to merge multiple employee timesheets and calculate project billing totals without complex setups.

  1. 1. Prepare Master File: Open WPS Spreadsheet and create a master workbook to collect timesheet data.
  2. 2. Use Data Consolidation: Go to the Data tab and use the Consolidate feature to combine data from multiple open employee timesheet files into one sheet.
  3. 3. Create a PivotTable: Select the consolidated data range, navigate to the Insert tab, and click PivotTable.
  4. 4. Calculate Totals: Use the PivotTable field list to summarize total hours by project and multiply by billing rates to generate final reports.
Free to use with full compatibility for Microsoft Excel (.xlsx) files.Built-in Data Validation to prevent incorrect timesheet entries.Advanced PivotTable features to quickly summarize project hours and billing.Lightweight application that runs smoothly even with large consolidated data sets.
microsoft office alternative - wps office

Frequently Asked Questions

How do I handle employees whose roles change depending on the project?

You should add a dedicated 'Role' or 'Job Position' column for every single entry on the timesheet. This allows the PivotTable to calculate billing correctly based on the specific role performed on that day, rather than assuming a single role for the entire pay period.

Why is my Power Query PivotTable showing incorrect total hours?

This often happens due to missing data validation in the source files. Ensure that employees cannot enter impossible values, such as more than 24 hours in a single day or 336 hours in a two-week pay period.

Can I combine timesheets if they have different column layouts?

While Power Query can handle some variation, it is highly recommended to use an identical timesheet template for all employees. If column headers differ, Power Query may create separate, unmatched columns in the merged dataset.