Okay so I wrote some code and it seems like it could go a lot faster but I am having trouble thinking about how to make it faster. it uses the "test.csv" file I provided below just make "test.csv" in the same folder with the code and it should run(SLOWLY!) The code: #include-once #include <array.au3> #Include <Date.au3> ;$StartDate = '2009-09-01 00:00:00' ;$EndDate = '2009-09-02 00:00:00' dim $dates[1][2]=[[0]] $file=FileOpen(@ScriptDir&"\test.csv", 0) $csv=StringRegEx