Microsoft Excel Can't insert new cells - excel

I am receiving an error saying:
Microsoft Excel can't insert new cells because it would push non empty cells off the end of the worksheet.
This happens when I try to insert a new row of data. I need to keep all of the data on the sheet I already have. I only have 56 rows, so I think I should be able to add more...

Excel has a limited number of rows and columns (which varies with version).
To find your last cell with data in it, click on any cell and then press Ctrl+End.
This will then take you to the furthest from A1 which has content. You'll need to remove what is there to add extra rows.

I had the same.
Erased last columns and rows
Selected all cells from last used cell to the bottom, cleared content and cleared formatting and cleared rules.
Did not help immediately, but worked after a save and reopen.

To solve no enough Column scenario:
Unmerge the rows(optional): If you have any entire row get merged, remove them, don't do that. (many people stuck here)
(It may stop you from doing the formatting track)
Select unneeded columns: Select your first empty column(the leftmost one), jump to the end of the sheet using ctrl+shift+end to select all empty columns on the right till the last one.
Clear formatting & content of selected cells: Do not use delete cells feature, as the Excel will re-generate the cells in the same format, that's why it won't work. Use the Clear button on the left of Sort & Filter instead. Use Clear all to clear both formatting and content of the cells, so they can be treat as empty cells afterwards.
For no enough Rows scenario:
It's almost the same. :P
It would do the trick. Hope this may help.

My problem was that the sheet had Freeze Panes enabled. Clearing that cleared the issue.

This happened to me some time ago as well, so when I stumbled across this question I thought I might share my experience.
Approach #1: Deleting rows and columns
As Matt B mentions in his answer, the first thing to try is to delete the columns which are taking up place.
Let us assume that your data uses columns A to T and rows 1 to 20.
First off, select cell U1 and press CTRL+SHIFT+RIGHT to mark all cells from T1 to XFD1 (the right-most column Excel can display). Right-click any cell, choose "Delete" and "Entire column". Now you have gotten rid of the columns.
Next, select cell A21 and press CTRL+SHIFT+DOWN to mark all cells from A21 to A1048576 (the highest row number Excel displays). Right-click any cell, choose "Delete" and "Entire row". This will remove the rows.
Now it should work, as you have gotten rid of all excess columns and row.
Approach #2: using VBA
When I encountered this issue, the above solution did not work for me. However, I eventually found a solution that did work.
Right-click the sheet that is causing problems.
Choose "View Code"
Press CTRL+G to open box "Immediate"
Type in ActiveSheet.UsedRange. This will force Excel to "drop" all cells not currently in use, thus freeing up the space you need to create new columns or rows.
I hope this helps you or any other soul out there desperate to create new rows or columns in Excel.

I selected the last column and then CTRL+SHIFT+RIGHT to select all the cells to the right. And then Clear all (button to the right of Home->Format) to clear both formatting and content of the cells. This was the only solution that then allowed me to perform a column insert.

This happens also when you have in the excel sheet merged all cells in one row (then it is not possible to add another column) or you have merged all cells in one column (then it is not possible to add row).
Removing the merged row/column will enable again adding new columns/rows.

I have the same error.
even i delete the the rest of the rows and columns, still the same.
what i did is just copying the whole thing to a new wheetsheet, then everythings works again....

I had a sheet with data apparently contained in A1:G4000 that gave this error, trying to insert ROWS within that range.
ctrl-end took me to IV65536 !
So I deleted the entire range of ROWS from 4001-65536 (Cells / Delete Sheet Rows in Office 365).
This had no effect and I still couldn't insert ROWS. Repeated three times to make completely sure I'd done it right. No joy and ctrl-end still took me to IV65536 !
Running out of ideas, I deleted COLUMNS H to IV.
ROWS will now insert.
Baffled as to what is going on... but may be worth trying if you get this error.
My only guess is that some invisible whole-column formatting may have been applied that went down to row 65535 and was re-instated after the rows were deleted.

Excel has limitation per version so please make sure you check your file extension, example:
XLS for excel 97-2003
XLSX for more recent 2007, 2013, 2016
Sometimes, we forget to check this even you use Excel 2016, the alert still see.
This would remind you to check first.

I had the same problem and tried everything suggested above. Nothing worked. But I did the following, which fixed the problem immediately:
Unmerged two columns: The two were merged purely for esthetic reasons, so unmerging them had no substantive effect on my data and it worked like a charm.
This might mean that you have to look through your worksheet to find the offending column/row, but it's worth it.
Good luck!

1) Click Control+shift+Right-Arrow button and select and copy your entire data
2) select all columns(A 1 to XFD 1) and delete and copy your data now in deleted column sheet it will work now.

I had this issue as well, I was able to resolve by selecting unused columns and "clear all". Do not delete the columns after clearing. Otherwise, the formatting would reappear and you would still see the same error.

Related

Excel filtering of merged cells - extension

