Ok I've got this now: Test1: Heading1,Heading2,Heading3,Heading4 RecordA,RecordB,RecordC,RecordD RecordE,RecordF,RecordG,RecordH Ed says: Test2:Heading5,Heading6,Heading7,Heading8 RecordC,DataB,DataC,DataD DataE,DataF,DataG,DataH Ed says: Test2 Heading5,Heading6,Heading7,Heading8 RecordC,DataB,DataC,DataD DataE,DataF,DataG,DataH Ed says: So that should have at least given me 2 lines in the CSV, the list of the headers and then the first line of data cause H3 and H5 match