Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

How to Edit Borders in Excel: Step-by-Step Guide

· 6 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

To edit a border in Excel, select the cells you want to change, open the Home tab, click the arrow next to the Borders button in the Font group, and choose the border style you want—or pick More Borders for full control over line style, color, and which edges get a line. That is the short answer. The rest of this guide covers the exact clicks, the settings that trip people up, and how to fix borders that refuse to appear.

What You'll Need

  • Excel for Windows, Excel for Mac, Excel on the web, or the Excel mobile app. The desktop versions have the full dialog; the web and mobile versions have a reduced set of border options.
  • A workbook with at least one sheet containing data or blank cells you want to format.
  • No add-ins or special permissions are required. Border formatting is a standard feature available in every edition.

Step-by-Step

  1. Select the cells. Click and drag across the range you want bordered, or press Ctrl+A (Cmd+A on Mac) to select the whole sheet. To select non-adjacent cells, hold Ctrl (Cmd on Mac) while clicking. Borders apply to whatever is selected, so get the selection right first.
  2. Go to the Home tab. The Borders control lives in the Font group. On a narrow window the group may collapse to an icon; click the small arrow in the group's corner to expand it.
  3. Click the arrow next to the Borders button. The button shows a grid icon. Clicking the icon itself applies the last-used border; clicking the arrow opens the border menu. Always use the arrow when you want to choose a specific style.
  4. Pick a preset. The menu offers options such as Bottom Border, Top Border, Left Border, Right Border, No Border, All Borders, Outside Borders, Thick Box Border, Bottom Double Border, and Thick Bottom Border. Hovering over an option previews it on your selection. Click one to apply it.
  5. For full control, choose More Borders. This opens the Format Cells dialog on the Border tab. Here you can set line style (thin, medium, thick, dashed, dotted, double), line color, and apply borders to individual edges or to the inside of the selection. Click the diagram's edge buttons or the presets (Outline, Inside) to place lines, then click OK.
  6. Remove a border. Select the cells, click the Borders arrow, and choose No Border. To remove only one edge, use the corresponding edge option (for example, Left Border) as a toggle—clicking it again removes that edge.
  7. Copy the border to other cells. Use the Format Painter on the Home tab: select a cell with the border you like, click Format Painter, then drag over the target cells. Alternatively, copy the cell and use Paste Special > Formats.
  8. Save the workbook. Borders are saved with the file. If you are working in Excel on the web, changes save automatically to OneDrive or SharePoint.

Menu labels can differ slightly by Excel version, device, and region. The desktop steps above are written for Excel for Windows; on Mac the Borders button is in the same Font group on the Home tab, and More Borders opens the same Format Cells dialog.

Common Mistakes

  • Clicking the Borders icon instead of the arrow. The icon applies the last-used border, which may not be what you want. Use the arrow to open the menu.
  • Selecting the wrong range. Borders attach to the selected cells, not the visible data. If you select only the text and not the surrounding cells, the border may look misplaced.
  • Confusing borders with gridlines. Gridlines are a view setting and do not print by default. Borders are formatting and do print. If you want lines on paper, use borders.
  • Applying a border to a merged cell. Merged cells can behave unpredictably with borders. Unmerge first, apply borders, then remerge if needed.
  • Expecting borders to follow sorting or filtering. Borders are cell formatting and move with the cell, but conditional formatting rules can override them visually.
  • Using white borders as a workaround. A white border hides gridlines on screen but prints as nothing on white paper and can look wrong on colored backgrounds. Use No Border or fill color instead.

Tips

  • Use the Format Cells dialog (Ctrl+1 on Windows, Cmd+1 on Mac) for precise control. The Border tab shows a live preview.
  • Apply borders to a whole row or column by clicking the row or column header first.
  • To make a table stand out, use Outside Borders with a medium line and Inside Borders with a thin line.
  • If you frequently use the same border style, apply it once, then use the Format Painter or save the cell as a style.
  • On Excel for the web, the border menu is available but the line style and color options are more limited than on desktop. For full control, open the file in the desktop app.
  • Borders do not affect calculations or data; they are purely visual. Removing them will not change any values.

Troubleshooting

If borders do not appear after you apply them, work through these checks in order:

  1. Check the selection. Click a cell inside the range and look at the Name Box to confirm the correct range is selected.
  2. Check for conditional formatting. On the Home tab, open Conditional Formatting > Manage Rules. A rule with a fill or border format can override your manual border. Clear or edit the rule if needed.
  3. Check the view. Gridlines being off does not hide borders, but a white border color on a white background will be invisible. Reapply with a dark color.
  4. Check for merged cells. Unmerge (Home > Merge & Center) and reapply the border.
  5. Check print settings. If borders appear on screen but not on paper, open Page Layout > Print Area and confirm the range is included; also check that the printer is not set to draft mode.
  6. Restart Excel. Close and reopen the workbook. If the problem persists, try a new blank workbook to see whether the issue is file-specific.
  7. Repair the file. If borders vanish from a specific workbook, use File > Open > Browse, select the file, click the arrow next to Open, and choose Open and Repair. This can fix corrupted formatting. Save a copy first, because repair can alter formatting.

Frequently Asked Questions

How do I add borders to all cells in a sheet at once?

Click the square at the top-left corner of the sheet (above row 1 and left of column A) to select everything, then use the Borders arrow and choose All Borders.

Why do my borders not print?

Borders print by default. If they do not, check that the print area includes the cells, that the printer is not in draft mode, and that the border color is not white or very light.

Can I change the border color?

Yes. Open More Borders (or Format Cells > Border tab) and choose a color before applying the border lines. On Excel for the web, color options are limited.

How do I remove all borders from a worksheet?

Select the whole sheet with Ctrl+A (Cmd+A on Mac), click the Borders arrow, and choose No Border.

Do borders affect sorting or filtering?

No. Borders are formatting and move with the cells. Sorting and filtering operate on values, not borders.

Why does a border appear on only part of a merged cell?

Merged cells can render borders inconsistently. Unmerge the cell, apply the border to the full range, then merge again if needed.