Why is the maximum number of columns in an Excel sheet stated to be... (2024)

7 views (last 30 days)

Show older comments

The code of "xlswrite.m" contains the following text:

DEC2BASE27(D) returns the representation of D as a string in base 27,

expressed as 'A'..'Z', 'AA','AB'...'AZ', until 'IV'. Note, there is no zero

digit, so strictly we have hybrid base26, base27 number system. D must be

a negative integer bigger than 0 and smaller than 2^52, which is the

maximum number of columns in an Excel worksheet.

2^52 is not a typographical error because two more statements quote the

same value. I believe the the maximum number of columns in Excel is 256.

Accepted Answer

Why is the maximum number of columns in an Excel sheet stated to be... (2)

MathWorks Support Team on 27 Jun 2009

There is a limit in Microsoft Excel on the number of rows and columns an Excel file can contain. An Excel file may have upto 256 columns and 65536 rows. Since the data you are writing to the excel file has 1000 columns, Microsoft Excel errors out and MATLAB is unable to complete the XLSWRITE operation.The limitation in the new version of Excel is now 16k.

However, XLSWRITE does not limit itself to that, but will in fact work up to 2^52. This is to ensure that future increases in the maximum number of allowed rows are supported by XLSWRITE.

0 Comments

Show -2 older commentsHide -2 older comments

Sign in to comment.

More Answers (0)

Products


Release

R2006b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

An Error Occurred

Unable to complete the action because of changes made to the page. Reload the page to see its updated state.


Why is the maximum number of columns in an Excel sheet stated to be... (3)

Select a Web Site

Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .

You can also select a web site from the following list

Americas

Europe

Asia Pacific

Contact your local office

Why is the maximum number of columns in an Excel sheet stated to be... (2024)
Top Articles
Latest Posts
Article information

Author: Laurine Ryan

Last Updated:

Views: 6707

Rating: 4.7 / 5 (57 voted)

Reviews: 80% of readers found this page helpful

Author information

Name: Laurine Ryan

Birthday: 1994-12-23

Address: Suite 751 871 Lissette Throughway, West Kittie, NH 41603

Phone: +2366831109631

Job: Sales Producer

Hobby: Creative writing, Motor sports, Do it yourself, Skateboarding, Coffee roasting, Calligraphy, Stand-up comedy

Introduction: My name is Laurine Ryan, I am a adorable, fair, graceful, spotless, gorgeous, homely, cooperative person who loves writing and wants to share my knowledge and understanding with you.