Fix Black Borders and Lines Appearing in Excel Cells
Question details
Stop Excel from adding unexpected black borders or lines when cells are edited.

- 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.
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.
Update and Repair Microsoft Office
Use this approach if unexpected borders appear in multiple workbooks or you suspect damaged Office components.
In Excel, select File > Account > Update Options > Update Now. If Update Options is unavailable, check how your organization manages Office updates.
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.
Select Quick Repair and follow the prompts. If the issue persists, return to Modify and try Online Repair, which requires an internet connection.
Reopen Excel and edit cells in both the affected workbook and a new blank workbook to see whether the black borders still appear.

Test and Rebuild an Affected Workbook
Use this approach when the borders appear in one workbook but not in a new blank workbook.
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.

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.




