Adding a border in Excel is a quick way to make your data easier to read and more professional. You can outline a single cell, a range of cells, or the entire table in just a few clicks using the Borders button on the Home tab. This guide covers the fastest method, plus how to customize line style and color, and how to apply borders to a whole data range automatically.
What You’ll Need
- A computer with Microsoft Excel (Microsoft 365, Excel 2021, 2019, or 2016) — the steps are nearly identical on Mac and Excel for the web.
- An open workbook with the cells you want to border.
- No special add-ins or formulas are required.
Step-by-Step
- Select the cells you want to add a border to. Click and drag to select a range, or click a single cell. To select the entire worksheet, click the triangle at the top-left corner (where the row numbers and column letters meet).
- Go to the Home tab on the ribbon. Look for the “Font” group — the Borders button is the small square with four lines next to the font color icon (it looks like a window pane).
- Click the Borders button (not the arrow next to it) to apply the last-used border style instantly. If you haven’t used borders before, it will apply a thin black bottom border by default.
- For more options, click the small arrow next to the Borders button. A dropdown menu appears with presets like “Bottom Border,” “Top Border,” “Left Border,” “Right Border,” “All Borders,” “Outside Borders,” and “Thick Box Border.” Choose “All Borders” to put a line around every cell in your selection.
- To draw borders manually, select “Draw Border” from the same dropdown. Your cursor becomes a pencil. Click and drag along the edges where you want lines. Use “Draw Border Grid” to draw internal lines as well. Press Esc to stop drawing.
- To customize line style or color, go to the Borders dropdown and choose “Line Color” or “Line Style” first. Pick a color (e.g., red) or a style (e.g., dashed). Then use “Draw Border” or re-apply a preset — the new style will be used.
- To remove all borders, select the cells, open the Borders dropdown, and choose “No Border.”
- For a keyboard shortcut: select the cells and press Ctrl+Shift+& (Windows) or Cmd+Option+0 (Mac) to apply an outline border. To remove borders, press Ctrl+Shift+_ (Windows) or Cmd+Option+_ (Mac).
- To apply borders to a data range automatically (e.g., a table), select the data, then press Ctrl+T (Windows) or Cmd+T (Mac) to create a Table. Tables get a default border style that you can change under Table Design > Table Styles. This also adds filter arrows and structured references.
Common Mistakes
- Clicking the Borders button instead of the arrow — this applies the last style, which may not be what you want. Always use the arrow to see options.
- Selecting the wrong range — if you select entire columns, borders will apply to all rows, which can make the file heavy and visually cluttered.
- Using “All Borders” when you only want an outline — “All Borders” adds lines inside the selection, which is often not desired for a title row.
- Forgetting to remove old borders — when you copy/paste cells, borders come along. Use “No Border” to clear them.
- Applying borders to merged cells incorrectly — if you merge cells first, then border, the border applies to the merged area, which is fine, but if you border first and then merge, the internal borders may appear oddly.
Tips
- Use the Format Painter to copy borders from one range to another: select the cell with the desired border, click the Format Painter icon (Home tab, Clipboard group), then click the target range.
- Create a custom border style by going to the Borders dropdown > “More Borders” (or press Ctrl+1 and go to the Border tab). Here you can set line style, color, and choose which edges to apply (inside, outside, or individual).
- Use thick outside borders for summary tables — select the entire table, then choose “Thick Box Border” from the dropdown.
- For print, ensure borders are visible — if you don’t see borders on the printed page, check Page Layout > Sheet Options > Print > Gridlines (but note that gridlines are different from borders; borders always print).
- On Excel for the web, the Borders button is in the same place (Home tab > Font group). The dropdown has fewer presets but includes “All Borders” and “Outside Borders.” Keyboard shortcuts work in the web version too.
Troubleshooting
Borders don’t appear on screen. First, check that you actually applied a border (look at the Borders button — it should show a highlighted style). If the border is white or very light, it may be invisible against a white background — change the line color to black or a darker shade. Also, ensure the cells are not filled with a color that hides the border (e.g., a white fill over a white border).
Borders disappear when you print. Borders should print by default, but if they don’t, check the print preview. If you see gridlines but not borders, you may have accidentally applied “Gridlines” instead of borders. Gridlines are a page layout option (Page Layout > Sheet Options > Print > Gridlines) — they print only if checked, but they are not the same as borders. To fix, re-apply borders using the Borders button.
Borders are not applied to the whole selection. If you selected a range and only the outside border appears, you likely chose “Outside Borders” instead of “All Borders.” Re-open the dropdown and pick “All Borders.”
Drawing borders doesn’t work. The Draw Border tool can be finicky. Make sure you are in “Draw Border” mode (the cursor should be a pencil). If it isn’t, go to the Borders dropdown and select “Draw Border” again. Also, if you have a merged cell, drawing may not work as expected — unmerge first or use the preset buttons.
Keyboard shortcut does nothing. The shortcut Ctrl+Shift+& applies an outline border. If it doesn’t work, check that your keyboard layout isn’t intercepting the key combination (e.g., some non-US keyboards use different keys). Also, ensure you have selected cells first.
Frequently Asked Questions
Can I add a border to only one side of a cell? Yes. Select the cell, open the Borders dropdown, and choose “Left Border,” “Right Border,” “Top Border,” or “Bottom Border.” Or use “More Borders” to specify which edges.
How do I make a double-line border? Go to the Borders dropdown > “More Borders” (or press Ctrl+1). In the Border tab, under “Style,” choose the double line (the second option from the bottom). Then click the edge buttons (top, bottom, left, right) to apply it.
Can I save a custom border style to reuse later? Excel doesn’t have a direct “save border style” feature, but you can copy the cell with the border and use Format Painter. Alternatively, create a cell style: Home > Cell Styles > New Cell Style, then format the border there. That style will be available in the Cell Styles gallery.
Why do my borders not print even though they show on screen? This usually happens if you have set the print area to exclude the bordered cells, or if the border color is too light (e.g., white). Check the print preview and adjust the border color to a darker shade. Also, ensure the cells are within the print area (Page Layout > Print Area > Set Print Area).
Does adding borders affect formulas or calculations? No. Borders are purely visual formatting and have no effect on data, formulas, or calculations.
How do I remove borders from a large range quickly? Select the range, open the Borders dropdown, and choose “No Border.” This removes all borders from the selection instantly.
Related
- Data Entry Software for Small Businesses: Top Picks
- Random 8 Digit Number: How to Get One Fast
- Require Data Entry Operator? What It Means
Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.
More in How-to basics
- How to Use a Different Slide Master in PowerPointYes. A PowerPoint presentation can contain more than one slide master, so you can give selected slides a…
- Delete Duplicates in Excel: Keep One Copy of Each RowTo delete duplicates in Excel and keep one copy, select the entire data range, choose Data > Remove…
- Weekly Budget Spreadsheet: Build a Clear Excel PlanA weekly budget spreadsheet is a simple way to compare the money you expect to receive with the…
- How to Zoom an Excel Sheet Using Keyboard ShortcutsIn Excel for Microsoft 365 on Windows, press Alt+W, then Q to open the Zoom dialog. Choose a…
- Excel Highlight Keyboard Shortcut: What Actually WorksIn Excel for Microsoft 365 on Windows, select the cell or range and press Alt+H, H to open…
- Google Sheets Inventory Spreadsheet: Setup and TipsYes. Google Sheets can serve as an inventory spreadsheet for a small shop, office, classroom, or household: list…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.