Macros/VBA to do a loop and insert text

fazilps

New member
Joined
Jun 19, 2014
Messages
1
Reaction score
0
Points
0
I have a sample data set like what I have at work. The file is attached.

The number of orders assisgned needs to be balanced. As in the sample data, some of the orders are already assisgned to a team.
Range J15:L27 determines how many orders have been already assisgned and how many more can be allocated.
What I would require the macros to do is start filling up Column C if it is blank, with the Team Name depending on which which WorkGroup is in column B.

I figured it could be done with one or two loops.
If L16 >0, find the next blank next to Workgroup1 and put "Team A". If L16 =0, move to next team member. Repeat till "To Be Assigned" for each member is 0 or no more orders remaining to be assigned.


I'm not an advanced user of VBA. Just know the basics. Any help would be highly appreciated.

Thanks in advance.
 

Attachments

  • Work Allocation.xlsx
    11.3 KB · Views: 11
Last edited:
Back
Top