Hello
I have spectroscopy instrument that exports raw data in an ascii format with an ".avg" file extension.
However the data is arranged in a layout that is not useful for further data processing by our custom software. So I need to batch convert these files into another ascii format with a ".MRS" file extension.
I have made a excel spreadsheet in how I want to transform the .avg file to the .MRS file format. I have included one ".avg" and the transformed ".MRS" version of the processed data that I did manually.
For the "avg" file format. The "Folder Path" and "Sample Name" is in Row 2.
Starting at Row 91, the "Raw data" is arranged in rows of 4 until Row 343
For the "MRS" file format. The "Folder Path" is placed in Row 6 and 23 and the "Sample Name" is placed in Row 7 and 22
The "Raw Data" is placed in Row 64 to 1073
Does anyone have any strategies on how to achieve this goal with an excel macro? I will have 100's of files to process so automating this step is key.
Best,
Francis
Bookmarks