I am trying to find a way to do the following:
Every week when I'm making my payroll I have a certain amount that I am going to distribute amongs various employees. I have a worksheet where I record the excact number of every bill I have for the payroll.
So for example:
12 - 10 dollar bills
24 - 20 dollar bills
40 - 50 dollar bills
8 - 100 dollar bills
This distribution obviouls changes every week according to what bank gives me.
Now I have a (complex) system that tries to distribute these bills "evenly" among my employees, so that the same proportion of bills tries to get handed down. So if someone is getting paid 380 my program will ask me to give them 1 - 100, 5 - 50, 1 - 20, and 1 - 10. However it is not really efficient, and it is prone to error. I have error checking in place, so I know if a quantity is not correct, that way I can fix it. I was wondering if someone knew of some kind of script that could effectively evenly divide all the bills into the amount needed, or if there was no way to do it, to tell me, that way I would know that I need to try and get some bills changed in order to divy up the payroll.
EDIT: For clarity, when I say program, I mean an excel worksheet. I will upload the worksheet I use. I am ok with a formula based solution, or a VBA based solution. The worksheet has an extra zero on each bill denomination, because it is not actually in dollars. The correct denominations are in the worksheet.
Bookmarks