Hello,
I'm trying to transpose some data I receive from a report into a format I require.
The format I receive is as follows:
Column Names as follows:
Inspection No, RoleCode, OIN, InspectorName
340123, S5l1-2, 123123, Mr Smith
340123, QAR, 147147, Mr Jones
340123, SAFE, 159159, Mr Black
347347, S5l1-2, 789789, Mr Sims
347347, S5T2-2, 456456, Mr Hastings
347347, SAFE, 698698, Mr Zach
As you can see I have multiple inspectors against against a single inspection number as out lined above and I need to transpose the data so it sits on a single row with the following Column names:
A=Inspection No, B=RoleCode1, C=OIN, D=InspectorName, E=RoleCode2, F=OIN, G=InspectorName, H=RoleCode2, I=OIN, J=InspectorName, K=RoleCode3, L=OIN, M=InspectorName (so column A is the inspection number followed by repetitions of RoleCode, OIN and Inspector Name on the same row)
I also need help in automating this so that does this for as many inspection numbers that sit in the list.
I hope you can help as this is proving difficult and it is a big sticking point for me.
Thanks in advance
Damian
I'm trying to transpose some data I receive from a report into a format I require.
The format I receive is as follows:
Column Names as follows:
Inspection No, RoleCode, OIN, InspectorName
340123, S5l1-2, 123123, Mr Smith
340123, QAR, 147147, Mr Jones
340123, SAFE, 159159, Mr Black
347347, S5l1-2, 789789, Mr Sims
347347, S5T2-2, 456456, Mr Hastings
347347, SAFE, 698698, Mr Zach
As you can see I have multiple inspectors against against a single inspection number as out lined above and I need to transpose the data so it sits on a single row with the following Column names:
A=Inspection No, B=RoleCode1, C=OIN, D=InspectorName, E=RoleCode2, F=OIN, G=InspectorName, H=RoleCode2, I=OIN, J=InspectorName, K=RoleCode3, L=OIN, M=InspectorName (so column A is the inspection number followed by repetitions of RoleCode, OIN and Inspector Name on the same row)
I also need help in automating this so that does this for as many inspection numbers that sit in the list.
I hope you can help as this is proving difficult and it is a big sticking point for me.
Thanks in advance
Damian