To place borders in Excel, select the cells you want to outline, then on the Home tab click the Borders button (the square grid icon in the Font group) and choose a border style such as Outside Borders or All Borders. That applies a standard thin black line instantly. For control over line weight and colour, open Format Cells (Ctrl+1 on Windows, Command+1 on Mac), go to the Border tab, pick a line style and colour, then click the edges in the preview or use the presets. The steps below cover both the quick ribbon method and the detailed dialog, plus how to remove borders and fix the common problems.
What You'll Need
- Excel for Windows, Mac, or Excel for the web (the ribbon layout is similar; a few labels differ slightly by version and region).
- A workbook with data or a blank sheet where you want the borders.
- Optional: a printer or PDF export if you are adding borders for a printed report.
Step-by-Step
- Select the range. Click the first cell and drag to the last, or hold Shift and click the last cell. To border an entire table, click any cell inside it and press Ctrl+A (Command+A on Mac) once to select the current region. Borders apply only to the cells you select, so get the range right first.
- Apply a quick border from the ribbon. On the Home tab, find the Font group and click the arrow next to the Borders button. Choose Outside Borders to outline the selection, All Borders to put a line around every cell, Thick Box Border for a heavier outline, or Bottom Border for a single underline under the selection.
- Open the full border dialog for custom lines. With the range still selected, press Ctrl+1 (Windows) or Command+1 (Mac) to open Format Cells, then click the Border tab. (You can also right-click the selection and choose Format Cells.)
- Choose line style and colour first. In the Line area, click a style (thin, medium, thick, dashed, double) and a colour from the Color drop-down. Excel applies whatever is selected here to the edges you click next, so set these before drawing.
- Draw the edges. In the Border preview, click the outer edges and the inside horizontal and vertical lines you want. Alternatively use the presets (Outline, Inside, None) on the right side of the dialog. Click an edge again to remove it.
- Confirm. Click OK. The borders appear on the selected cells. If you need different borders on different parts of the sheet, repeat the process for each range rather than trying to do everything at once.
- Remove borders when needed. Select the cells, open the Borders drop-down on the Home tab, and choose No Border. This clears all borders on the selection, including inside lines.
- Copy borders to other cells. Select a cell that already has the border you want, click the Format Painter (paintbrush icon on the Home tab), then drag over the target cells. Press Esc to turn off the painter.
Common Mistakes
- Bordering only one cell in a merged area. If cells are merged, borders apply to the merged block as a whole; unmerge first if you need separate boxes.
- Using gridlines instead of borders. Gridlines are screen-only guides and do not print. If the lines vanish in Print Preview, you added no borders.
- Selecting the wrong range. A border on a single cell looks like a stray box. Always select the full block before applying.
- Forgetting that white borders exist. A white border on a white background is invisible. Check the colour setting if lines seem missing.
- Assuming borders travel with copied data. A normal paste carries formatting, but Paste Special > Values does not. Use Format Painter or paste with formatting if borders must follow.
Tips
- Use a thick outside border and thin inside lines for a clean table look; it reads better in print than uniform lines.
- Apply borders to a formatted Excel Table style instead of manually, so new rows inherit the look automatically.
- Set borders before converting to PDF or printing; check Print Preview to confirm they appear.
- For dashboards, use light grey borders rather than black so the data stands out.
- Keyboard shortcut Alt+H, B opens the Borders menu on Windows; on Mac, the ribbon has the same button.
Troubleshooting
Borders do not appear at all. Confirm you selected cells and not a chart or image. Check that the border colour is not white, and that the line style is not set to None. If the sheet is protected, borders may be locked; unprotect via Review > Unprotect Sheet (you will need the password).
Borders show on screen but not in print. Open File > Print and check the preview. Gridlines are off by default for printing; only real cell borders print. Also confirm the print area includes the bordered cells.
Only some edges appear. In the Format Cells Border tab, each edge is toggled individually. Reopen the dialog and click the missing edges in the preview. A common cause is applying an inside border to a single cell, which has no inside edges to draw.
Borders look uneven after inserting rows. New rows may not inherit borders. Copy a bordered row and use Insert Copied Cells, or reapply All Borders to the expanded range.
Borders disappeared after pasting. The paste likely used Values only. Undo with Ctrl+Z, then paste again with Keep Source Formatting or use Format Painter.
Frequently Asked Questions
How do I add borders to an entire row or column?
Click the row number or column letter to select it, then apply a border from the Home tab. Note that this borders the whole row or column, which can look heavy; for a table, select just the used range instead.
Can I save a border style for reuse?
Yes. Format a cell the way you want, then use Cell Styles on the Home tab and choose New Cell Style to store it. Applying that style to other cells reproduces the border.
Why do my borders not print even though I see them?
Check that they are real borders, not gridlines. Gridlines do not print unless you enable Print Gridlines in Page Layout. Real borders always print if the cells are inside the print area.
How do I make borders thicker or a different colour?
Open Format Cells > Border, choose a thicker line style and a colour, then click the edges. The change applies only to edges you redraw, so reapply to each side.
Do borders affect calculations or sorting?
No. Borders are formatting only; they do not change values, formulas, or sort order. Sorting moves the cells and their formatting together.
Can I remove all borders from a sheet at once?
Select the whole sheet with Ctrl+A (Command+A on Mac) or the corner button, then choose No Border from the Borders drop-down. This clears every border on the sheet.