Formatting Issues

Fix Excel Borders Not Showing Next to Hidden Rows or Columns

Muhammad TalhaMuhammad Talha Oct 19, 2026 870 views

Question details

Users experience disappearing cell borders in spreadsheets when hiding specific rows or columns.

Fix Excel Borders Not Showing Next to Hidden Rows or Columns
Product
Microsoft Excel / WPS Spreadsheet
Device & OS
not provided
Scenario
Hiding a row or column that has a specific border formatting applied to it.
Observed behavior
The border does not appear between the remaining visible rows or columns, making the spreadsheet look unformatted and causing unexpected printing results.
Before you start

Ensure you unhide the affected rows or columns first so you can correctly select the adjacent cells to apply the new shared border formatting.

Solution 1Recommended

Apply a Shared Border to Both Adjacent Rows or Columns

Assign the border formatting to the shared edge of both adjacent columns or rows so it remains visible even if one of them is hidden.

When you apply a right border to Column D and then hide Column D, the border disappears because it belongs exclusively to the hidden column. By applying a shared vertical or horizontal border between two visible columns or rows, the formatting attaches to both sides.

1
Select adjacent columns or rows

Highlight both adjacent columns or rows (for example, Columns C and D) where you want the border to remain visible.

2
Open the Borders menu

Navigate to the Home tab on the top ribbon and click the drop-down arrow next to the Borders icon.

3
Access More Borders

Select 'More Borders' at the bottom of the drop-down menu to open the Format Cells dialog box.

4
Apply the shared border

In the Border tab, click the vertical line (for columns) or horizontal line (for rows) in the middle of the preview area, then click OK.

Apply a Shared Border to Both Adjacent Rows or Columns
Hiding Both Adjacent Columns: If you hide both of the adjacent columns or rows that share the border, the border between them will naturally not be displayed.
Manage Spreadsheets with WPS Office

Fix Missing Borders Easily in WPS Spreadsheet

WPS Spreadsheet offers highly compatible and intuitive cell formatting tools, allowing you to easily manage shared borders across hidden rows and columns without losing your layout.

  1. 1. Open Spreadsheet: Launch WPS Spreadsheet and open your document.
  2. 2. Select Columns or Rows: Highlight the two adjacent columns or rows where the border is disappearing.
  3. 3. Open Format Cells: Right-click the highlighted selection and choose 'Format Cells' from the context menu.
  4. 4. Apply Middle Border: Switch to the 'Borders' tab, click the middle border line in the preview, and click OK to apply the shared format.
100% compatible with Microsoft Excel (.xlsx) formats and layoutsIntuitive Format Cells dialog for precise border controlEasily view and manage hidden rows and columns with a lightweight appFree to use core spreadsheet formatting functionalities
microsoft office alternative - wps office

Frequently Asked Questions

Why did my printed Excel sheet lose its gridlines and borders?

If borders were applied only to rows or columns that are currently hidden in your view, they will not print. You need to apply shared borders between the visible and hidden columns, or check 'Print Gridlines' in the Page Layout settings before printing.

Does hiding a row delete the formatting in those cells?

No, hiding a row or column only conceals it from view. The cell formatting, including borders, fonts, and background colors, remains completely intact and will reappear once you unhide the row or column.

Can I apply this shared border fix to multiple scattered hidden columns at once?

No, you must select each pair of adjacent columns individually to apply the shared middle border. If you have many hidden columns, it is usually faster to unhide them all, apply 'All Borders' to the entire data range, and then re-hide the necessary columns.