I hope this is where I should put this.
I was asked to help with a project at work involving moving some data from one excel spreadsheet to another, and I could use a little help figuring out how the formula would work or if a macro would be involved. I'll try my best to explain the situation.
There are two different spreadsheets, the first one contains a list of employees, the agents they are assigned to, the agents number, a column listing how many hours of work type A they are required to do and another column listing for work type B. The second spreadsheet also has a list of these employees as well as a column showing an employee assigned to them to help with work type B and the agent with his/her number and how much of work type B.
What I need is a formula/macro that will automatically take the relevant information from the first worksheet and post it on the second. The problem is that some of the agents only have work type A and some only B. The second spreadsheet needs to only have either all work B or a mix of work A and B. It can not have any of the agents that have only work type A.
I know this may sound confusing, but I have tried everything from =if formulas to =hlook statments, and tried a mix of both. Maybe there just isn't a way to do this and I"m fighting a lost cause. Anyone here with mad excel skills that can help out?
Rough mock up.
Worksheet 1
| employee | agent | agent # | work A # | work B # | agent2 | agent2 # | work A # | work B # | agent3 | agent3 # | work A # | work B # | etc....
| employee2 | agent | agent # | work A # | work B # | agent2 | agent2 # | work A # | work B # | agent3 | agent3 # | work A # | work B # | etc....
| employee3 | agent | agent # | work A # | work B # | agent2 | agent2 # | work A # | work B # | agent3 | agent3 # | work A # | work B # | etc....
Worksheet 2
| employee | helper | agent | agent # | work B # | agent2 | agent 2# | work B # | agent3 | agent 3# | work B # | etc...
| employee2 | helper2 | agent | agent # | work B # | agent2 | agent 2# | work B # | agent3 | agent 3# | work B # | etc...
| employee3 | helper3 | agent | agent # | work B # | agent2 | agent 2# | work B # | agent3 | agent 3# | work B # | etc...






