I nead help, xlsread(file,-1).
Show older comments
from doc:
[num,txt,raw] = xlsread(filename,-1) opens an Excel window to interactively select data. Select the worksheet, drag and drop the mouse over the desired range, and click OK.
How can I save this selected area (ex ‘A3:AB187’ or other) to use as a variable.I wont read in the same area (ex ‘A3:AB187’ or other) with multiple files.
Thanks,
Jola
3 Comments
Ahmed Elkady
on 1 Aug 2012
%% Read Data from Excel Files
FileName = 'XFileName.xlsm';
SheetNo = 'Sheet1';
DataRange = 'T4..X259';
VariableName = xlsread (FileName, SheetNo, DataRange);
Jola P
on 1 Aug 2012
Accepted Answer
More Answers (0)
Categories
Find more on Spreadsheets in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!