The quickest 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), then choose the border style you want — such as "All Borders" to put lines around every cell, or "Outside Borders" to frame just the outer edge of your selection.
That's the whole process for most borders. If you need something more specific — like a thick line on one side only, or a dotted border instead of solid — the border menu has those options too. You can also right-click your selection, choose "Format Cells", go to the Border tab, and build a custom border by clicking the sides you want to add lines to.
Key Takeaways
- The border button is in the Home tab as a small square icon with a dropdown arrow next to it.
- Preset options like "All Borders" and "Outside Borders" cover most common needs without opening a dialog.
- The Format Cells dialog lets you choose line thickness, style (solid, dotted, dashed), and color, and apply them to specific sides of cells.
- You can remove borders by selecting cells and choosing "No Border" from the same menu.
Using the border presets
The dropdown menu next to the border icon shows you several ready-made options. "All Borders" puts a line on every side of every selected cell. "Outside Borders" draws a frame 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.
These presets apply instantly — no dialog box, no extra steps. If you select a range and apply "All Borders", every cell in that range gets bordered on all four sides right away. This is the fastest route when the preset matches what you need.
Building a custom border in Format Cells
Right-click your selected cells and choose "Format Cells", or press Ctrl+1 on Windows or Command+1 on Mac. Click the Border tab at the top of the dialog box. You'll see a preview box in the center showing what your border will look like.
On the left side, choose your line style (solid, dotted, dashed, double, etc.) and thickness. On the right, pick a color if you want something other than black. Then click the edges of the preview box where you want lines to appear — click the top edge to add a top border, the left edge for a left border, and so on. You can also click the preset buttons above the preview (like the box icon for all borders) to apply multiple sides at once.
Once you've built the border you want, click OK. The border applies only to the cells you selected, so you can create different borders for different parts of your spreadsheet.
Removing borders you no longer need
Select the cells with borders you want to remove. Click the border dropdown and choose "No Border". All borders on those cells disappear immediately.
If you only want to remove borders from certain sides — say, you want to keep the top border but remove the bottom one — use the Format Cells dialog again. Go to the Border tab, click the edges of the preview box to toggle them off, and click OK.
Borders for tables and data ranges
If you've formatted your data as a table (by selecting it and going to Insert > Table), Excel applies borders automatically. You can change the table style to adjust the border appearance, or right-click the table and choose "Table Design" to pick a different preset look.
For regular ranges that aren't formatted as tables, borders give you control over exactly which lines appear where. This is especially useful when you're building a form, a report, or a layout where you want certain cells grouped visually.
Copying borders to other cells
If you've created a border you like and want to use it elsewhere, select the cell with that border. Click the Format Painter icon in the Home tab (it looks like a paintbrush), then click and drag across the cells where you want the same border applied. The border copies over instantly.
Format Painter copies all formatting — font, color, borders, everything — so it's faster than rebuilding the same border by hand. If you only want to copy the border and not the other formatting, use the Format Cells dialog to apply the border manually to the new cells instead.
Border colors and line styles
In the Format Cells dialog, the color dropdown lets you pick any color for your border. The line style dropdown shows you options like solid, dotted, dashed, double, and wavy lines. Thicker line weights are useful for emphasizing section breaks or totals rows.
Keep in mind that borders are visible on screen and in printed copies. If you're printing your spreadsheet, test the border appearance on a sample page first — some colors and thin line styles may not show up clearly on paper depending on your printer.
Frequently Asked Questions
Can I add a border to just one side of a cell?
Yes. Use the Format Cells dialog, go to the Border tab, and click only the sides of the preview box where you want lines. You can add a border to the top only, the left and right only, or any combination of sides.
What's the difference between "All Borders" and "Outside Borders"?
"All Borders" puts a line on every side of every cell in your selection, creating a grid. "Outside Borders" draws a frame around the entire selection without adding lines between the cells inside. Use "All Borders" for data tables and "Outside Borders" to highlight a single block of information.
Do borders print when I print my spreadsheet?
Yes, borders print by default. If you don't want them to print, select the cells, open Format Cells, go to the Border tab, and choose "No Border". You can also adjust print settings to exclude borders, but removing them from the cells themselves is simpler.
Can I use borders to separate headers from data?
Absolutely. Select your header row, open Format Cells, and add a thick bottom border. This visually separates the headers from the data below. You can also use a different border color to make the separation even clearer.
How do I remove all borders from a spreadsheet at once?
Select all cells by clicking the select-all button (the small box at the intersection of the row and column headers), then click the border dropdown and choose "No Border". All borders in the entire sheet disappear.