Excel will not let me delete a row - excel

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.

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.

excel, filter on, shift column values to the left

I have a spreadsheet with a filter on. I need to shift column values to the left. Please see below screenshot.
In below screenshot, I want to delete Name1 - Name5 and shift all the cells on the right to the left. I can't do this. Excel will not let me. It wants me to delete the entire row which I do not want to do.
I also do not want to use the = next column formula since there are 50+ columns in this spreadsheet. So I need some help and advice.
I have tried to highlight the first Home to Address5 and drag that to the left, then get error message
The command you chose cannot be performed with multiple selections. Select a single range and click the command again.

Skipping blank cells with an Index/Match formula

I've got several databases containing 100/1,000's of rows where the information is presented something like this:
I need to get all the information relevant to each company onto one row; I'm not able to do a simple Sort & Filter as nearly every company has a different level of detail, so information ends up in the wrong rows. Looks like the best option is an Index/Match formula, but my current formula
=INDEX(Sheet1!B:B,MATCH(Sheet2!$A2,Sheet1!$A:$A,0)
returns zeros for any result where the first Index/Match result is blank:
How can I write the formula so that it skips the blank cells? I'd prefer not to have to use VBA however any advice would be very much appreciated.
Alternatively,
Because match is always the return the first value it found.
So in cell G2,
=INDEX(Sheet1!G:G,MATCH(Sheet2!$A2,Sheet1!$A:$A,0)+COUNTA($G$1:G$1)-1)
Or by matching the header to offset the cells.
You can just wrap your existing formula in an IF function:
=IF(Sheet2!$A2<>"",INDEX(Sheet1!B:B,MATCH(Sheet2!$A2,Sheet1!$A:$A,0),"")
I will normally use a "Go To Special" function for this.
Say for example for the sample data below.
I will put in the first formula '=IF(B2<>"",C3,"")'. Copy that cell (Ctrl+C), then select cells from C2 to C7 and use the 'Go to special' to select Blank cells only under Home tab, in Editing > Find & Select > Go To Special. Simply just Paste the formula to all the blank cells by Ctrl+V. You will get all the information in one row on the first row for each companies.
Hope this helps.
Step1:
Create a pivot table with your data and in the pivot options select 0 for the blank cells.Copy all the fields into row area...
Step2:
Apply conditional formatting as shown in the below image to remove (blank) cells.
Note: This is not a robust solution but worked for me.

Microsoft Excel Can't insert new cells

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.

Excel checkbox, When clicking copy cells and past to new sheet

I want to click a checkbox, and then it copys the two cells beside it. then it have to check on a new sheet if the to first colums on the first row is free. if they are then past, if they are not then check if the next row i free and so on.
Im not so skilled so a step by step guide would be nice.
sorry my poor english. and thanks
Greatings from
Jesper
Just to show a different non-vba approach:
Insert a "form control" checkbox for each line and connect it to a non used cell in that line (in my example column A)
Then simply get the values by formula (ive done it at 1 sheet, but te ranges simply can be changed)
=IFERROR(INDEX(C$1:C$16,SMALL(IF($A$1:$A$16=TRUE,ROW($A$1:$A$16)),ROW())),"")
This is an array formula and must be confirmed with ctrl + shift + enter!

Resources