How to Change Border Color in Excel

There are two ways to “change border color in excel”: the quick way you copy and the durable way you understand. This page gives you both. The exact Excel answer is above; below, we build the small mental model that makes the fix stick, so the next variation of the same problem solves itself.

Exact answer

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
Annotated stepsExcel
1

Select the cells that should get the border.

2

Open the Borders dropdown on the Home tab and pick a preset — All Borders, Outside Borders, Thick Box Border.

3

For control over style and colour, press Ctrl+1 and go to the Border tab.

4

In that dialog choose the line style and colour FIRST, then click the edges or the Outline/Inside presets.

5

Ctrl+Shift+& applies an outline to the selection; Ctrl+Shift+_ removes all borders.

6

For borders that follow the data, use Home ▸ Conditional Formatting ▸ New Rule with a formula and set a border in the Format dialog.

Ctrl+CthenCtrl+Shift+V+Cthen+Ctrl+VPaste values · WindowsMac

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. Most people learn this as a sequence of clicks and forget it by next week; learning it as a pattern instead is what lets you apply it to the next, slightly different version of the problem without starting from scratch. That is the difference this page is trying to make. The difference between a quick fix and a sheet you can trust is the extra minute you spend validating “change border color in excel”. Start on a copy or a tiny sample, keep the affected border visible, and compare the result with the tool above before you touch the real workbook. 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. The point is a workflow that saves repeating the same clicks every week, but the practical win is that someone else can open the file and understand what happened without asking you.

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. Nothing on this page is behind a login or a download: the exact answer is at the top, and the detail below it is there for when you need it. That is the whole promise here — the answer first, and just enough context to make it stick. The short version of “change border color in excel”: the answer is at the top of this page, and the sections above explain why each step matters, so a variation of the problem does not stump you. Try it once on a copy of a real file and the steps stick far better than re-reading them.

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 “change border color excel” and “how to change the border color 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. “change border color excel”, “how to change the border color in excel” all point at the one operation explained on this page, which is why they all lead here.