I'm trying to filter an excel which contains merged cells. My data is laid out similar to the example below.
I found a similar answered question here. The answer to this question works well for my spreadsheet initially, however the spreadsheet I'm applying this to is a live document. If a new row is added later, this new row isn't recognised by the filter. The images below hopefully explain what I mean.
Filtering category 2:
Adding extra row:
Filtering after extra row is added - new row doesn't appear:
I believe this happens because when a new row is inserted, the category cell (in my example cell A6) is blank, rather than containing a value. When I unmerge the cells in column A I get this (A6 is blank):
I also tried copying an existing row and inserting it, hoping this would fill in the blank cell, but it had the same result.
Is there any more robust way of achieving a filter on the merged cells, which will accept new rows being added? I know a simple alternative would be to leave column A unmerged, however with the size of the spreadsheet this would look very messy. This spreadsheet is used by quite a few people and mostly edited using Excel online (on MS Teams) so macros aren't a desirable solution either. Any help would be greatly appreciated.
Try the following:
Select your unmerged range, click Home > Find & Select > Go To Special. In the Go To Special dialog box, select Blanks and click OK.
All blanks from your range are now selected and if you press Arrow Up one time followed by ctrl + enter
All the blank cels will now contain the value from the cell above.
I believe that solves your problem without VBA.

Filling every other row with the value of the following row

I'd like to fill every other row in an excel worksheet with the value that is following that row.
See example.
Is there a way to accomplish this?
I am sorry if this is an extremely easy task, but I just can't get my head around how this may work, since just plain copying the data, filtering for blank rows and pasting it into the filtered table just doesn't work as I want it to.
Thanks in advance.
Edit: It might be worth adding that I cannot at all change rows or columns in the excel sheet since it is connected to a database which configuration does not allow this.
Add a new helper column with the formula =ISEVEN(ROW()).
Filter this column on TRUE.
Select the range from A2 to the bottom-right of the cells that you want to populate, and input =A3 [Ctrl-Enter].
Clear the filter and delete the helper column.

Excel 2007 keeps changing conditional format row reference to 1048576

I'm constructing a series of spreadsheets that will be used as a checklist and setting up conditional formatting so that if a particular item has been checked, a user enters "y" in the next cell over and both the cell containing the checklist item and the cell containing the "y" both turn green.
For example, if column A contains the list items, column B will be blank to enter "y" as items are completed. I'm setting up conditional formatting with the formula: =$B2="y" and selecting to apply this to =$A$2:$B$50
This all works perfectly when I have it set up in the Conditional Formatting Rules Manager window, but as soon as I click ok or apply, Excel ruins all of my formulas. It changes the formula from =$B2="y" to =$B1048576="y". It doesn't stop me from editing the formula and changing the value back to 2, but I'm not sure why it is doing this. I believe it is that same number every time, but honestly I haven't kept track.
As I have to apply this formatting to ~50 workbooks, this is getting super annoying. Anyone know what the cause is or how to make excel stop messing with my formula?
My excel level is probably basic/intermediate
PS. My workplace refuses to upgrade to modern software and we're stuck with office '07. If this is an excel bug I might be able to use that as some leverage to finally get an upgrade, any info would be helpful.
your formula is fine, however change your application method. To make your life easier, delete your current entry as the formula is rather short. if the real formula is complex, consider editing the formula and then copying it to memory before deleting it.
When assigning conditional formatting with a cell reference that is not locked, I select my table or ranges first and then make sure the left most upper cell is the active cell.
I then enter my formula in conditional formatting and hit apply. The cell in the formula will adjust itself based on what the active cell was when it was entered it seems. When I have done this and the active cell was in the bottom right corner of my selection, I would get really screwy (technical term) numbers in my formula after and the conditional formatting would not work as intended.

Excel will not let me delete a row

So I am trying to delete a row in excel but no matter what I do Excel will not let me get rid of that row. I tried highlighting the entire row and hitting 'Delete' on my keyboard but that just renamed all the row values to generic names like 'Column 1' and 'Column 2' and so on.
Any suggestion to how I can delete this row?
EDIT: Nevermind, I realized that the problem was that the row I was trying to edit was an header row
In Microsoft Excel 2016 highlight the row, click the Design tab, uncheck "Header Row" above the Table Styles Options.
Highlight the row, right-click the row header, and select delete. Alternately, try typing Ctrl minus.
Nevermind, I realized that the problem was that the row I was trying to edit was an header row
If anyone else comes along this way I had the same issue. I could delete lines after the main table, which included sum() formulae, but not in it, very strange. A couple of posts I saw mentioned pressing F5 ( goto ) -> Special... and then choosing Objects to see if there was something weird in there. I chose last cell and that took me to a row I1048253 in which there was a sum starting at line 3 and included the table's sums. Deleting that, or changing the start row to just under the table, allowed me to delete the rows.

Getting data to input into a spreadsheet by clicking on a button

I'm struggling to get my Excel spreadsheet (2010) to do what I want, but I'm not sure its possible!
What I have is diagrams with numbers (with the numbers in circles) on sheet two, on sheet one I have VLOOKUPs waiting to input the appropriate data. What I want, is for the user to click on the circle containing whichever number, then for that number to be put in the first column of the sheet, thus causing the VLOOKUP to fill in the rest of the data. Any ideas? I'm trying to play about with macros but I've had no luck so far.
Any help would be greatly appreciated
Jazz
EDIT: I've managed to get a macro to copy and paste the data to the correct column, what I now need is for the macro to put the pasted data into the next blank cell in the column
What if you try a command like the following:
Range("A" & Rows.Count).End(xlUp).Offset(1).Select
After you have unlocked the worksheet and copied the data, have the VB code go to the active sheet, and paste your data in row that follows the last used row in the worksheet. If you can weave something like this in, you will be able to avoid indexing the rows with a number. You will also be able to deal with the case that there are empty rows sprinkled within column A in this case.

Resources