To create a border in Excel, select the cells you want to outline, then open the Home tab, click the Borders dropdown in the Font group, and pick the border style you want (for example Outside Borders or All Borders). On Excel for the web and on the mobile apps the same control lives in the formatting tools, with slightly different icons. That single move covers most everyday cases; the steps below cover the exact clicks, how to draw borders by hand, how to make them permanent, and what to do when a border refuses to show.

What You'll Need

  • A copy of Excel on desktop (Microsoft 365, Excel 2021 or 2019), Excel for the web, or the Excel app on iPhone, iPad or Android. The desktop version gives you the most control, but everything essential is available elsewhere.
  • A workbook with data already typed into the cells you want to frame. Borders wrap around what is there; they do not add content.
  • Optionally, a printer or export tool if the border is for a printed report, so you can check how it renders.

Menu labels, icon positions and dropdown wording can differ slightly between Excel versions, platforms and languages, so treat the exact names below as the current English desktop wording and look for the closest match in your build.

Step-by-Step

  1. Select the range. Click the first cell you want framed, then drag to the last, or hold Shift and click the far corner. To frame a whole table, click any cell inside it and press Ctrl+A (Cmd+A on Mac) once to select the current region. To frame an entire column or row, click its letter or number heading.
  2. Go to the Home tab. The Borders control sits in the Font group, next to the font colour and fill colour buttons. It looks like a small square grid with a dropdown arrow beside it.
  3. Open the Borders dropdown. Click the arrow, not the icon itself. Clicking the icon applies whatever border was used last, which is a common source of surprise results.
  4. Choose a preset. Outside Borders puts a line around the whole selection only. All Borders puts lines around every cell. Thick Box Border adds a heavier outline for headings. Bottom Border or Top Border adds a single line along that edge. Pick the one that matches how you want the grid to read.
  5. Refine with More Borders if needed. Choose More Borders (or press Ctrl+1, Cmd+1 on Mac, to open Format Cells and select the Border tab) to set line style, weight and colour separately, and to apply different edges to different sides in one pass. Choose the line style first, then the colour, then click the edges in the preview box.
  6. Check the result. Click a blank cell to deselect and look at the range. Borders sit on cell edges, not around text, so a line between merged cells may appear outside the merge rather than through it.
  7. Draw a border freehand (desktop only). Open the Borders dropdown and choose Draw Border, then drag along the edges you want to outline. Use Draw Border Grid to drag a box and grid the cells inside it. Press Esc when finished. This option is not available in Excel for the web or the mobile apps.
  8. Copy the formatting elsewhere. With the bordered range selected, click the Format Painter brush on the Home tab, then drag over the destination cells. Double-click Format Painter to keep it active for several ranges, and press Esc to stop.

Common Mistakes

Clicking the icon instead of the arrow. The icon repeats the last-used border, so picking a different style and then clicking it can produce a thick box or no visible change. Always use the dropdown arrow when choosing a new style.

Selecting only part of the range. A border drawn on a partial selection will leave one side open. Select the full block first, then apply Outside Borders once.

Confusing borders with gridlines. Gridlines are the faint grey lines Excel shows on screen; they do not print by default and are not borders. Applying a white or very light border can look identical to no border until you print.

Merged cells breaking the outline. If a row of merged cells sits at the edge of your selection, the border may only appear around the merged area. Unmerge, apply the border, and remerge if you need a clean line.

Borders disappearing after pasting. Pasting values only (Paste Special > Values) drops formatting, including borders. Use regular paste or Paste Special > Formats to keep them.

Tips

Use a heavier weight or a darker colour for the outside edge and a thin, light grey for internal lines. That combination reads as a professional table and prints cleanly in black and white.

Set borders on a range before you type, not after, if you are building a form; the lines stay in place as data grows within the range.

To keep the border from shifting when you sort or filter, apply it as a proper Excel Table (Insert > Table) rather than manual cell borders. Table styles supply banding and borders that expand with new rows.

If you want a border around a chart, the whole worksheet or a text box, use the shape or chart formatting options instead: right-click the object and choose Format, then set its outline. Cell borders do not apply to these objects.

Save a bordered layout as a cell style (Home > Cell Styles > New Cell Style) so you can reuse it in other workbooks without rebuilding the lines each time.

Troubleshooting

No border appears at all. Confirm the formatting cells are not protected: a protected sheet blocks formatting changes. On the Review tab, check Sheet Protection; you will need the password to unprotect it. If the workbook is shared and locked, ask the owner.

The border is there but invisible on screen. It may be white, very light or a style that blends with the fill colour. Reopen More Borders and set a darker colour. Also check that Gridlines is off on the View tab, which can make faint borders harder to spot.

Border prints but does not show on screen, or the reverse. Check File > Options > Advanced > Display options for this worksheet, where gridline and border display settings differ, and verify the print area and page setup. Print Preview is the reliable check.

Only some cells are framed. Re-select the whole range and choose All Borders, then Outside Borders on top. A common cause is overlapping selections where one cell had a pre-existing border that overrides the preset.

The border vanished after editing. Inserting rows above a bordered block does not always carry the border down. Select the block and reapply Outside Borders, or convert the data to a Table for automatic borders.

Draw Border does nothing. It is desktop-only. On the web or in the mobile apps, use the Borders presets in the formatting menu instead, which is the officially supported path there.

Frequently Asked Questions

How do I remove a border in Excel?

Select the cells, open the Borders dropdown on the Home tab, and choose No Border. To remove individual lines, open More Borders and click the relevant edge in the preview to clear it.

Do Excel borders print by default?

Yes. Borders are formatting and print normally. Gridlines are the faint screen-only lines and do not print unless you enable Print gridlines in Page Layout.

Can I add a border around an entire worksheet?

Not as a single cell border for the whole sheet. Select the range you need, apply Outside Borders, or use a shape or rectangle with an outline for a decorative frame.

Why does my border look doubled?

Adjacent cells each contribute their own edge, so two lines can sit side by side. Selecting the whole range and applying All Borders in one pass usually cleans this up.

Can I copy a border to other cells?

Yes. Use Format Painter, or copy the cell and use Paste Special > Formats. Both carry the border without copying the content.

Is there a keyboard shortcut for borders?

There is no single dedicated shortcut for all borders. Ctrl+1 (Cmd+1 on Mac) opens Format Cells, where the Border tab gives full control with the keyboard.