I have a csv file (C:\test.csv) in the following format:
Requested Action Code,17,17
Requested Action Code,18,18
Requested Action Code,19,19
Requested Action Code,20,20
Requested Action Code,21,21
Meter Period Number,01,01
Meter Period Number,02,02
Meter Period Number,03,03
Meter Period Number,04,04
Meter Period Number,05,05
Meter Period Number,06,06
Actual/Estimated Indicator,A,A
Actual/Estimated Indicator,C,C
Actual/Estimated Indicator,E,E
Every time the first column changes i want to create a new CSV file containing only the columns 2 and 3. Then naming the new CSV file the value in the first column.
ie: Requested Action Code.csv will contain:
17,17
18,18
19,19
20,20
21,21
Meter Period Number.csv wil contain:
01,01
02,02
03,03
04,04
05,05
06,06
Any help would be appricated,
Jonny