A limit to the number or columns and rows in a spreadsheet causes problems
Q A few years ago, I created a large spreadsheet to track my household expenses. I spent quite a lot of time on this, formatting the cells carefully and colour-coding various sections to make them easier to analyse.
It has worked fine all this time but now I’ve hit a problem: I wish to add some new rows and columns to let me track some additional categories but Excel simply refuses to let me add columns.
When I highlight one or more columns and select Columns from the Insert menu, Excel displays the following error message: ‘To prevent possible loss of data, Microsoft Office Excel cannot shift nonblank cells off the worksheet’.
However, inserting rows works without problem. I’ve inserted lots of columns and rows over the years without Excel objecting, so why is it complaining now?
David Hall
A The error message window you describe includes the answer to your question. However, we know that verbose wording in dialogue boxes can put users off actually reading them, so it’s understandable that you didn’t notice.
The answer to the problem lies in the fact that, despite appearances, individual Excel 2003 worksheets have a finite size - of 65,536 rows by 256 columns. While this is an undeniably sizeable matrix it is one that allows for very many more rows than columns.
Where a spreadsheet has grown organically over a long period it is conceivable that, with the regular insertion of new data categories, the number of columns now exceeds the 256 limit. When you attempt to insert a new column, then, Excel is warning you that to do so would push cells in the last column (labelled ‘IV’) off the right-most side of the sheet.
However, this is not the only possibility. Logically speaking, cells (or columns of cells) don’t have to contain anything that’s necessarily meaningful to humans for Excel to consider them occupied.
For example, simply applying formatting to a cell is sufficient for it to be flagged as logically occupied. If an attempt to insert a new column would result in a formatted cell (or column of formatted cells) being shifted off the end the spreadsheet, then Excel will display the same message.
At some point, for instance, you may have applied particular types of formatting to the whole spreadsheet: the later attempt to insert new columns would force these formatted cells off the right-most side of the spreadsheet.
There are a few possible solutions. The first is to examine the right-most side of your worksheet to see what’s there. To do this, hold down Ctrl on the keyboard and tap the right cursor (arrow) key: this will instantly switch the view the last column (IV). If there’s nothing of import there, first click to select one or more redundant columns. Now click Edit, point to Clear and then choose All.
Now return to the point where you’d like to insert new columns and you should be able to insert as many new columns as you’ve just cleared.
On the other hand, if your spreadsheet has really grown to the extent that all 256 columns contain required data you have a couple of options that we can see. The easiest, though certainly not the cheapest, would be to upgrade to the most recent edition of Excel: the 2010 version allows for truly colossal worksheets – up to 1,048,576 rows by 16,384 columns.
Alternatively, you could change the orientation of the data in your spreadsheet in order to take advantage of the substantial number of rows compared to columns. With a complex spreadsheet this won’t be an easy undertaking – indeed, it may not be at all practical.
However, on the off-chance that your spreadsheet is reasonably simple, but merely very large, try using Excel’s Transpose function to switch the axes (though this will obviously only work if the sheet has fewer than 256 rows).
To do this, first click to highlight the whole sheet (or relevant parts of it) and then select Copy from the Edit menu (or use the Ctrl and C keyboard shortcut). Now scroll down to a blank part of the sheet (or start a new sheet) and choose the Paste Special option from the Edit menu. In the Paste Special dialogue box, click to tick the Transpose box, then click OK.
Article tags
Related articles
Q.Is my phone’s Bluetooth any use?
Q.Can I switch boot drives so that I can work on older...
Q.Can I open my old genealogy files or have they gone...
A 'small British village' in the mid-Atlantic is in need of funding to get it connected
A technology for downloading files. Allows even very large files to be downloaded quickly.
|
|
|
|
|
Computeractive Excel (2010) Online tutorialPrice: £19.99 |
Computeractive Word (2010) Online TutorialPrice: £19.99 |
Computeractive Powerpoint (2010) Online TutorialPrice: £19.99 |
Angry BirdsPrice: £9.99 |
Back Issue CD-Rom 14 (2011)Price: £15.99 |
Inserting rows/columns
Or you could install Libre Office (free download) which doesn't have this limitation and is Excel compatible.
Posted by Nige, 20 May 2011
Cannot fit more Rows or Columns in the sheet?
Why not redesign and use TABS as sub sheets? Copy the existing sheet onto a new tab, do this several times. Form a Final Sheet which is used to collect the figures form all the sub sheets. This will mean linking cells form the sub sheets to the master sheet. You cna even colour code the tabs! DO NOT delete or change the original sheet until all is working well.
Posted by John Reynolds, 21 May 2011
Another possibility
You don't say which version of Excel you are using. If you are already using Excel 2007 or 2010 and your workbook was originally created in Excel 2003 or earlier, you could try saving it as an xlsx file (which is the new format in Excel 2007 and higher). This will remove the column limitation of 256 columns (there is still a limit in Excel 2007, but it is much larger)
Posted by Steve James, 23 May 2011
too many columns won't allow to insert or delete rows
My spreadsheet recently converted to Excel 2010 and I could not insert or delete rows. FINALLY solved it by removing cell colors on rows from the end of my data to the end of the rows. (I have been taking the easy way out and changing the color of the whole row instead of just the columns with data.) That fixed it and I can now insert & delete rows.
Posted by Rick Graham, 23 Apr 2012