Hi
I have a csv file with thousands of rows which holds monthly invoice data. Unfortunately, the data is not held how I would expect it and I am finding it difficult to manipulate, please see sample data -
ID,Field1,Field2
1,Type:,THREE
2,Tariff Year:,2008
3,Invoice Period:,11: 01/02/2009 - 28/02/2009
4,Scheduled Run Date:,27/10/2009
6,Name:,A Business
8,Total Charge=,2439238192.81
1623,Name:,B Business
1625,Total Charge=,3246850.64
1673,Name:,C Business
1675,Total Charge=,5030898.19
1724,Type:,THREE
1725,Tariff Year:,2008
1726,Invoice Period:,12: 01/03/2009 - 31/03/2009
1727,Scheduled Run Date:,25/11/2009
1729,Name:,A Business
1731,Total Charge=,2690577384.89
3335,Name:,B Business
3337,Total Charge=,3622148.26
3387,Name:,C Business
3389,Total Charge=,6643882.41
There are two monthly invoices here - row 1 to 1675 being the first and row 1724 to 3389 being the second.
I get the feeling I will need to duplicate the type, tariff year, invoice period and schedule run date per row of data, but I am unsure how to piece this together.
Any help would be greatly appreciated.
Kind Regards
Ted
I have a csv file with thousands of rows which holds monthly invoice data. Unfortunately, the data is not held how I would expect it and I am finding it difficult to manipulate, please see sample data -
ID,Field1,Field2
1,Type:,THREE
2,Tariff Year:,2008
3,Invoice Period:,11: 01/02/2009 - 28/02/2009
4,Scheduled Run Date:,27/10/2009
6,Name:,A Business
8,Total Charge=,2439238192.81
1623,Name:,B Business
1625,Total Charge=,3246850.64
1673,Name:,C Business
1675,Total Charge=,5030898.19
1724,Type:,THREE
1725,Tariff Year:,2008
1726,Invoice Period:,12: 01/03/2009 - 31/03/2009
1727,Scheduled Run Date:,25/11/2009
1729,Name:,A Business
1731,Total Charge=,2690577384.89
3335,Name:,B Business
3337,Total Charge=,3622148.26
3387,Name:,C Business
3389,Total Charge=,6643882.41
There are two monthly invoices here - row 1 to 1675 being the first and row 1724 to 3389 being the second.
I get the feeling I will need to duplicate the type, tariff year, invoice period and schedule run date per row of data, but I am unsure how to piece this together.
Any help would be greatly appreciated.
Kind Regards
Ted