Adding a border to cells in Excel
To add a border in Excel, select the cells you want to outline, then use the border tool in the Home tab. Click the small arrow next to the border icon (it looks like a square with lines), and choose from preset border styles like "All Borders" or "Outside Borders". You can also right-click the selected cells, choose Format Cells, go to the Borders tab, and pick exactly which edges get a line and what style that line should be.
The fastest way for most people is the preset options — they handle the common cases without extra steps. The Format Cells route gives you more control if you need borders only on certain sides, or if you want a thicker line, or a different color.
Key Takeaways
- The border button is in the Home tab of the ribbon, marked with a small square outline and a dropdown arrow next to it.
- Preset options like "All Borders" and "Outside Borders" work for most tasks and take one click after you select your cells.
- Right-click and Format Cells gives you control over which sides get borders, line thickness, and line color.
- You can save a border style as part of a cell style so you do not have to recreate it for every table.
- Borders print by default, but you can change your print settings if you want them to show on screen only.
Using the border presets from the Home tab
Open your spreadsheet and select the cells where you want borders. Click anywhere in the range — a single cell, a row, a column, or a rectangular block. Then go to the Home tab at the top of the screen. Look for the border icon in the Font group (it is a small square with lines around it). Click the small arrow next to it, not the icon itself.
A menu will drop down showing you preset options. "All Borders" puts a line on every edge of every cell in your selection. "Outside Borders" puts a line only around the outer edge of the whole block. "Top and Bottom Border" adds lines only to the top and bottom of each cell. Pick the one that matches what you need, and Excel applies it instantly.
These presets use a standard thin black line. If you need a different color, thickness, or pattern, you will need to use the Format Cells method instead.
Customizing borders with Format Cells
Select your cells, then right-click and choose "Format Cells" from the menu. Click the Borders tab at the top of the dialog box. You will see three sections: Line Style (where you pick thin, thick, dotted, or dashed), Line Color (where you pick the color), and Presets and Preview (where you choose which edges get the border).
Start by picking your line style from the list on the left — click the style you want. Then pick a color from the Color dropdown if you do not want black. Now look at the Presets section: you can click "All", "Outside", "None", or "Left" to apply borders to specific edges. Or use the Preview box on the right: click the edges of the preview square to toggle borders on and off for that side only.
Once you have set up the border the way you want it, click OK. The border appears on your cells right away. If you need to change it later, go back to Format Cells and adjust the settings.
Removing borders you no longer need
Select the cells with borders you want to remove. Go to Home tab, click the border dropdown arrow, and choose "No Border". That removes all borders from those cells at once.
If you only want to remove borders from certain sides — for example, you want to keep the bottom border but remove the top — use Format Cells instead. Select the cells, right-click, choose Format Cells, go to Borders, and in the Preview section click the edges you want to remove. Click OK when you are done.
Borders on merged cells and special situations
Borders work on merged cells the same way they work on regular cells. Select the merged cell, apply the border, and it outlines the entire merged area. If you merge cells that already have borders, Excel removes the internal borders and keeps only the outer edge.
If you have a table with headers and you want a thicker border under the header row, select just that row, go to Format Cells, pick a thicker line style, and apply it to the bottom edge only. This makes the header stand out without adding borders everywhere.
Saving a border style for reuse
If you use the same border setup repeatedly, you can save it as a cell style so you do not have to recreate it each time. Format a cell with the borders you want, then go to Home tab and click the small arrow under "Cell Styles". Choose "New Cell Style", give it a name like "Table Header", and click OK. Now that style appears in your Cell Styles menu, and you can apply it to any cells by selecting them and clicking the style name.
This is especially useful if you create a lot of tables or reports with the same look. You set it up once, and then it takes one click to apply it to new cells.
Printing borders and checking how they look
Borders print by default when you print your spreadsheet. If you want to see how they will look on paper before you print, go to File, click Print Preview, and look at the preview on the right side of the screen. You will see the borders exactly as they will appear on the printed page.
If you want borders to show on screen but not print, or the other way around, you can control that through the Page Layout tab. Click Page Layout, then click the small arrow in the Sheet Options group. Check or uncheck "Print Gridlines" depending on what you want. Note that this setting affects gridlines (the faint gray lines between all cells), not the borders you drew — borders always print unless you delete them.
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 Borders, and in the Preview section click only the side you want. For example, click the bottom edge of the preview square to add a border only to the bottom of that cell. Click OK to apply it.
How do I make a border thicker or change its color?
Right-click the cells with the border, choose Format Cells, go to Borders, and pick a thicker line style from the Line Style list on the left. For color, click the Color dropdown and choose a new color. Then click OK. The border updates with your changes.
What is the difference between borders and gridlines?
Gridlines are the faint gray lines Excel shows between every cell by default. Borders are lines you draw yourself and can be any color, thickness, or pattern. Gridlines do not print unless you turn on the print gridlines option. Borders always print unless you delete them.
Can I copy a border from one cell to another without copying the data?
Yes, use Format Painter. Click the cell with the border you want to copy, click the Format Painter button (it looks like a paintbrush) in the Home tab, then click the cell where you want the border. The border copies but the data stays the same.
Why do my borders look different on screen than in print preview?
Your screen zoom level can make borders look thicker or thinner than they actually are. Check your zoom in the bottom right corner of the screen — zoom to 100% to see borders as they will print. You can also use Print Preview to see exactly how they will look on paper.