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. Treat “cell 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. 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. Here is the takeaway for “cell borders in excel”: follow the steps at the top, check the result on the sheet itself, and keep undo in mind while you experiment. Done once deliberately, it becomes something you do from memory in Excel rather than something you search for again.
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 border cells in excel”, “how to put borders around cells in excel” and “cell border 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 border cells in excel”, “how to put borders around cells in excel”, “cell border excel” all point at the one operation explained on this page, which is why they all lead here.