VBA Assigning workload evening to available users

Status
Not open for further replies.

Thomasray123

New Member
Joined
Apr 30, 2019
Messages
3
Hello,


I'm trying to work on creating a spreadsheet that will automatically assign cases to available users evenly (Assigned user goes in column A)


For the attached example I have 217 cases and 13 available users. I need items assigned out as a priority as follows:




Cases with "Late Stage" in column M should be assigned to the case owner if they are listed as an available user.
Cases with amounts over $500 should be assigned to the case owner if they are listed as an available user.
(I'd like to be able to add one more priority at later time-- so say if column L says "Placeholder") should be assigned to the case owner if they are listed as an available user.


No available user should have more than another user EXCEPT all cases with the same customer need to be assigned to the same user. This is where I'm having trouble. Right now in the example User 9 would get assigned the large group of cases for "Jim Bob Johnson 38" if he was an available user but if he isn't the cases get divided out regardless of the fact they're for the same customer.


The macro also doesn't assign out the whole list as it stops with some remaining. I would be very appreciative if someone could help me tweak it to fit these specifications!


http://s000.tinyupload.com/?file_id=91286213504681845365
 

Some videos you may like

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
46,339
Office Version
  1. 365
Platform
  1. Windows
Duplicate https://www.mrexcel.com/forum/excel...d-available-employees-following-priority.html

Please do not post the same question multiple times. All clarifications, follow-ups, and bumps should be posted back to the original thread.
Per forum rules, posts of a duplicate nature will be locked or deleted (rule 12 here: Forum Rules).

If you do not receive a response, you can "bump" it by replying to it again, though we advise you to wait 24 hours before doing and not to bump a thread more than once a day.

 
Status
Not open for further replies.

Watch MrExcel Video

Forum statistics

Threads
1,109,011
Messages
5,526,263
Members
409,689
Latest member
martin_br

This Week's Hot Topics

Top