General Ledger Template Calculation

lipipe

New Member
Joined
Aug 13, 2011
Messages
40
Hello!
I am trying to automate a General Ledger worksheet. I have created three worksheets. The first is "Payroll Data." This sheet is dynamic and could change each week.

SAMPLE PAYROLL HERE:
pr-data.png



The second sheet is "PROFILES." This sheet contains all the employee numbers, names, and the triggers that indicate the department they get posted too. For example: Employee 010267 has a one (1) under 4080 FABRICATION. This trigger indicates two things: 1. That this person is posted in fabrication, department 1 and this is the multiplier that their salary is divisible by. The reason for this is some people are broken up over all 16 departments so in all the boxes I put a "15" in each so the salary is divided into each. This was the only way I though of that I could build a profile and just tweek this profile sheet to make any changes.

SAMPLE PROFILE HERE:

profiles.png



The third sheet is the "GL-Template" sheet. Starting to the left. You will see each employee number that makes up this department. Next is the GL Account # and then GL Description. Then the debits and credits.

I want to be able to put a formula in the respective debit or credit field that will read all the employees to the left, even if its blank it should sum it up. Some departments have 15 employees, some have 1. I want to formula to be consistent so if an employee is added to the left it automatically looks up the payroll information and does the calculations. An example of what I have done is in "S21". You will see the 1017.50. Which is the gross total of 110013 and 110015, but if I add a third employee or I remove the second. I will get a blank cell.

Here is the formula I used for the 1017.50: =IFERROR((VLOOKUP(A21,'PAYROLL DATA'!$A$4:$AS$162,4,0)/VLOOKUP(A21,PROFILES!$A$6:$TJ$168,33,0))+(VLOOKUP(B21,'PAYROLL DATA'!$A$4:$AS$162,4,0)/VLOOKUP(A21,PROFILES!$A$6:$TJ$168,33,0)),"")

(A little sloppy I think, but I am learning - :confused:)

SAMPLE GL-TEMPLATE HERE:

GL-TEMPLATE.png

Again, I also need it to pick up the "trigger" in the Profiles so that it will divide the number, if necessary.

Any questions or assistance is greatly appreciated!

Jack
 
Last edited:

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
I think I would recommend using helper columns to do the lookups; i.e. move your lookups/formulas for each employee out to column AA+ (or beyond). Z (column of choice) could be a SUMation of those looked up values/formulas.
Then the Debit/Credit cells become simple =If Zrow < 0, If Zrow > 0 formulas.

FYI: Your current formula seems to have a mixed bag of vlookup source cells:: ))+(VLOOKUP(B21,'PAYROLL DATA'!$A$4:$AS$162,4,0)/VLOOKUP(A21,PROFILES!$A$6:$TJ$168,33,0)),"")
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,728
Members
452,939
Latest member
WCrawford

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