How to paste cell values from multiple excel sheets?
Afficher commentaires plus anciens
Hi I have a problem. I have 1080 excel files named from '1' to '1080' and I would like to copy several values from each file to one master spreadsheet (the corresponding cells are the same in every file). I tried to use the 'get' command in a loop but I keep getting error mesages.
Can anyone help me by providing a sample code or example?
thank you in advance
Réponses (1)
per isakson
le 22 Avr 2013
Try
doc xlsread
2 commentaires
NICHOLAS TAVOUKTSOGLOU
le 23 Avr 2013
per isakson
le 23 Avr 2013
Modifié(e) : per isakson
le 23 Avr 2013
You have to provide more detail.
Something like this will store all data
MAT = nan( n, m, 1080 ); % allocate memory
for ii = 1 : 1080
MAT( :, :, ii ) = xlsread( sprintf( 'filename%i.xls', ii ) );
end
Catégories
En savoir plus sur Spreadsheets dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!