Hello,
I have a folder containing a number of text files, I have attached a dummy sample for your reference (Please note the actual text file contains 290 rows of data)
I am seeking a piece of code that extracts a particular cell from each textfile and then stores this as a cell in a new excel spreadsheet.
For example I have 4 text files in the folder.
Test_1961-01_Actual.txt
Test_1961-02_Actual.txt
Test_1961-02_Actual.txt
Test_1962-01_Actual.txt
I need a piece of code that deletes the first 6 rows (containing irrelavent information), converts Test_1961-01_Actual.txt to a CSV format (delimiting by spaces) and then looks up a value based on a particular row and column i.e. row 196, column 155 and then stores this cell value in a new workbook in cell a1.
Next I want the code to go through the next text file Test_1961-02_Actual.txt, look up the same row and column, storing the value in cell a2 of the previously created workbook
I need the code to loop through the all the text files in the folder extracting the corresponding cell.
What is this the best way to achieve this, could anyone help me with the piece of code? I am quite happy to modify a piece of code I just struggle writing it from scratch
Thanks a lot for any assistance you can provide
Test-1961-01_Actual.txt
Bookmarks