How to Add an Outside Border in Excel

How-to basics · Updated November 27, 2026

Adding an outside border in Excel draws a clean box around a selected range of cells, which is useful for separating a title block, a summary table, or a data entry area from the rest of the worksheet. You can do it in two clicks: select the cells, go to the Home tab, click the Borders drop-down arrow (next to the gridlines icon), and choose Outside Borders. For more control over line style and color, use the More Borders option at the bottom of that same menu. This guide walks through both methods, plus how to remove or edit the border later.

What You’ll Need

  • Microsoft Excel (any recent version; steps are for Excel 365 on Windows, with Mac differences noted).
  • A worksheet with data or a blank range you want to outline.
  • No special add-ins or permissions are required—borders are a built-in formatting feature.

Step-by-Step

  1. Select the range of cells you want to surround with an outside border. Click and drag over the cells, or click the first cell, hold Shift, and click the last cell to select a rectangular block. For non-adjacent ranges, hold Ctrl (or Cmd on Mac) while clicking each area—but note that the outside border will apply to the entire selection as a single group, not to each sub-range individually.
  2. Go to the Home tab on the ribbon. If you are on Excel for Mac, the ribbon is similar; if you are using Excel for the web, the Home tab is also present.
  3. Find the Borders button in the Font group. It looks like a square divided into four smaller squares with a grid. It sits to the right of the underline button. The button may show a line icon if you have used a border style recently.
  4. Click the drop-down arrow next to the Borders button (not the button itself, unless you want to repeat the last border style). A menu of border options appears.
  5. Choose “Outside Borders” from the menu. The icon shows a box with a thick outline and no internal lines. Excel immediately draws a thin black line around the outer edge of your selected range.
  6. To customize the line style or color, click the same drop-down arrow and select “More Borders…” at the bottom. This opens the Format Cells dialog box on the Border tab.
  7. Pick a line style from the Style list (e.g., a thick solid line, a dashed line, or a double line). Choose a Color from the drop-down if you want something other than black.
  8. Click the “Outline” preset button in the Presets section of the dialog. This applies the chosen style and color to the outside edges only. If you also want internal lines, you would click “Inside” instead, but for an outside border, “Outline” is the correct choice.
  9. Click OK to apply the border. The dialog closes, and your selection now has the custom border.
  10. To remove an outside border, select the cells, open the Borders drop-down, and choose “No Border”. This removes all borders—inside and outside—from the selection.

If you need to apply the same outside border to multiple separate ranges, select the first range, apply the border, then with the range still selected, hold Ctrl (or Cmd on Mac) and click other cells or ranges. Then apply the border again—it will apply to all selected areas as a group.

Common Mistakes

  • Clicking the Borders button instead of the drop-down arrow: The button itself applies the last used border style, which might not be “Outside Borders.” Always click the small arrow to see the full menu.
  • Selecting entire rows or columns when you only want a small area: This will put a border around the entire row or column, which can look messy. Select only the specific cells you need.
  • Using “All Borders” instead of “Outside Borders”: “All Borders” adds lines inside the selection as well, which is different. Double-check the icon before clicking.
  • Forgetting to choose “Outline” in the Format Cells dialog: If you select a line style and color but don’t click “Outline,” the border may not appear at all, or it may apply to internal edges if you clicked “Inside” by mistake.
  • Applying a border to merged cells incorrectly: If you merge cells first, the outside border applies to the merged area, which is usually what you want. But if you apply the border before merging, the border may not extend correctly over the merged area.

Tips

  • Use keyboard shortcuts for speed: On Windows, press Ctrl+Shift+& to apply a thin outside border to the selected cells. On Mac, use Cmd+Option+0 (zero) to apply the same. To remove borders, press Ctrl+Shift+_ (underscore) on Windows, or Cmd+Option+_ on Mac.
  • Create a custom border style once and reuse it: If you frequently use a thick blue border, set it up via More Borders, then right-click the Borders button and choose “Add to Quick Access Toolbar” (if available) to apply it with one click.
  • Use the Format Painter: Select a cell that already has the desired border, click the Format Painter icon (paintbrush) in the Home tab, then select the new range. This copies the border (and all other formatting) instantly.
  • Print consideration: By default, borders print. If you don’t want them to show in print, you can hide them by going to Page Layout > Sheet Options and unchecking “Print” under Gridlines—but that only affects gridlines, not borders. To remove borders for printing, you must remove them from the cells.
  • Combine with fill colors: An outside border around a lightly shaded area can make a table header stand out. Select the header range, add a fill color, then apply the outside border.

Troubleshooting

  • Border does not appear: First, check that you selected the correct range. Then, ensure you clicked “Outside Borders” or “Outline” in the dialog. If the border is white or very light, you may have chosen a light color—open More Borders and change the color to black or a darker shade. Also, check if the cell has a fill color that is hiding the border; borders are drawn on the edge, so a fill should not cover them, but if the fill is the same color as the border, it may look invisible.
  • Border applies to the wrong cells: This usually happens when you have merged cells or when you selected a range that includes hidden rows/columns. Unmerge cells if needed, or unhide rows/columns before applying the border.
  • Border disappears when you scroll or print: This is not typical; borders are persistent. If they disappear on screen, you may have accidentally toggled “View Gridlines” off, which makes the sheet look borderless. Go to View > Show > Gridlines to turn them back on. For printing, ensure the border is applied and the print area includes the cells.
  • Only part of the outside border shows: This can happen if the selected range is not contiguous or if there are hidden rows/columns that break the border. Select the entire range again, and make sure no rows or columns are hidden within it.
  • Can’t find the Borders button: If the Home tab is minimized, double-click the tab to expand the ribbon. On Excel for the web, the button is still in the Font group. If you are using a very old version of Excel, the button might be under Format > Cells > Border.

Frequently Asked Questions

  1. How do I add a thicker outside border?
    Select the cells, go to Home > Borders > More Borders. In the Style list, choose a thicker line (e.g., the second from the bottom, which is a medium solid line). Then click “Outline” and OK.
  2. Can I add an outside border to non-adjacent cells?
    Yes, hold Ctrl (or Cmd on Mac) and click each cell or range you want. Then apply the outside border. Excel will treat the entire selection as one group, so the border will go around the outer edges of the combined selection, not around each individual cell.
  3. Does the outside border print?
    Yes, borders are part of cell formatting and print by default. If you don’t want them to print, you must remove them before printing, or you can set the print area to exclude those cells.
  4. How do I remove only the outside border but keep inside borders?
    Select the cells, go to More Borders. In the dialog, click the “None” preset to clear all borders, then re-apply the inside borders using the “Inside” preset. There is no direct “remove outline only” option, so you have to rebuild.
  5. Why does my border look dashed even though I chose a solid line?
    This can happen if the column width is very narrow—the solid line may appear broken. Widen the columns, or zoom in to see the actual line. Alternatively, you may have accidentally selected a dashed style; check the Style list in More Borders.
  6. Can I save a custom border style for future use?
    Excel does not have a direct “save border style” feature, but you can create a cell style: select a cell with the desired border, go to Home > Cell Styles > New Cell Style, name it, and it will be available in the Cell Styles gallery. This saves the border along with other formatting.

Related

Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.

More in How-to basics

Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources

Spotted an error in this guide? Let us know.