Search string and get its position in excel using Actxserver
    3 vues (au cours des 30 derniers jours)
  
       Afficher commentaires plus anciens
    
Is it possible to search for a string in an excel file from particular sheet and also get its position. I need to get data only from this column. So if the position is known, data from that column can be imported. for ex..
fullname = 'C:\Users\Documents\MATLAB\files\food_raw.xlsm;
sheet = 'kharif';
string = 'cotton';
I want to import data present in column "cotton".
0 commentaires
Réponses (1)
  Fangjun Jiang
      
      
 le 7 Mar 2018
        I will just read the Excel file anyway and search the Raw data.
[Num,Txt,Raw]=xlsread(fullname,sheet);
Or, if 'cotton' is supposed to appear in the first row as the header, you might want to consider readtable() function and put your data in a Table.
Voir également
Catégories
				En savoir plus sur Spreadsheets dans Help Center et File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

