09-26-2014 09:47 AM
I don't know if I'm just blanking out here while programming or what but I'll explain my issue.
I'm trying to take multiple text data files (.csv) within a folder location and taking specific data information from those to then put into a spreadsheet (i.e. Excel).
My problem is the task of indexing the elements using a smart sorting process. I have a sample number (row header) and a target value (column header) and I want the data that matches those values to be placed in the intersect of headers.
I also would like to have these headers to programmatically add into the spreadsheet table (ie look and insert the header into the table).
Can anyone help me figure this through? It is greatly appreciated anyone willing to give me some pointers.
09-26-2014 11:02 AM
Basically i need the data to move into something that looks similar to this.
09-26-2014 12:16 PM
@mark.eckhoff wrote:
My problem is the task of indexing the elements using a smart sorting process.
Not sure what this means.
@mark.eckhoff wrote:
. I have a sample number (row header) and a target value (column header) and I want the data that matches those values to be placed in the intersect of headers.I also would like to have these headers to programmatically add into the spreadsheet table (ie look and insert the header into the table).
Can you post what these data files look like? I still don't understand what you are wanting.
09-26-2014 12:27 PM
The .csv file attached is a sample file that I would be using to do my data analysis.
In regards to not understanding my previous statement - I have rows in reference to a specific test object (ie sample) and each of these samples is put through a series of tests (flow rates) which would be my column markers. I would like a specific measured value to be put in place within the line under the corresponding header.
Each file contains 3 elements needed specificly for the table (the sample (row x), the target flow rate (column y), and the actual flow rate (x,y)) Does this help explain a little better nyc?
The kicker is that I would like the rows and columns to be populated automatically from the files. Then I can have something like this
09-26-2014 12:30 PM
You are showing the end result that you want.
I don't see the files that are being used to build the final file.
09-26-2014 12:38 PM
the .csv file attached below was the file type I'm getting my data from.
09-26-2014 12:40 PM
@mark.eckhoff wrote:
the .csv file attached below was the file type I'm getting my data from.
Okay.
But I am not seeing which data from that August 27 file ends up where in the result file.
The Sample ID from the August 27 is #1.
09-26-2014 12:48 PM
The files don't have much to do with the problem I'm having. I have the data elements I want - Sample ID, Expected, and the last value of the 2nd Half Average Column. I just need a way to organize it to the format I need to display it in.
Big picture - take folder of all the .csv files -> For loop of N files -> take out needed data from each file -> organize in table.
09-26-2014 12:54 PM
@mark.eckhoff wrote:
The files don't have much to do with the problem I'm having. I have the data elements I want - Sample ID, Expected, and the last value of the 2nd Half Average Column. I just need a way to organize it to the format I need to display it in.
Big picture - take folder of all the .csv files -> For loop of N files -> take out needed data from each file -> organize in table.
Huh?
I give up.
09-26-2014 01:00 PM
My .csv file has 3 pieces that correspond to 1 cell on the spreadsheet. (The Sample = Row, The Flow Rate = Column, The last average value = VAL at (row,col))
Does this make any sense to anyone?