Formatting Issues

Fix Black Borders and Lines Appearing in Excel Cells

Elise WilliamsElise Williams Nov 25, 2026 868 views

Question details

Stop Excel from adding unexpected black borders or lines when cells are edited.

Fix Black Borders and Lines Appearing in Excel Cells
Product
Microsoft Excel
Device & OS
not provided
Scenario
Editing cells in an Excel workbook.
Observed behavior
Black borders or lines appear around edited cells or across an entire row.
Before you start

Open a new blank workbook and edit a few cells to check whether the borders appear there too. Note which workbooks are affected before updating or repairing Office.

Solution 1Recommended

Update and Repair Microsoft Office

Use this approach if unexpected borders appear in multiple workbooks or you suspect damaged Office components.

1
Install Office updates

In Excel, select File > Account > Update Options > Update Now. If Update Options is unavailable, check how your organization manages Office updates.

2
Open Office repair settings

On Windows, close Office apps, then open Settings > Apps > Installed apps or Apps & features. Find Microsoft 365 or Microsoft Office, select its menu, and choose Modify.

3
Run a repair

Select Quick Repair and follow the prompts. If the issue persists, return to Modify and try Online Repair, which requires an internet connection.

4
Test Excel again

Reopen Excel and edit cells in both the affected workbook and a new blank workbook to see whether the black borders still appear.

Update and Repair Microsoft Office
Repair options vary: The Windows settings labels and available repair options can vary by Windows version and Office installation type.
Free Microsoft Office alternative

Edit Excel Workbooks with WPS Spreadsheet

WPS Office is a free, lightweight alternative with a familiar spreadsheet interface. Open compatible Excel files in WPS Spreadsheet to continue working with minimal disruption; it does not repair Microsoft Excel.

Edit spreadsheet data and manage cell borders in WPS SpreadsheetCompatible with Microsoft Excel formats including XLS and XLSXFamiliar menus make it easier to move from Microsoft OfficeFree and lightweight for everyday spreadsheet work
microsoft office alternative - wps office

Frequently Asked Questions

Why does Excel add black borders when I edit a cell?

Possible causes include damaged Office components, a workbook problem, or formatting rules. Test a new blank workbook and check Home > Conditional Formatting > Manage Rules in the affected file.

How do I repair Excel on Windows?

Close Office apps, open Settings > Apps, find Microsoft 365 or Microsoft Office, and select Modify. Run Quick Repair first, then try Online Repair if needed.

What if the borders appear in only one workbook?

Create a blank workbook through File > New and test it. If the new file works normally, consider rebuilding the affected workbook and using Home > Paste > Values to avoid copying unwanted formatting.

How do I check for Office updates in Excel?

In Excel, select File > Account > Update Options > Update Now. If that option is missing, your organization may manage updates.