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. Before you run it on a workbook other people depend on, try it on a copy or a few rows first. Undo only reaches back through the current session, so a quick trial run is the cheapest way to see exactly what will change before the file is saved and shared. For “add borders in excel”, the reliable version is a short checking loop, not just the first command that appears to work. Run it on a deliberately small range first, watch how the affected border change, and only then apply the same setup to the full sheet. 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 is what makes a layout choice that keeps the sheet readable and sortable useful in real work: repeatable, auditable, and not dependent on memory or luck.
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. A practical tip: try it on a copy of the sheet or a handful of sample rows first and check the result before you apply it to the real data. That one habit catches almost every surprise while it is still cheap to reverse.
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. The aim was to get you unstuck fast and leave you a little more capable than a copy-paste would. The answer is at the top and the detail above shows why it holds — so the next time a colleague asks, you can answer without reaching for search. If you take one thing from this page on “add borders in excel”, make it the order of checks rather than the individual clicks: confirm what is selected, apply the step, and look at the result before moving on. That small routine is what keeps Excel work predictable when the same task comes back in a slightly different workbook.
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.
Other ways people ask this
This is also commonly searched as “how to add border in excel”, “how do i add a border in excel”, “how do you add a border in excel” and “how to add a border in excel”. They describe the identical operation, so you are in the right place no matter how you phrased it.
Why do people search for this in so many different ways?
Because the same task has many names. “how to add border in excel”, “how do i add a border in excel”, “how do you add a border in excel” all point at the one operation explained on this page, which is why they all lead here.