I have some data that I need to flip and copy & paste vertically based on the value at the intersection of a row & column. Below is the data as it is currently & how I need it to look. The result is based on where the policy is marked as 'Required' for that job & policy. I have tried various, inelegant formula options, and some VBA but cannot get either to work. I need it to loop through roughly 400 rows and 125 columns. I've looked thru the forums to see if something similar was asked/posted but came up empty. So, any help would be greatly appreciated!
Current:
A1 B1 C1 D1
[TABLE="width: 447"]
<tbody>[TR]
[TD]Job[/TD]
[TD]Policy 1[/TD]
[TD]Policy 2[/TD]
[TD]Policy 3[/TD]
[/TR]
[TR]
[TD]Electrician-Journeyman[/TD]
[TD]Required[/TD]
[TD]Required[/TD]
[TD]Required[/TD]
[/TR]
[TR]
[TD]Facilities Maintenance[/TD]
[TD]Required[/TD]
[TD]Required[/TD]
[TD]Required[/TD]
[/TR]
[TR]
[TD]Maintenance Manager[/TD]
[TD]Required[/TD]
[TD]Required[/TD]
[TD]Required[/TD]
[/TR]
[TR]
[TD]QA Manager[/TD]
[TD]N/A[/TD]
[TD]Required[/TD]
[TD]N/A[/TD]
[/TR]
[TR]
[TD]Warehouse Manager[/TD]
[TD]N/A[/TD]
[TD]N/A[/TD]
[TD]Required[/TD]
[/TR]
</tbody>[/TABLE]
Result:
[TABLE="width: 189"]
<tbody>[TR]
[TD]Policy 1[/TD]
[TD]Electrician-Journeyman[/TD]
[/TR]
[TR]
[TD]Policy 1[/TD]
[TD]Facilities Maintenance[/TD]
[/TR]
[TR]
[TD]Policy 1[/TD]
[TD]Maintenance Manager[/TD]
[/TR]
[TR]
[TD]Policy 2[/TD]
[TD]Electrician-Journeyman[/TD]
[/TR]
[TR]
[TD]Policy 2[/TD]
[TD]Facilities Maintenance[/TD]
[/TR]
[TR]
[TD]Policy 2[/TD]
[TD]Maintenance Manager[/TD]
[/TR]
[TR]
[TD]Policy 2[/TD]
[TD]QA Manager[/TD]
[/TR]
[TR]
[TD]Policy 3[/TD]
[TD]Electrician-Journeyman[/TD]
[/TR]
[TR]
[TD]Policy 3[/TD]
[TD]Facilities Maintenance[/TD]
[/TR]
[TR]
[TD]Policy 3[/TD]
[TD]Maintenance Manager[/TD]
[/TR]
[TR]
[TD]Policy 3[/TD]
[TD]Warehouse Manager
[/TD]
[/TR]
</tbody>[/TABLE]
Current:
A1 B1 C1 D1
[TABLE="width: 447"]
<tbody>[TR]
[TD]Job[/TD]
[TD]Policy 1[/TD]
[TD]Policy 2[/TD]
[TD]Policy 3[/TD]
[/TR]
[TR]
[TD]Electrician-Journeyman[/TD]
[TD]Required[/TD]
[TD]Required[/TD]
[TD]Required[/TD]
[/TR]
[TR]
[TD]Facilities Maintenance[/TD]
[TD]Required[/TD]
[TD]Required[/TD]
[TD]Required[/TD]
[/TR]
[TR]
[TD]Maintenance Manager[/TD]
[TD]Required[/TD]
[TD]Required[/TD]
[TD]Required[/TD]
[/TR]
[TR]
[TD]QA Manager[/TD]
[TD]N/A[/TD]
[TD]Required[/TD]
[TD]N/A[/TD]
[/TR]
[TR]
[TD]Warehouse Manager[/TD]
[TD]N/A[/TD]
[TD]N/A[/TD]
[TD]Required[/TD]
[/TR]
</tbody>[/TABLE]
Result:
[TABLE="width: 189"]
<tbody>[TR]
[TD]Policy 1[/TD]
[TD]Electrician-Journeyman[/TD]
[/TR]
[TR]
[TD]Policy 1[/TD]
[TD]Facilities Maintenance[/TD]
[/TR]
[TR]
[TD]Policy 1[/TD]
[TD]Maintenance Manager[/TD]
[/TR]
[TR]
[TD]Policy 2[/TD]
[TD]Electrician-Journeyman[/TD]
[/TR]
[TR]
[TD]Policy 2[/TD]
[TD]Facilities Maintenance[/TD]
[/TR]
[TR]
[TD]Policy 2[/TD]
[TD]Maintenance Manager[/TD]
[/TR]
[TR]
[TD]Policy 2[/TD]
[TD]QA Manager[/TD]
[/TR]
[TR]
[TD]Policy 3[/TD]
[TD]Electrician-Journeyman[/TD]
[/TR]
[TR]
[TD]Policy 3[/TD]
[TD]Facilities Maintenance[/TD]
[/TR]
[TR]
[TD]Policy 3[/TD]
[TD]Maintenance Manager[/TD]
[/TR]
[TR]
[TD]Policy 3[/TD]
[TD]Warehouse Manager
[/TD]
[/TR]
</tbody>[/TABLE]