The fastest way to add borders to all cells

To add borders to every cell in your spreadsheet at once, select all cells, open the border menu, and choose the option for all borders. In Excel on Windows or Mac, press Ctrl+A (or Cmd+A on Mac) to select the entire sheet, then go to the Home tab, click the small arrow next to the border icon in the ribbon, and select All Borders. The border appears instantly on every cell.

If you want to add borders to only a specific range instead of the whole sheet, click and drag to select just those cells, then follow the same border menu steps. The process is identical — only the selection changes.

Key Takeaways

  • Press Ctrl+A (or Cmd+A on Mac) to select all cells, then use the Home tab border menu to apply borders to the entire sheet at once.
  • You can select a smaller range of cells by clicking and dragging, then apply borders to only that selection instead of the whole sheet.
  • The border icon in the Home tab ribbon has a dropdown arrow that shows preset options like All Borders, Outline, and Inside borders.
  • You can customize border style, color, and thickness by choosing More Borders from the dropdown menu to open the Format Cells dialog.

Where to find the border tool in the ribbon

The border icon sits in the Home tab of the ribbon, in the Font group. It looks like a small square with lines around it. Click the tiny arrow next to it to open a dropdown menu showing preset border options. If you do not see the arrow, you may need to widen your ribbon or look for the icon in a collapsed menu.

On older versions of Excel, the border tool may appear in a different location within the Home tab, but it is always in the Font or Alignment section. If you cannot locate it, you can also right-click any selected cell and choose Format Cells, then click the Borders tab to access the same options.

Preset border options and what they do

The dropdown menu offers several preset choices. All Borders adds lines around and between every cell in your selection. Outline adds a border only around the outer edge of your selection, leaving the inside cells without dividing lines. Inside adds lines only between cells, with no outer border. None removes all borders from the selection.

Most people use All Borders when they want a grid effect across their entire data. Use Outline when you want to frame a table or section without cluttering the inside. Use Inside when you already have an outline and just want to separate the rows and columns within it.

Customizing border style, color, and thickness

If the preset options do not match what you need, select your cells and click the dropdown arrow next to the border icon, then choose More Borders at the bottom of the menu. This opens the Format Cells dialog with the Borders tab already selected.

In this dialog, you can choose a line style (solid, dashed, dotted, or double), pick a color from the color palette, and select a thickness. After you set these options, click one of the preset diagrams on the right side of the dialog to apply your custom style to all borders, outline only, inside only, or a custom pattern. Click OK to apply the changes.

Removing borders from cells

To remove borders from cells, select the cells you want to change, click the border dropdown arrow, and choose No Border. This removes all borders from that selection instantly. If you want to remove borders from the entire sheet, press Ctrl+A first to select all cells, then choose No Border.

You can also use the Format Cells dialog to remove borders selectively. Open Format Cells, go to the Borders tab, and click the diagram that shows no lines, then click OK. This method is useful if you want to keep some borders and remove only specific ones.

Borders in different versions of Excel

Excel on Windows and Excel on Mac have the same border tools in the same location — the Home tab. The steps are identical on both systems, except you use Cmd+A instead of Ctrl+A on Mac. Excel Online (the web version) also has a border tool, though it may be in a slightly different menu location depending on your screen size.

If you are using an older version of Excel (2010 or earlier), the ribbon layout may differ slightly, but the border icon is still in the Home tab. Right-clicking and choosing Format Cells works on all versions if you cannot find the ribbon icon. The Format Cells dialog looks the same across all versions.

Frequently Asked Questions

Can I add borders to just the outside of a group of cells?

Yes. Select your cells, click the border dropdown, and choose Outline. This adds a border only around the outer edge of your selection, leaving the inside cells separated by gridlines but not by printed borders.

How do I add borders to only some cells, not all?

Click and drag to select only the cells you want to border, then use the border menu as usual. Only the cells you selected will receive borders. You can repeat this process for different sections of your sheet with different border styles if needed.

What if the border icon is not visible in my ribbon?

Right-click any cell and choose Format Cells, then click the Borders tab. This opens the same border options without using the ribbon. You can also try widening your Excel window — the ribbon sometimes hides icons when the window is too narrow.

Can I use different border styles for different parts of my spreadsheet?

Yes. Select one section, apply borders with one style, then select a different section and apply a different style. Each selection keeps its own border settings. Use the Format Cells dialog to customize line thickness and color for each section separately.

Do borders print when I print my spreadsheet?

Yes, borders print by default. If you do not want them to print, select the cells with borders, open Format Cells, go to the Borders tab, and choose No Border before printing. You can also adjust print settings to exclude borders without removing them from the spreadsheet itself.