[Solved] 256 column limit in XLS spreadsheet

Discuss the spreadsheet application
Locked
KeithOO
Posts: 117
Joined: Sat Jun 15, 2013 8:34 am

[Solved] 256 column limit in XLS spreadsheet

Post by KeithOO »

Using Mac 10.13.6, OO 4.1.6, Saving as 97/20000/XP .xls.
No warnings but when doc. closed and reopened, columns 251 onwards are lost.
Any suggestions please. Thanks.
Last edited by MrProgrammer on Mon Jul 07, 2025 4:32 pm, edited 2 times in total.
Reason: Tagged ✓ [Solved] Microsnot's XLS format design only supports 256 columns
Open Office 4.1.7 MacOS 10.13.6
User avatar
Villeroy
Volunteer
Posts: 31365
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: 256 Column Limit in OO Spreadsheet

Post by Villeroy »

256 columns and 65536 rows is the maximum with xls. It is a limitation of the file format. ALWAYS save your work in the native file format of your respective application. When using OpenOffice or LibreOffice (LO is the successor to OpenOffice) you always save your office documents in Open Document Format (name suffix odt for text, ods for spreadsheets, odp for presentations, odg for vector graphic).
For readers of your documents you always have PDF copies at hand.
Co-workers may install LibreOffice for free or they may open Open Document Format with Word or Excel or you may send them docx/xlsx. LibreOffice can save docx/xlsx and pptx. xlsx supports more than 256x65536 cells. But you must not do your work in foreign file formats. Open them and save your own ODF copy to work with.
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
User avatar
robleyd
Moderator
Posts: 5526
Joined: Mon Aug 19, 2013 3:47 am
Location: Murbko, Australia

Re: 256 Column Limit in OO Spreadsheet

Post by robleyd »

Don't save as .xls if you want more than 256 columns as the XLS format doesn't support that number of columns.

By default you will receive a warning about saving in foreign format; perhaps you have chosen to not display those warnings.
Warning about saving in a foreign format
Warning about saving in a foreign format
ooxlscols.png (8.58 KiB) Viewed 5372 times
Warning about loss of extra columns
Warning about loss of extra columns
ooxlscols1.png (4.86 KiB) Viewed 5372 times
You can restore the warnings through Tools | Options | Load/Save | General or for Mac OpenOffice | Preferences | Load/Save | General and check the option Warn when not saving in ODF or default format. The second warning should however have been displayed.
Slackware 15 (current) 64 bit
Apache OpenOffice.1.16
LibreOffice 26.8.0.3; SlackBuild for 26.8.0 by Eric Hameleers
-----------
I hate this damn computer, I wish that I could sell it.
It won't do what I want it to, Only what I tell it.
KeithOO
Posts: 117
Joined: Sat Jun 15, 2013 8:34 am

256 Column Limit in OO Spreadsheet

Post by KeithOO »

Thanks each for prompt replies. I smiled to myself as some years ago, I was having a problem with .ods and changed to .xls. I think it was a problem related to Filemaker into which I have to import the data each month. The 256 col problem has only recently shown up as the OO doc has only recently exceeded 256 cols (one or two being added each month).
What is best workaround please? Thanks.
Open Office 4.1.7 MacOS 10.13.6
User avatar
RoryOF
Moderator
Posts: 35261
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: 256 Column Limit in OO Spreadsheet

Post by RoryOF »

Unless you must share files with others, best to work and save in .ods format. If you must use .xls, either reconsider your associates, who are obviously unenlightened, or recast your spreadsheet to perhaps use multiple sheets, each of less than 256 columns.

For example: In my case I use a simple spreadsheet to track bank account and expenditure of twelve sheets, one for each month, the end total for one month automatically linking forward to the first entry for the next month.
Apache OpenOffice 4.1.16 on Xubuntu 26.04.1 LTS
User avatar
Villeroy
Volunteer
Posts: 31365
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: 256 Column Limit in OO Spreadsheet

Post by Villeroy »

Not even Excel can show more than 256 columns in an xls. It is a technical limit of availlable cell addresses in a historic file format. Filemaker accepts many different file formats.
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
KeithOO
Posts: 117
Joined: Sat Jun 15, 2013 8:34 am

256 Column Limit in OO Spreadsheet

Post by KeithOO »

So no known workaround? Thanks.
Open Office 4.1.7 MacOS 10.13.6
User avatar
Villeroy
Volunteer
Posts: 31365
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: 256 Column Limit in OO Spreadsheet

Post by Villeroy »

Workaround is whatever your Filemaker application can handle and whatever is not limited to 256 columns. Maybe csv or dBase?
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
mSnus
Posts: 1
Joined: Wed Jun 25, 2025 1:47 am

Re: 256 Column Limit in OO Spreadsheet

Post by mSnus »

Surprisingly, this also applies to XLSX format in 2025
Libreoffice 25.2.3.2 on Ubuntu 24.10
User avatar
MrProgrammer
Moderator
Posts: 5468
Joined: Fri Jun 04, 2010 7:57 pm
Location: Wisconsin, USA

Re: 256 column limit in XLS spreadsheet

Post by MrProgrammer »

mSnus wrote: Wed Jun 25, 2025 1:50 am Surprisingly, this also applies to XLSX format in 2025
This is not your topic, mSnus. It belongs to KeithOO and they are asking about OpenOffice saving in XLS format. OpenOffice cannot save in the XLSX format so your post is off-topic. If you would like to discuss XLSX further, please open your own topic and explain what you're having trouble with.
Mr. Programmer
AOO 4.1.7 Build 9800, MacOS 13.7.8, iMac Intel.   The locale for any menus or Calc formulas in my posts is English (USA).
Locked