Hi y'all,
I’m hoping someone will be able to help me.
I'm assuming I need a macro for this so obviously let me know if there's another way.
I've attached two files. One with the expected result and one without. I'll try and be as clear as I can. The relevant data for the macro is in the 'Data' sheet. There is the staff member name in column A and the team code in column C. The team code then relates to the table starting in A1 which gives the managers name in column B next to the team code. The other sheets in the workbook are split in to teams named as per the manager's name.
The managers name may change and the teams that different staff are in may also change and there also be varying number of staff. The data is pasted from other workbooks and there are duplicates of the name.
I need the macro to copy and paste the names of the different staff members into cell A5 downwards on the relevant teams. It would also need to remove duplicate names. So for example, Name 01 at the top is in team 3, referencing the table at the top in A1:B6 shows that team 3 manager is Craig so this then needs to copied to the ‘Craig’.
Does all this make sense? You’ll see I’ve already populated the formula’s for columns B:D in the separate team sheets SUM based on names in column A, it just needs them to populate.
I hope this all makes sense and isn’t too difficult to do. Please let me know if you need me to clarify anything.
Thank you in advance.
Bookmarks