Undertegnede
New Member
- Joined
- Oct 15, 2013
- Messages
- 15
- Office Version
- 365
- Platform
- Windows
Hello,
I am looking for a clever way to rearrange data in order to be able to import to a financial system (unit 4 / Agresso).
The input:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Activity[/TD]
[TD]201701[/TD]
[TD]201702[/TD]
[TD]201703[/TD]
[TD]201704[/TD]
[TD]201705[/TD]
[TD]201706[/TD]
[TD]201707[/TD]
[TD]201708[/TD]
[TD]201709[/TD]
[TD]201710[/TD]
[TD]201711[/TD]
[TD]201712[/TD]
[/TR]
[TR]
[TD]Activity 1
[/TD]
[TD]5000[/TD]
[TD]5000[/TD]
[TD]5000[/TD]
[TD]5000[/TD]
[TD]5000[/TD]
[TD]5000[/TD]
[TD]5000[/TD]
[TD]5000[/TD]
[TD]5000[/TD]
[TD]5000[/TD]
[TD]5000[/TD]
[TD]5000[/TD]
[/TR]
[TR]
[TD]Activity 2[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]3000[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]4000[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]2000[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]1000[/TD]
[/TR]
[TR]
[TD]Activity 3[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]6000[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Desired output:
[TABLE="width: 300"]
<tbody>[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Activity 1[/TD]
[TD]201701[/TD]
[TD]5000[/TD]
[/TR]
[TR]
[TD]Activity 1[/TD]
[TD]201702[/TD]
[TD]5000[/TD]
[/TR]
[TR]
[TD]Activity 1[/TD]
[TD]201703[/TD]
[TD]5000[/TD]
[/TR]
[TR]
[TD]Activity 1[/TD]
[TD]201704[/TD]
[TD]5000[/TD]
[/TR]
[TR]
[TD]Activity 1[/TD]
[TD]201705[/TD]
[TD]5000[/TD]
[/TR]
[TR]
[TD]Activity 1[/TD]
[TD]201706[/TD]
[TD]5000[/TD]
[/TR]
[TR]
[TD]Activity 1[/TD]
[TD]201707[/TD]
[TD]5000[/TD]
[/TR]
[TR]
[TD]Activity 1[/TD]
[TD]201708[/TD]
[TD]5000[/TD]
[/TR]
[TR]
[TD]Activity 1[/TD]
[TD]201709[/TD]
[TD]5000[/TD]
[/TR]
[TR]
[TD]Activity 1[/TD]
[TD]201710[/TD]
[TD]5000[/TD]
[/TR]
[TR]
[TD]Activity 1[/TD]
[TD]201711[/TD]
[TD]5000[/TD]
[/TR]
[TR]
[TD]Activity 1[/TD]
[TD]201712[/TD]
[TD]5000[/TD]
[/TR]
[TR]
[TD]Activity 2[/TD]
[TD]201701[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Activity 2[/TD]
[TD]201702[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Activity 2[/TD]
[TD]201703[/TD]
[TD]3000[/TD]
[/TR]
[TR]
[TD]Activity 2[/TD]
[TD]201704[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Activity 2[/TD]
[TD]201705[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Activity 2[/TD]
[TD]201706[/TD]
[TD]4000[/TD]
[/TR]
[TR]
[TD]Activity 2[/TD]
[TD]201707[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Activity 2[/TD]
[TD]201708[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Activity 2[/TD]
[TD]201709[/TD]
[TD]2000[/TD]
[/TR]
[TR]
[TD]Activity 2[/TD]
[TD]201710[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Activity 2[/TD]
[TD]201711[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Activity 2[/TD]
[TD]201712[/TD]
[TD]1000[/TD]
[/TR]
[TR]
[TD]Activity 3[/TD]
[TD]201701[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Activity 3[/TD]
[TD]201702[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Activity 3[/TD]
[TD]201703[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Activity 3[/TD]
[TD]201704[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Activity 3[/TD]
[TD]201705[/TD]
[TD]6000[/TD]
[/TR]
[TR]
[TD]Activity 3[/TD]
[TD]201706[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Activity 3[/TD]
[TD]201707[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Activity 3[/TD]
[TD]201708[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Activity 3[/TD]
[TD]201709[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Activity 3[/TD]
[TD]201710[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Activity 3[/TD]
[TD]201711[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Activity 3[/TD]
[TD]201712[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I would appreciate any input towards a solution.
Best regards.
I am looking for a clever way to rearrange data in order to be able to import to a financial system (unit 4 / Agresso).
The input:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Activity[/TD]
[TD]201701[/TD]
[TD]201702[/TD]
[TD]201703[/TD]
[TD]201704[/TD]
[TD]201705[/TD]
[TD]201706[/TD]
[TD]201707[/TD]
[TD]201708[/TD]
[TD]201709[/TD]
[TD]201710[/TD]
[TD]201711[/TD]
[TD]201712[/TD]
[/TR]
[TR]
[TD]Activity 1
[/TD]
[TD]5000[/TD]
[TD]5000[/TD]
[TD]5000[/TD]
[TD]5000[/TD]
[TD]5000[/TD]
[TD]5000[/TD]
[TD]5000[/TD]
[TD]5000[/TD]
[TD]5000[/TD]
[TD]5000[/TD]
[TD]5000[/TD]
[TD]5000[/TD]
[/TR]
[TR]
[TD]Activity 2[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]3000[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]4000[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]2000[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]1000[/TD]
[/TR]
[TR]
[TD]Activity 3[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]6000[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Desired output:
[TABLE="width: 300"]
<tbody>[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Activity 1[/TD]
[TD]201701[/TD]
[TD]5000[/TD]
[/TR]
[TR]
[TD]Activity 1[/TD]
[TD]201702[/TD]
[TD]5000[/TD]
[/TR]
[TR]
[TD]Activity 1[/TD]
[TD]201703[/TD]
[TD]5000[/TD]
[/TR]
[TR]
[TD]Activity 1[/TD]
[TD]201704[/TD]
[TD]5000[/TD]
[/TR]
[TR]
[TD]Activity 1[/TD]
[TD]201705[/TD]
[TD]5000[/TD]
[/TR]
[TR]
[TD]Activity 1[/TD]
[TD]201706[/TD]
[TD]5000[/TD]
[/TR]
[TR]
[TD]Activity 1[/TD]
[TD]201707[/TD]
[TD]5000[/TD]
[/TR]
[TR]
[TD]Activity 1[/TD]
[TD]201708[/TD]
[TD]5000[/TD]
[/TR]
[TR]
[TD]Activity 1[/TD]
[TD]201709[/TD]
[TD]5000[/TD]
[/TR]
[TR]
[TD]Activity 1[/TD]
[TD]201710[/TD]
[TD]5000[/TD]
[/TR]
[TR]
[TD]Activity 1[/TD]
[TD]201711[/TD]
[TD]5000[/TD]
[/TR]
[TR]
[TD]Activity 1[/TD]
[TD]201712[/TD]
[TD]5000[/TD]
[/TR]
[TR]
[TD]Activity 2[/TD]
[TD]201701[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Activity 2[/TD]
[TD]201702[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Activity 2[/TD]
[TD]201703[/TD]
[TD]3000[/TD]
[/TR]
[TR]
[TD]Activity 2[/TD]
[TD]201704[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Activity 2[/TD]
[TD]201705[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Activity 2[/TD]
[TD]201706[/TD]
[TD]4000[/TD]
[/TR]
[TR]
[TD]Activity 2[/TD]
[TD]201707[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Activity 2[/TD]
[TD]201708[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Activity 2[/TD]
[TD]201709[/TD]
[TD]2000[/TD]
[/TR]
[TR]
[TD]Activity 2[/TD]
[TD]201710[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Activity 2[/TD]
[TD]201711[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Activity 2[/TD]
[TD]201712[/TD]
[TD]1000[/TD]
[/TR]
[TR]
[TD]Activity 3[/TD]
[TD]201701[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Activity 3[/TD]
[TD]201702[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Activity 3[/TD]
[TD]201703[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Activity 3[/TD]
[TD]201704[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Activity 3[/TD]
[TD]201705[/TD]
[TD]6000[/TD]
[/TR]
[TR]
[TD]Activity 3[/TD]
[TD]201706[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Activity 3[/TD]
[TD]201707[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Activity 3[/TD]
[TD]201708[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Activity 3[/TD]
[TD]201709[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Activity 3[/TD]
[TD]201710[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Activity 3[/TD]
[TD]201711[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Activity 3[/TD]
[TD]201712[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I would appreciate any input towards a solution.
Best regards.