
You will need a macro to perform the following:
- Sort Candidates and Position by Role/Spe
- Create a temporary worksheet to hold intermediate results
- In an outer loop, select the next candidate
- -In an inner loop, find the first Position row that matches Role/Spe
-
- -Add both Candidates and Position row numbers to next row in temporary worksheet
-
- -Repeat inner loop until Role/Spe no longer matches
- -Repeat outer loop until all processed
- (at this point, temporary worksheet sorted by Candidates row number)
- Loop through temporary worksheet by row to build Candidates with All Positions
- -Use Candidates row number to select data to populate columns A through J
- -Use Position row number to select data to populate columns K through AG
- -Repeat loop until all processed
- Sort temporary worksheet by Position row number
- Loop through temporary worksheet to build Positions with All Candidates
- -(processing very similar to previous loop, only the columns change)
- Delete the temporary worksheet.