The fastest way to add a border in Excel

To add a border to cells in Excel, select the cells you want to outline, then go to the Home tab on the ribbon. Click the dropdown arrow next to the Borders button (it looks like a small grid) and choose your border style from the menu. The border appears instantly on your selected cells.

If you want more control over which edges get a border — top only, bottom only, all sides, or just an outline — use the Borders dropdown instead of the quick button. The dropdown shows you exactly where each border will go before you apply it.

For a single border around a group of cells, select all the cells together, then choose Outside Borders from the dropdown. For borders on every cell edge within a selection, choose All Borders.

Key Takeaways

  • The Borders button is on the Home tab in the ribbon, and the dropdown menu shows you a preview of where each border will appear.
  • Use Outside Borders to outline a group of cells with a single frame, or All Borders to put lines between every cell.
  • You can change border color and thickness by opening the Format Cells dialog, which gives you pixel-level control over each edge.
  • Borders you create stay with the cells even if you move or copy them to another part of the spreadsheet.

Selecting cells before you add a border

You must select the cells first. Click on a single cell, or click and drag to select a range. To select non-adjacent cells — for example, cells A1 and C5 that are not next to each other — click the first cell, then hold Ctrl (or Cmd on Mac) and click each additional cell.

If you want to border an entire row or column, click the row number on the left side or the column letter at the top. The whole row or column highlights, and any border you apply will affect every cell in it.

Using the Format Cells dialog for detailed border control

For more options than the quick dropdown offers, right-click your selected cells and choose Format Cells. Click the Border tab. This dialog lets you set the border style (solid, dotted, dashed), the thickness in points, and the color separately from the outline style.

In the Presets section at the top, you see icons for None, Outline, and Inside. Click Outline to put a border around the outside edge only. Click Inside to add lines between cells but not around the perimeter. You can also click individual edges in the preview box to add or remove borders on just that side.

Once you have set your style, thickness, and color, click OK. The border applies to all selected cells at once.

Removing or changing borders you have already added

To remove a border, select the cells again, open the Borders dropdown on the Home tab, and click No Border. All borders on those cells disappear immediately.

To change only the color or thickness of an existing border without removing it, select the cells, open Format CellsBorder tab, and pick a new color or line style. The preview shows you what the change will look like before you click OK.

Common border patterns for tables and data

For a data table with headers, select the header row and apply All Borders to put lines around each cell. Then select the data rows below and apply All Borders as well. This creates a grid that is easy to read.

For a simple outline around a block of data, select all the cells together and use Outside Borders. This puts a frame around the entire selection without adding lines between individual cells, which works well when you want to group related information without cluttering the sheet.

If you want a thicker border to separate sections of a spreadsheet, use the Format Cells dialog and set the line thickness to a higher point value — 2 pt or 2.25 pt creates a visible divider without being overwhelming.

Borders in different Excel versions

The Borders button location and appearance are the same in Excel 2016, 2019, 2021, and Microsoft 365. If you are using an older version like Excel 2010 or 2013, the button is still on the Home tab but may look slightly different. The dropdown menu and Format Cells dialog work the same way.

In Excel Online (the web version), the Borders button is also on the Home tab. The dropdown offers the same preset options, though the Format Cells dialog is simpler and may not show all the line style choices available in the desktop version.

Frequently Asked Questions

Can I apply a border to just one side of a cell?

Yes. Open Format Cells, go to the Border tab, and click the edges in the preview box where you want borders. Click the top edge to add only a top border, the bottom edge for only a bottom border, and so on. You can combine any edges you want.

What if I want a thicker or colored border?

Use the Format Cells dialog instead of the quick dropdown. On the Border tab, you can set the line thickness (measured in points) and pick a color from the color palette. The preview shows you exactly what it will look like before you apply it.

Do borders print when I print the spreadsheet?

Yes, borders print by default. If you do not want them to print, select the cells, open Format Cells, go to the Border tab, and click None to remove them. Alternatively, you can hide them on screen without removing them by using the View tab and toggling gridlines off, though this does not affect what prints.

Can I copy borders from one cell to another without copying the data?

Yes, use the Format Painter tool. Click the cell with the border you want to copy, click the Format Painter button on the Home tab (it looks like a paintbrush), then click or drag across the cells where you want that border applied. The border copies but the cell contents stay the same.