How to extract user defined data from excel sheet?
Ältere Kommentare anzeigen
Hello All, I need help in extracting specific data from excel files. The example file screenshot is attached:

Now what I want is, to extract data for Data Point 121 for Para2, Para4, Para7
The issue is, I have many excel sheets to process and the don't have fixed column. Meaning, some files have Data point column at "C", Para1 maybe at "H", etc. Only headers "Data Point", "Para1",...."Para10" have same names.
I hope you are getting my problem. Please advice me on extracting such specific data based on the headers, not the column range.
2 Kommentare
cbrysch
am 17 Jun. 2016
If I get your question right you want to extract a data point under e.g. Para6 and 8, but the column number is not always the same for different excel data sets? One way to get your data would be to find the column number you are interested in using strcmp() in an loop to check if you are in the correct column. Hope this helps
adi kul
am 17 Jun. 2016
Akzeptierte Antwort
Weitere Antworten (1)
Image Analyst
am 17 Jun. 2016
0 Stimmen
You're going to have to read in the whole workbook with xlsread() and then use strfind() or strcmpi() to examine the column headers to figure out what column(s) you need.
2 Kommentare
adi kul
am 17 Jun. 2016
Image Analyst
am 17 Jun. 2016
Looks like you've already accepted an answer without demo code to do that.
Kategorien
Mehr zu Data Import from MATLAB finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!