Find Maximum Rows and Columns supported by XLS and XLSX formats
Contents
[
Hide
]
Possible Usage Scenarios
There are different number of rows and columns supported by Excel formats. For example, XLS supports 65536 rows and 256 columns while XLSX supports 1048576 rows and 16384 columns. If you want to know how many rows and columns are supported by given format, you can use WorkbookSettings.max_row and Workbook.settings.max_column properties.
Find Maximum Rows and Columns supported by XLS and XLSX formats
The following sample code creates workbook first in XLS and then in XLSX format. After creation, it prints the values of Workbook.settings.max_row and Workbook.settings.max_column properties. Please see the console output of the code given below for your reference.
Sample Code
Console Output
Maximum Rows and Columns supported by XLS format.
Maximum Rows: 65536
Maximum Columns: 256
Maximum Rows and Columns supported by XLSX format.
Maximum Rows: 1048576
Maximum Columns: 16384