The fastest way to add a border
Open your spreadsheet and select the cells you want to border. Click the down arrow next to the border icon in the Home tab — it looks like a small square with lines around it. Choose the border style you want from the menu that appears. Excel will apply that border to your selection immediately.
The border icon is in the Font group on the Home tab, near the fill color button. If you do not see it, your ribbon may be collapsed — click the arrow at the far right of the toolbar to expand it.
Key Takeaways
- The border button is on the Home tab in the Font group, and the down arrow next to it opens a menu of preset border styles.
- You can apply borders to all four sides at once, just the outside edge, or only specific sides by choosing the right preset.
- The Format Cells dialog gives you control over line style, thickness, and color if you need something the presets do not offer.
- Borders stay in place when you copy cells, but you can remove them by selecting the cells and choosing "No Border" from the border menu.
Using the border presets for common layouts
The border menu shows you several ready-made options. "All Borders" puts a line on all four sides of every cell in your selection. "Outside Borders" draws a box around the entire selection without dividing the cells inside. "Top and Bottom Border" adds lines only to the top and bottom edges, which is useful for headers or totals rows.
Click the preset that matches what you need. If none of them do exactly what you want, you can use the Format Cells dialog instead — right-click your selection, choose Format Cells, and go to the Border tab to build a custom border line by line.
Choosing line style and color in Format Cells
Right-click the cells you want to border and select Format Cells. Click the Border tab. On the left side under "Presets," you see the same options as the toolbar menu. On the right side under "Border," you can click individual edges of the preview box to add or remove borders from specific sides.
At the top of the dialog, you can change the line style — solid, dotted, dashed, or double lines. Next to that, choose the line thickness. Below the style options, pick a color if you want something other than black. When you have the border the way you want it, click OK.
Removing borders you no longer need
Select the cells with borders you want to remove. Click the down arrow next to the border icon on the Home tab and choose "No Border." All borders on those cells disappear immediately.
If you want to remove borders from only certain sides of a cell, use the Format Cells dialog instead. Right-click, choose Format Cells, go to the Border tab, and click the edges of the preview box to toggle them off. An edge that is highlighted will have a border; an edge that is not highlighted will not.
Borders do not affect your data when you copy or print
When you copy cells with borders to another location, the borders copy along with the data. If you want to copy only the data without the borders, right-click the destination cells and choose Paste Special. Click the down arrow next to Paste Special and select "Paste Special" again to open the full dialog. Uncheck the "Borders" box and click OK.
Borders print exactly as they appear on screen. If you want to hide gridlines on your printed sheet but keep your borders, that is fine — borders are separate from gridlines and will still show up in print.
Common mistakes and how to fix them
The most common mistake is selecting only one cell when you meant to select a range. If your border appears on only one cell, click somewhere else to deselect, then click and drag to select all the cells you want to border at once. You can also click the first cell, hold Shift, and click the last cell in the range you want.
Another mistake is applying a border and then not seeing it because the line color is the same as your background. If this happens, select the cells again, open Format Cells, go to the Border tab, and choose a darker color or a different line style. Black usually shows up clearly on any background.
Using borders with merged cells
Borders work on merged cells, but the border applies to the entire merged area as one unit, not to individual cells within it. If you merge cells and then add a border, you get one border around the whole merged cell. You cannot add borders between the cells that were merged together.
If you need borders between merged cells, you have to unmerge them first. Select the merged cell, right-click, and choose Format Cells. On the Alignment tab, uncheck "Merge cells" and click OK. Now you can add individual borders to each cell.
Frequently Asked Questions
Can I add a border to just one side of a cell?
Yes. Right-click the cell, choose Format Cells, go to the Border tab, and click only the edge you want in the preview box on the right. You can add a border to the top, bottom, left, right, or any combination of those four sides.
What is the difference between borders and gridlines?
Gridlines are the faint gray lines you see between every cell by default. Borders are lines you add yourself and can be any color, thickness, or style. Gridlines do not print unless you turn that on separately; borders always print. You can hide gridlines without affecting borders.
Why does my border look different on screen than it does when I print?
Your printer may render thin lines differently than your monitor does. If a thin border looks too faint in print, select the cells again, open Format Cells, go to the Border tab, and choose a thicker line style. Test print a small section to see if the thicker border looks better.
Can I copy a border style from one cell to another without copying the data?
Yes, use the Format Painter. 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 and drag across the cells where you want that border. The border style copies but the data stays the same.
Do borders affect how Excel calculates formulas?
No. Borders are purely visual and do not change any calculations, data, or formulas. You can add or remove borders without affecting anything in your spreadsheet except how it looks.