When I want to Export["text.xlsx", data]
where data
is a matrix with 500 columns and 10000 rows, I get the error message:
Export::toomany3: "Cannot export to !(\"XLSX\"). The number of columns exceeds the limit of this format."
However, if I write the data as csv and load it into excel, everything works. Is there a way to write the data of this size to xlsx directly?
Test sample:
data = RandomReal[{-1, 1}, {10000, 500}];
Export["test.xlsx", data]
This happens with Mathematica 8 and 9 and 10.
xls
? Probably best to just use csv. If MMA can't export asxlsx
then unless they patch it I don't think you can solve it. $\endgroup$xlsx
file format specification supports 1,048,576 rows and 16,384 columns. So in mma you either have to mention you don't fully support it, or fix the limits. Whether it is a good idea to export such large data toxlsx
or not is beside the point. $\endgroup$