r/excel • u/Defiled- • Dec 14 '18
solved Split .csv file by the header row line identifier (multiple headers in file)
Hey guys,
I have .csv files that contain multiple header rows with a line identifier of 'DH', all the data is then subsequently under a 'DL' line identifier until the next header row.
I need to be able to split these files so that each header row and its relevant detail lines are put into their own files.
Any ideas on how I can do this please? The programs I've found online seem to all be by x amount of rows.
Thanks!
1
Upvotes
View all comments
Show parent comment
1
u/excelevator 3071 Dec 14 '18
Also why have you changed the end range value and syntax?,
End(A351)The code is fully dynamic to pick up the last row, only the path requires editing.. that will also generate an error.