I own a small company that completes home electronics installations. I started learning some minor VBA a couple years ago to assist my wife in the payroll process. Since then Macros have become an important part of how we complete the process. About a month ago I decided to take the time to revamp some of the macros since I feel a little more comfortable with it now days.
Just as I suspected, there where numerous things I immediately spotted that we could improve on. From basic stuff like turning off screen updating to more advanced things like merging multiple files in a folder to 1 "Master Invoice".
Ive re worked everything pretty well up to the last, most important, step which is inputting the payout values of each employee by job type and pay tier. Over the years we've hired quit a few new guys from various states with varying skill levels. Leaving me with about 12 different pay tier options.
Currently the wife uses 12 different macros to filter down to the job type and hard input these prices. Which leaves a lot of room for error and a lot of time to do it.
My initial thought was to make a table containing all the different pay tiers and job types with the product types(Since we get paid different amount for the same part on different job types)
New Install Former Install service Call Upgrade
Pay Tiers p1 p2 p3 p4 p1 p2 p3 p4 p1 p2 p3 p4 p1 p2 p3 p4
Tier1
Tier2 PRICES HERE
Tier3
etc.
but I cant figure out how to do the lookup on these prices. Ive looked for 3 days and the closest i can get is using an INDEX/MATCH formula but im still a variable short on that
something like
Next I thought it would be better If I broke it into individual tables. Which I think may be the best option( i.e. PayTiers(New Install), PayTiers(Former Install), etc.![]()
Please Login or Register to view this content.
To sum it all up my new "Master Invoice" contains the following columns
Markets - Job# - TechID - JobType - ProductType - PayOut(BLANK) - PayTier
So I need to somehow find the prices for the PayOut column where the PayTier matches the JobType and the ProductType
Any assistance would be greatly appreciated, I'm loosing sleep and hair on this one
Attached is a strippped down version of my file since i cant have customer and employee info floating around.
Bookmarks