In Excel: select the range and use the Borders dropdown on the Home tab — All Borders for a full grid — or press Ctrl+Shift+& for an outline and Ctrl+Shift+_ to remove borders.
On this page7
Select the cells that should get the border.
Open the Borders dropdown on the Home tab and pick a preset — All Borders, Outside Borders, Thick Box Border.
For control over style and colour, press Ctrl+1 and go to the Border tab.
In that dialog choose the line style and colour FIRST, then click the edges or the Outline/Inside presets.
Ctrl+Shift+& applies an outline to the selection; Ctrl+Shift+_ removes all borders.
For borders that follow the data, use Home ▸ Conditional Formatting ▸ New Rule with a formula and set a border in the Format dialog.
What this does
Borders are real formatting applied to cells, unlike gridlines, which are a screen guide that never prints by default. The Home ▸ Borders dropdown covers the common cases; the dialog behind "More Borders" (Ctrl+1 ▸ Border) is where line style, colour and individual edges live, and it works by clicking the preview diagram rather than by ticking a list. Two features are worth knowing: Draw Border, at the bottom of the dropdown, turns the cursor into a pen for freehand borders, and a conditional-formatting rule can apply a border, which is how you get a line that follows the data rather than the grid. The same idea underpins a lot of everyday Excel work, so the few minutes spent getting it right here pay back across every sheet you build afterwards. Treat it as a pattern, not a one-off, and it stops being something you look up and starts being something you reach for. Treat “add outside borders in excel” as a small repeatable workflow rather than a one-off click you hope to remember next time. Use a small test block before the live file, so any surprise in the affected border shows up while it is still harmless. When this is a ribbon command, the selection matters more than the button: confirm the range, apply the command, then spot-check the output before saving. That turns a layout choice that keeps the sheet readable and sortable into a method you can reuse, explain, and defend when the workbook leaves your screen.
A worked example
Select A1:D20 and choose Home ▸ Borders ▸ All Borders for a full grid. To make just the header row stand out, select A1:D1 ▸ Borders ▸ Bottom Double Border. For a thick outline in a specific colour, press Ctrl+1 ▸ Border tab ▸ pick the style and colour first, then click Outline — choosing the style after clicking Outline does nothing, which is the dialog's one real trap. To clear everything, select the range and press Ctrl+Shift+_ or choose Borders ▸ No Border. Borders are what turn a block of values into a table a reader can parse, and the difference between a considered header rule and All Borders on 5,000 rows is the difference between a report and a wall of boxes. If this is something you do often, add the command to the Quick Access Toolbar (right-click it on the ribbon and choose Add to Quick Access Toolbar) or learn its shortcut, so next time it is one click instead of a hunt through the menus.
In Google Sheets
This is a command rather than a formula, so there is no syntax to carry over. Google Sheets arranges its commands in menus across the top instead of a ribbon, names some of them differently and does not have every Excel command — look for the equivalent in the Sheets menus or its help before assuming the steps match. Keep this page bookmarked for the next time the same question comes up. Better still, repeat the steps once in your own workbook — doing it yourself is what turns a copied answer into something you remember. Treat “add outside borders in excel” as a routine rather than a one-off. Once you know which setting or command controls it, the same few steps handle every workbook where it comes up in Excel, and you can explain them to a colleague in a sentence.
Common mistakes
- Confusing borders with gridlines — hiding gridlines does not touch borders, and gridlines do not print unless you tick the option.
- Choosing the style or colour after clicking an edge in the Format Cells dialog, which applies nothing.
- Bordering every cell in a large table, which makes it harder to read than a header rule plus light row banding.
- Applying borders to entire columns rather than the used range, which bloats the file.
- Expecting a border to move with the data when rows are sorted — it stays with the cell unless it came from conditional formatting.
Frequently asked questions
How do I add borders in Excel?
Select the range, open the Borders dropdown on the Home tab and choose a preset such as All Borders. Ctrl+Shift+& applies an outline to the selection.
How do I change the border colour or thickness?
Press Ctrl+1 and open the Border tab. Choose the line style and colour first, then click the edges or the Outline/Inside buttons — the order matters.
How do I remove all borders?
Select the range and press Ctrl+Shift+_ , or choose Borders ▸ No Border from the Home tab.
What is the difference between borders and gridlines?
Gridlines are a faint on-screen guide that does not print by default and cannot be styled per cell. Borders are formatting you apply, and they always print.