Portfolio › Case Study · HR Operations

Payroll Reporting Pipeline

A non-profit educational organization needed a more efficient way to turn employee attendance records into payroll figures and follow-up lists for managers. Every two weeks, this required combining three separate exports containing attendance punches, employee schedules and HRIS information. I created and automated an Excel reporting pipeline using Power Query to bring these files together, calculate employee hours and pay, and produce payroll reports and manager follow-up lists.

Sample 66 employees
Inputs 493 attendance records, 280 schedule records, 70 employee records
Tools Excel, Power Query

The short version

I created an automated payroll reporting process that combines three different employee data exports into one workbook. The process matches attendance records to scheduled shifts, adjusts punch times, calculates regular and overtime hours, flags attendance exceptions and produces employee gross pay summaries. It also generates lists managers can use to follow up on missed punches and other attendance issues. All of these issues are then combined into one follow-up list with a single row per employee, so a manager can resolve everything about an employee in one conversation.

The problem

Every two weeks, preparing payroll reports involved combining three separate exports. One contained employee attendance punches, another contained scheduled shifts, and the third contained employee information and pay rates.

The files had different structures and needed to be brought together before payroll figures could be calculated. Someone had to match attendance records to employee schedules, check punch times, calculate hours, identify exceptions and prepare the payroll figures. This took considerable time and effort, and the same work had to be repeated for every pay period.

There was also a review process before payroll could be finalized. Missed punches, absences, attendance exceptions and overtime needed to be identified so managers could confirm or approve the relevant items.

I wanted to automate the repetitive data processing and reporting while giving managers a clear way to review attendance issues before the final payroll figures were submitted.

What I built

I designed the reporting process and automated it in Excel using Power Query. The workbook reads three files from separate source folders: an attendance export containing employee punches, a schedule export containing scheduled shifts, and an HRIS export containing employee details and pay rates.

Combining the data

I started by matching each attendance record to the employee's scheduled shift for that day. To do this, I extracted the day of the week from each attendance date and joined the record to the corresponding employee schedule.

I then applied a 15-minute adjustment rule. Punches within 15 minutes of the scheduled start or end time were aligned to the scheduled time, while larger differences were retained. This produced adjusted check-in and check-out times for calculating paid hours.

Calculating hours and identifying exceptions

Next, I calculated paid hours from the adjusted attendance times and flagged records that required attention. These included late arrivals, early arrivals, late departures, early departures, unscheduled punches and missed punches. A record could have more than one exception.

I then joined the HRIS data to add employee names, departments, employment status and pay rates. This meant that the resulting reports could identify employees by name and department rather than relying on employee IDs alone.

Generating the reports

The workbook produces six payroll and attendance reports:

  • Missed Punch List: Identifies attendance records with a missing check-in or check-out.
  • Exception List: Lists shifts where the punched times differ from the schedule by more than 15 minutes, or where the employee punched in on an unscheduled day. Hours are still calculated from the punched times.
  • Weekly Hours: Summarizes employee hours by workweek, separating regular hours from overtime.
  • Overtime List: Identifies employees who exceeded 44 hours in a workweek.
  • Absence List: Identifies scheduled shifts with no matching attendance record.
  • Employee Summary: Consolidates each employee's days worked, total hours, regular hours, overtime hours, pay rate and calculated gross pay. This is the report submitted to payroll after attendance review is complete.
Power Query steps for the Absence List query

The Absence List query in Power Query. Each step is named for what it does.

Employee Summary sheet showing hours, overtime and gross pay for each employee

The Employee Summary sheet.

The workbook calculates overtime after 44 hours in a week, at 1.5 times the employee's regular rate. Gross pay combines regular earnings and overtime earnings.

Attendance review and payroll finalization

Alongside these six reports, I created a seventh output: a consolidated Follow-Up List. It brings missed punches, attendance exceptions, absences and overtime together in one row per employee.

Each row includes the number of issues in each category, overtime hours, a total issue count and the dates associated with the flagged records. Employees are sorted by total issue count, making it easier for managers to identify who needs attention.

Follow-up list with one row per employee showing counts of each issue, a total and the dates

The follow-up list a manager works from. It rebuilds on every refresh.

After managers review the list and make any necessary corrections to attendance records, the workbook is refreshed again. All reports recalculate using the updated information, and the revised Employee Summary is submitted to payroll.

Power Query steps for the follow-up list query

The follow-up list query in Power Query, from stacking the four lists to the final sort.

Materials