As you know, if you highlight cells or rows or columns in Excel and hit the Delete
button
, the contents are removed but the cells remain as they are (albeit empty). The rows do not scroll up, nor the columns scroll left.
However, if you highlight your rows (not just the cells, but the entire rows using the grey border area on the left) and use the Right mouse button menu - to select Delete
- then the cells are removed from the Worksheet. (NOT the delete button on your keyboard)
After this operation, rows will scroll up, or columns will scroll left to fill in the deleted range. This should also reduce the (apparent) size of your worksheet.
But - as you scroll down, Excel will add more rows automatically. There are other ways to Hide these rows, but the trick above should remove the rows that are troubling you.
Another option from here:
Limit Rows and Columns without VBA
An alternative, and more permanent method for restricting the work area of a worksheet is to hide the unused rows and columns.
To hide the rows and columns outside the range A1 : Z30, the steps would be:
- Click on the row heading for row 31 to select the entire row.
- Press and hold down the Shift and Ctrl keys on the keyboard.
- Press and release the Down Arrow key on the keyboard to select all
rows from row 31 to the bottom of the worksheet.
- Right-click in the row headings to open the context menu.
- Choose Hide in the menu to hide the selected columns.
- Click on the column heading for column AA and repeat the above steps
two to five above to hide all columns after column Z.
- Save the workbook and the columns and rows outside the range A1 to
Z30 will remain hidden.