Power Query to automate payroll entry

egspen2

New Member
Joined
Apr 22, 2024
Messages
9
Office Version
  1. 365
Platform
  1. Windows
I am a fractional CFO who is familiar with Power Query and its capabilities but have not been able to apply it in practice. One opportunity I see for PQ is to automate a monthly payroll entry I have to make to "close the books" for multiple clients. The client has many departments and close to 100 different pay codes on any given check run, all of which need to be mapped to unique general ledger accounts to create the monthly journal entry. The source data for this entry from the payroll system is formatted consistently each month but the process is currently very manual (takes 3 - 5 hours per month). Below is the current process:

1) Download monthly payroll journal detail from payroll system (screenshot example of original source data below - red text indicates the different pay codes referenced in the next step):
View attachment 110376
2) Manually insert columns to add up different pay codes into one amount (for example, Regular, Overtime, and PTO pay have to be added into one manually created "wages" field; multiple different types of bonuses have to be added into one "Bonus" field, etc, etc. (wage example screenshot below). In this example, columns R - AF are added up in to "total Payroll wages", column AG.

1713875953805.png


3) Via SUMIFS, each unique Wage / department combo is mapped to a template with general ledger account numbers / accounts. For example, all "General Administration" employee wage amounts from the screenshot above are added together via SUMIFS and mapped to one general ledger account (note that totals in the screenshot below don't tie to totals above - only shown for example).

1713876253043.png


4) Once all accounts in the mapping template in screenshot 3 above are populated and verified to be accurate / complete, the entry is complete and uploaded to our general ledger system.

The above steps are what I'm hoping to automate via Power Query, such that I create the steps and then am able to quickly refresh month after month with new payroll data
 

Attachments

  • 1713875909193.png
    1713875909193.png
    62.7 KB · Views: 24

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.

Forum statistics

Threads
1,224,828
Messages
6,181,212
Members
453,023
Latest member
alabaz

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top