Formatting Issues

Clear Formatting from Unused Rows and Columns in Excel

Anum MushtaqAnum Mushtaq Dec 2, 2026 869 views

Question details

Remove unwanted borders and formatting from unused worksheet rows and columns.

Clear Formatting from Unused Rows and Columns in Excel
Product
Microsoft Excel
Device & OS
not provided
Scenario
A worksheet appears expanded beyond its actual data because formatting extends into unused rows and columns.
Observed behavior
Borders and other formatting appear in unused cells, making the worksheet seem permanently expanded.
Before you start

Identify the last row and column containing data, formulas, or formatting you want to keep. Check hidden rows and columns before deleting anything, since they may contain needed content.

Solution 1Recommended

Delete Unused Rows and Columns to Reset the Used Range

Use this method when the extra rows and columns contain nothing you need to preserve.

1
Select unused rows

Click the row number immediately below your data, then select all rows from there to the bottom of the worksheet.

2
Delete the rows

Right-click the selected row headings and choose Delete.

3
Delete unused columns

Select the column immediately to the right of your data through the last worksheet column. Right-click the selected column headings and choose Delete.

4
Save and reopen

Choose File > Save, close the workbook, and reopen it. On Windows, press Ctrl+End to check the last cell Excel considers used.

Delete Unused Rows and Columns to Reset the Used Range
Check the used range: If Ctrl+End still lands beyond your data, look for remaining content or formatting in hidden rows and columns. Deleting unused rows and columns may not reset the used range in every case.
Edit spreadsheets with WPS Office

Clear Unwanted Spreadsheet Formatting in WPS Office

Open your workbook in WPS Spreadsheet and clear unwanted formatting from selected unused cells while preserving their contents.

  1. 1. Open the workbook: Open WPS Spreadsheet and choose File > Open to select your Excel workbook.
  2. 2. Select the formatted area: Select the unused cells, rows, or columns containing the unwanted borders or formatting.
  3. 3. Clear formats: On the Home tab, open Clear and choose Clear Formats.
  4. 4. Save the workbook: Choose File > Save or Save As to save your changes in an Excel-compatible format.
Remove unwanted borders and formatting from selected cellsPreserve cell values and formulas when clearing formatsOpen and edit Microsoft Excel XLSX and XLS filesUse familiar spreadsheet controls for everyday editing
microsoft office alternative - wps office

Frequently Asked Questions

Will Clear Formats delete my data?

No. In Excel, Home > Clear > Clear Formats removes formatting from the selected cells but leaves values and formulas intact.

How can I find Excel's last used cell?

In Excel for Windows, press Ctrl+End. Excel moves to the last cell it considers used, which can include cells with formatting beyond your data.

Why does the worksheet still appear expanded after I clear formatting?

The used range may still include other content or formatting. Check hidden rows and columns, then save, close, and reopen the workbook before checking again.

Can I remove borders without clearing other formatting?

Yes. Select the affected cells, then use Home > Borders > No Border. This removes borders without clearing other cell formatting.