Read XLSX file on a Mac with R2012a doesn't work?
14 views (last 30 days)
Show older comments
Hi,
In the release notes of R2012a, it is said that Matlab can now read XLSX files on any platform. I'm working on Mac OS X Lion (10.7.3) with R2012a and MS Office 2011. When I save a file with Excel as an XLSX file, the matlab function xlsfinfo can't read it. But If I save it as an XLS file, it's Ok. The problem is that I want to use xlsread with specifying range to import. So according to the Help article on this function, I can't use the basic mode and thus, I have to use an XLSX file. But it doesn't work. Any help would be appreciated.
0 Comments
Accepted Answer
Kaustubha Govind
on 27 Apr 2012
I'm not sure that the basic mode is specific to XLS or XLSX files. AFAIK, on Mac/Linux platforms, XLSREAD only works in basic mode. The reason is because in non-basic mode, XLSREAD needs to start Excel as a COM Server, which is a Windows-only technology.
1 Comment
Friedrich
on 30 Apr 2012
It should be possbile according to this solution:
http://www.mathworks.com/support/solutions/en/data/1-7JIS5B/index.html
More Answers (2)
Ken Atwell
on 30 Apr 2012
xlsread does indeed work with .xlsx files on the Mac beginning with R2012a.
Abdallah, let's put aside what xlsinfo may or may not be telling you, and focus on xlsread itself.
What does xlsread itself do? Does it work? If not, please post the exact error message you get from xlsread.
0 Comments
Abdallah
on 17 May 2012
1 Comment
Walter Roberson
on 17 May 2012
A couple of days ago someone reported that they had to use the worksheet number instead of the worksheet name.
I wonder: if the worksheet name were restricted to 7 bit characters (ASCII) whether it might work then?
See Also
Categories
Find more on Spreadsheets in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!