Adding borders in excel

Apply or remove cell borders on a worksheet

Excel for Microsoft 365 Excel for the web Excel 2021 Excel 2019 Excel 2016 Excel 2013 Excel 2010 Excel 2007 More…Less

By using predefined border styles, you can quickly add a border around cells or ranges of cells. If predefined cell borders do not meet your needs, you can create a custom border.

Note: Cell borders that you apply appear on printed pages. If you do not use cell borders but want worksheet gridline borders to be visible on printed pages, you can display the gridlines. For more information, see Print with or without cell gridlines.

  1. On a worksheet, select the cell or range of cells that you want to add a border to, change the border style on, or remove a border from.

  2. On the Home tab, in the Font group, do one of the following:

    • To apply a new or different border style, click the arrow next to Borders Button image, and then click a border style.

      Tip: To apply a custom border style or a diagonal border, click More Borders. In the Format Cells dialog box, on the Border tab, under Line and Color, click the line style and color that you want. Under Presets and Border, click one or more buttons to indicate the border placement. Two diagonal border buttons Button image   Button image are available under Border.

    • To remove cell borders, click the arrow next to Borders Button image, and then click No Border Button image.

  • The Borders button displays the most recently used border style. You can click the Borders button (not the arrow) to apply that style.

  • If you apply a border to a selected cell, the border is also applied to adjacent cells that share a bordered cell boundary. For example, if you apply a box border to enclose the range B1:C5, the cells D1:D5 acquire a left border.

  • If you apply two different types of borders to a shared cell boundary, the most recently applied border is displayed.

  • A selected range of cells is formatted as a single block of cells. If you apply a right border to the range of cells B1:C5, the border is displayed only on the right edge of the cells C1:C5.

  • If you want to print the same border on cells that are separated by a page break, but the border appears on only one page, you can apply an inside border. This way, you can print a border at the bottom of the last row of one page and use the same border at the top of the first row on the next page. Do the following:

    1. Select the rows on both sides of the page break.

    2. Click the arrow next to Borders Button image, and then click More Borders.

    3. Under Presets, click the Inside button Button image.

    4. Under Border, in the preview diagram, remove the vertical border by clicking it.

  1. On a worksheet, select the cell or range of cells that you want to remove a border from.

    To cancel a selection of cells, click any cell on the worksheet.

  2. On the Home tab, in the Font group, click the arrow next to Borders Button image, and then click No Border Button image.

    —OR—

    Click Home > the Borders arrow > Erase Border, and then select the cells with the border you want to erase.

You can create a cell style that includes a custom border, and then you can apply that cell style when you want to display the custom border around selected cells.

  1. On the Home tab, in the Styles group, click Cell Styles.

    Tip: If you do not see the Cell Styles button, click Styles, and then click the More button next to the cell styles box.

    More button in the Style gallery

  2. Click New Cell Style.

    New cell style option

  3. In the Style name box, type an appropriate name for the new cell style.

  4. Click Format.

  5. On the Border tab, under Line, in the Style box, click the line style that you want to use for the border.

    Format cell style

  6. In the Color box, select the color that you want to use.

  7. Under Border, click the border buttons to create the border that you want to use.

  8. Click OK.

  9. In the Style dialog box, under Style Includes (By Example), clear the check boxes for any formatting that you do not want to include in the cell style.

  10. Click OK.

  11. To apply the cell style, do the following:

    1. Select the cells that you want to format with the custom cell border.

    2. On the Home tab, in the Styles group, click Cell Styles.

    3. Click the custom cell style that you just created. Like the FancyBorderStyle button in this picture.

      Cell Style gallery

To customize the line style or color of cell borders or erase existing borders, you can use the Draw Borders options. To draw cell borders, you’ll first select the border type, then the border color and line style, and select the cells that you want to add a border around. Here’s how:

  1. Click Home > the Borders arrow Borders button on the Home tab.

  2. Pick Draw Borders for outer borders or Draw Border Grid for gridlines.

    Border drop down menu to pick draw border options

  3. Click the Borders arrow > Line Color arrow, and then pick a color.

  4. Click the Borders arrow > Line Style arrow, and then pick a line style.

  5. Select cells you want to draw borders around.

Add a border, border color, or border line style

  1. Select the cell or range of cells that you want to add a border around, change the border style on, or remove a border from.

2. Click Home > the Borders arrow, and then pick the border option you want.

  • Add a border color — Click the Borders arrow > Border Color, and then pick a color

  • Add a border line style — Click the Borders arrow > Border Style, and then pick a line style option.

Tips

  • The Borders button shows the most recently used border style. To apply that style, click the Borders button (not the arrow).

  • If you apply a border to a selected cell, the border is also applied to adjacent cells that share a bordered cell boundary. For example, if you apply a box border to enclose the range B1:C5, the cells D1:D5 will acquire a left border.

  • If you apply two different types of borders to a shared cell boundary, the most recently applied border is displayed.

  • A selected range of cells is formatted as a single block of cells. If you apply a right border to the range of cells B1:C5, the border is displayed only on the right edge of the cells C1:C5.

  • If you want to print the same border on cells that are separated by a page break, but the border appears on only one page, you can apply an inside border. This way, you can print a border at the bottom of the last row of one page and use the same border at the top of the first row on the next page. Do the following:

    1. Select the rows on both sides of the page break.

    2. Click the arrow next to Borders , and then click the Inside Horizontal Border

Remove a border

To remove a border, select the cells with the border and click the Borders arrow > No Border.

Need more help?

You can always ask an expert in the Excel Tech Community or get support in the Answers community.

See Also

Change the width of cell borders

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.


How to Add Borders in Excel

Adding cell borders and filling cells with colors and patterns is an easy way to make your data stand out, appear more organized, and make the spreadsheet easier to read.

Add a Cell Border

  1. Select the cell(s) where you want to add the border.
  2. Click the Border list arrow from the Home tab.

    A list of borders you can add to the selected cell(s) appears. Use the examples shown next to each border option to decide which border type will work best for you.

  3. Select a border type.

    Format a Number or Date

    To remove a border, click the Border list arrow in the Font group and select No Border.

Advanced Border Options

To have more control over the look and style of the cell borders, use the advanced border options.

  1. Select the cell(s) where you want to add the border.
  2. Click the Font dialog box launcher.

    Advanced Border Options

  3. Click the Border tab.
  4. Select the line style and color you want.

    You now need to specify where you want the new border style to appear.

  5. Select a preset option or apply borders individually in the Borders section.
  6. Click OK.

    Advanced Border Options

The border is applied to the cell range.

Add Cell Shading

  1. Select the cell(s) where you want to add the shading.
  2. Click the Fill Color list arrow.

    A palate of theme colors is displayed in the menu. If you want to use a different color, select More Colors.

  3. Select the color you want to apply.

    Add Cell Shading

A background color is applied to the cell(s). Make sure the background provides enough contrast with the text to be legible.


Excel Cheat Sheet

FREE Quick Reference

Click to Download

Free to distribute with our compliments; we hope you will consider our paid training.

Border in Excel

Excel Borders (Table of Contents)

  • Borders in Excel
  • How to add Borders in Excel?

Borders in Excel

Borders are the boxes formed by lines in the cell in Excel. By keeping borders, we can frame any data and provide them with a proper define limit. To distinguish specific values, outline summarized values or separate data in ranges of cells; you can add a border around cells.

How to add Borders in Excel?

Adding borders in Excel is very easy and useful to outline or separate specific data or highlight some values in a worksheet. Normally, we can easily add all top, bottom, left, or right borders for selected cells in Excel. Option for Borders is available in the Home menu, under the font section with the icon of Borders. We can also use shortcuts to apply borders in Excel.

You can download this Borders Excel Template here – Borders Excel Template

Let’s understand how to add Borders in Excel.

Example #1

For accessing Borders, go to Home and select the option as shown in the below screenshot under the Font section.

Border Option

Once we click on the option of Borders shown above, we will have a list of all kind of borders provided by Microsoft in its drop-down option, as shown below.

List of Borders

Here we have categorized Borders into 4 sections. This would be easy to understand because all sections are different from each other.

The first section is a basic section with only Bottom, Top, Left, and Right Borders. By this, we can only create one side border only for one cell or multiple cells.

Border in Excel example 1-3

The second section is the full border section, which has No Border, All Borders, Outside Borders, and Thick Box Borders. By this, we can create a full border that can cover a cell and a table as well. We can also remove the border as well from the selected cell or table by clicking on No Border.

No Borders

The third section is a combination of the bottom borders, Bottom Double Border, Thick Bottom Border, Top and Bottom Border, Top and Thick Bottom Border, and Top Double Bottom Border.

Bottom Borders

These types of double borders are majorly used in underlining the headlines or important texts.

The Fourth section has a customized border section, where we can draw or create a border as per our need or make changes in the existing border type. We can change the color, thickness of the border as well in this section of Borders.

Draw Borders

Once we click on the More Borders Option at the bottom, we will see a new dialog box named Format Cells, which is a more advanced option for creating Borders. It is shown below.

Format Cells

Example #2

We have seen the basic function and use for all kinds of borders and how to create those in the previous example. Now we will see an example where we will choose and implement different Borders and see how those Borders in any table or data can be framed.

We have a data table, which has details of Owner, Block, and Apartment No. Now we will frame the Borders and see how the data would look like.

As row 2 is the headline, we will prefer a double bottom line selected from the third section.

And all cell will be covered with a box of All Borders which can be selected from the second section.

And if we select Thick Border from the second section, then the whole table will be bound to a perfect box, and selected data will automatically get highlighted. Once we are done with all the mentioned border type, our table would like this, as shown below.

Border Types

As we can see, the complete data table is getting highlighted and ready to be presented in any form.

Example #3

There is another way to frame borders in excel. This is one of the shortcuts of accessing the functions available in excel. For accessing borders, the shortcut way first selects the data we want to frame with borders and then press ALT + H + B simultaneously to enable the border menu in Excel.

ALT + H + B

ALT + H will enable the Home menu, B will enable the borders.

ALT + H

B enabling the Borders

Once we do that, we will get a list of all kinds of borders available in excel. And this list itself will have the specific keys mentioned to set for any border as shown and circled in the below screenshot.

List of Options

We can navigate to our required Border type by pressing the Key highlighted in the above screenshot, or else we can use direction keys to scroll up and down to get the desired border frame. Let’s use All Borders for this case by pressing ALT+H+B+A simultaneously after selecting the data table. Once we do that, we will see the selected data is now framed with all borders. And each cell will be now having its own border in black lines, as shown.

Black Lines

Let’s frame one more border of another type with the same process. Select the data first and then press ALT+H+B+T Keys simultaneously. We will see that data is framed with Thick Borders, as shown in the below screenshot.

Thick Outline

Pros of Print Borders in Excel

  • Creating the border around the desired data table makes data presentable to anyone.
  • Border frame in any data set is quite useful when printing the data or pasting the data in any other file. By this, we make the data look perfectly covered.

Things to Remember

  • Borders can be used with the shortcut key Alt + H + B, which will directly take us to the Border option.
  • Giving a border in any data table is very important. We must provide the border after every work so that the data set can be bound.
  • Always make proper alignment so that once we frame the data with a border and use it in different sources, the column width will be automatically set.

Recommended Articles

This has been a guide to Borders in Excel. Here we discussed how to add Borders in Excel and use shortcuts for borders in Excel along with practical examples and a downloadable excel template. You can also go through our other suggested articles –

  1. LEFT Formula in Excel
  2. VBA Borders
  3. Format Cells in Excel
  4. Print Gridlines in Excel

When working with large amounts of data, it can sometimes be hard to read the data, if not formatted properly.

Moreover, there are usually parts of the dataset that are more important than others, so you would want these cells to stand out from the rest. This can get the reader to concentrate more on the important areas of the dataset.

There are a number of ways to improve the readability of your data. A very effective way is to add borders around the cells.

Borders can also be customized to highlight important cells. For example, you can use a thicker border to make the Grand total or some important data value stand out.

Excel provides several options for cell borders. In this tutorial, I will show you three different ways to apply borders to cells in Excel.

The options you choose and how you apply them to your spreadsheets will be up to your creativity. But I can guarantee you this, you’ll be spoilt for choice.

Say we have a dataset as the one given below.

Dataset on which border needs to be applied

We notice two things here:

  1. The cells do have gridlines, but they could be more readable if there were borders around every cell containing data.
  2. The most important cell in this dataset is the Grand Total. So, it would help if we could make this particular cell more pronounced by adding a thicker border around it.

There are three ways to add and customize cell borders in Excel:

  • By accessing the Border button from the Home tab
  • By accessing the Format Cell dialog box’s Border tab.
  • By manually drawing the borders.

We are going to take a look at each of the above ways one by one.

How to Add Borders from the Home Tab

  1. Select the cells around which you want to add borders. To select individual cells, press down the control key, and select each cell. To select a group of cells, drag your mouse over the group of cells you want to select.
  2. Click the arrow next to the Borders button. You will find it in the Home tab, under the ‘Font’ group.Click on the Border icon in the ribbon
  3. A dropdown menu should now appear. This will contain quick border options that you can apply to your selected cells. In our dataset, we applied simple grid-like single borders around each cell. We also added a thick border around the grand total to make it stand out.

Here’s how the dataset looks after applying borders:

Data with cell border applied to it

The borders provided an instant ‘lift’ to the entire dataset.

The Borders button dropdown provides a selection of common border options that you can quickly apply to your selection. You can choose to have individual borders on the top, bottom, left, or right. You can also combine 2 to 3 borders or have all 4 borders for each selection.

Additionally included in this menu are options for various border styles, like thick border, double border, and other common border combinations.

Border Options in the ribbon

If you want more options, though, you can navigate to the Format Cells dialog box.

How to Add Borders from the Format Cells Dialog Box

Another way to add borders to cells or ranges is to use the Format Cells dialog box. While it has many of the same options to apply borders, you get access to many more additional options as well.

For example, here’s just a glance at the dialog box’s Border tab:

Format Cells Border tab options

  • On the left of the dialog box, there’s a ‘Style’ section, where you can select the type of border you want, like dashed, dotted, thick, double, and more.
  • The ‘Color’ section is also present on the left side. As the name suggests, this lets you select the color you want for the borders.
  • The right side top portion has some ‘Presets’ that you can select to quickly add borders either in between cells or around cells.
  • The lower portion of the right side is the main ‘Border’ section. This lets you select which parts of your selection you want your borders on.
  • This section also provides a small preview of how your selections are going to look when you apply your choice of borders on them.

There are a number of ways to open the Format Cells Dialog box:

Here are the steps to follow when you want to add borders using the Format Cells dialog box:

  1. Use any of the above methods to open the ‘Format Cells’ Dialog box.
  2. Select the Border tab.
  3. Here you will see a whole assortment of border options that you can play around with. For our example, we made the following selections:
    • An orange accent line color
    • A dashed line style
    • The Outline preset
    • The Inside presetBorder tab in the Format Cells dialog box
  4. When you’re done putting all your border settings, click OK to close the dialog box. Your borders will now get applied to your selections.Cells with Orange dashed border

How to Add Borders by Manually Drawing Them

Finally, if you want more control over individual borders, you can use the ‘Draw Borders’ feature of Excel.

Draw Borders gives you the flexibility to draw even irregular shaped border, something that can be quite tough to do using the Format Cells dialog box.

Here’s a quick look at the different options you get under the Draw Borders feature:

Draw Borders Option

  • Draw Border: This lets you draw a border along any gridline. When you select a block of cells in this mode, it creates a rectangular border around the outside of the selected block of cells.
  • Draw Border Grid: This also lets you draw a border along any gridline, but when you select a block of cells in this mode, it creates borders both inside and outside the block of cells (to form a grid).
  • Erase Border: This lets you erase any previously created borders individually or collectively.
  • Line Color: This lets you select the color of the individual borders.
  • Line Style: This lets you select the type of individual borders, like dashed, dotted, thick, double, etc.

Here’s how to use the Draw Borders feature:

  1. Since you are going to manually draw individual borders one by one, you don’t need to have any cells selected.
  2. Click the arrow next to the Borders button. You will find it in the Home tab, under the ‘Font’ group.Click on the Border icon in the ribbon
  3. From the dropdown menu that appears, navigate down to the ‘Draw Borders’ section.Draw border options
  4. First, select the line colorChoose the border color
  5. And then select the border styleChoose the border style
  6. Notice that as soon as you select an option from the Draw Borders section, your mouse pointer turns into a pencil, to tell you that you are now in ‘Draw Border’ mode.Icon changes into a pencil
  7. Go ahead and draw your borders along any gridline you like. You can even create a rectangular border by clicking and dragging around any block of cells. We have chosen to just draw two thick borders above and below the grand total.
  8. Once you’re done drawing all your required borders, you can come out of the border drawing mode by clicking on the Border button (under the Home tab) again.

Here is what our dataset looks like after drawing borders above and below the grand total:

Dataset with thick upeer and lower cell border

The Difference between Borders and Gridlines

Before you start applying borders to your cells, it is important to understand the basic difference between borders and gridlines.

Gridlines are the light-colored boxes around every cell in your sheet. They are there to help define individual cell borders. In Excel, there are options to show or hide the gridlines when you take a print of your worksheet.

Borders, on the other hand, help to accent a cell or set of cells. So even if you choose not to display gridlines in your printout, your borders will remain visible and get printed, unless you remove them.

Additionally, when you hide gridlines in the Excel window, they get hidden for the entire worksheet. But with borders, you can choose to have them displayed on specific cells or ranges, even when gridlines are hidden.

Also read: How to Remove Borders in Excel? 6 Easy Ways!

So, in this Excel tutorial, I showed you three ways in which you can add borders to your cells, both individually and in bulk.

I would encourage you to experiment with the different border settings to see which style suits you and your data.

You can also use these border settings to create your own signature style for highlighting important cells in spreadsheets.

I hope you found this tutorial useful!

Other Excel tutorials you may find useful:

  • How to AutoFormat Formulas in Excel (3 Easy Ways)
  • How to Highlight Every Other Row in Excel
  • How to Set the Default Font in Excel (Windows and Mac)
  • How to Remove Dotted Lines in Excel
  • How to Flash an Excel Cell
  • How to Remove Panes in Excel Worksheet (Shortcut)
  • How to Add a Total Row in Excel Table
  • How to Add Bullet Points in Excel
  • How to Change Theme Colors in Excel?
  • How to Add Border to a Chart in Excel

What are the Borders in Excel?

Borders in Excel are outlined in data tables or a specific range of cells. In Excel, borders are used to separate the data in borders from the rest of the text. It is a good way of representing data. In addition, it helps the user to look for specific data easily. These borders are available in the “Home” tab in the fonts section.

Table of contents
  • What are the Borders in Excel?
    • Explained
    • How to Create and Add Borders in Excel? (with Examples)
      • Example #1
      • Example #2
      • Example #3
      • Example #4
    • Things to Remember While Creating Borders in Excel
    • Recommended Articles

Explained

We can add the border to a single cell or multiple cells. Borders are of different styles and can be used as per the requirement.

Borders help present the data set in a more presentable format in ExcelFormatting is a useful feature in Excel that allows you to change the appearance of the data in a worksheet. Formatting can be done in a variety of ways. For example, we can use the styles and format tab on the home tab to change the font of a cell or a table.read more.

We can use borders for tabular format data or headlines to emphasize a specific set of data or can be used to distinguish different sections.

  • We can use it to define or divide the sections of a worksheet.
  • We can use it to emphasize specific data.
  • We can also make the data more understandable and presentable.

How to Create and Add Borders in Excel? (with Examples)

We can create and add borders to the specific set of data.

Example #1

We have data of marks of a student for three subjects of an annual examination. We will have to add the borders in this data to make it more presentable.

  1. Now, we must select the data we want to add to the borders.

    border in excel example 1.2

  2. In the font group on the “Home” tab, click the down arrow next to the “Borders” button. You may see the drop-down list of borders, as shown in the figure below.

    border in excel example 1.3

  3. We have different borders styles. Therefore, we may select the “OUTSIDE BORDERS” option for our data.

    border in excel example 1.4

  4. We may find the result by using “OUTSIDE BORDERS” in the data.

    border in excel example 1.5

Now, let us learn with some more examples.

Example #2

We have data of marks of a student for three subjects of an annual examination. We will have to add the borders in this data to make it more presentable.

  • Data of marks of 5 students for three subjects in an annual examination is shown below.

border in excel example 1.1

  • Now, we must select the data we want to add to the borders.

border in excel example 1.2

  • Now, in the “Font” group on the “Home” tab, we need to click the down arrow next to the “Borders” button. As shown in the figure below, we may see the drop-down list of borders.

border in excel example 1.3

  • Now that we have different border styles, we must select the “THICK OUTSIDE BORDERS” option for data.

border in excel example 2.1

  • As a result, we may find the result by using “THICK OUTSIDE BORDERS” to the data shown below.

border in excel example 2.2

Example #3

We have data on the marks of a student for three subjects of an annual examination. We will have to add the borders in this data to make it more presentable.

  • Data of marks of 5 students for three subjects in an annual examination is shown below.

border in excel example 1.1

  • Now, select the data to which you want to add borders.

border in excel example 3.1

  • Now, in the “Font” group on the “Home” tab, we may need to click the down arrow next to the “Borders” button. And we may see the drop-down list of borders as shown in the figure below. Then, select the “ALL BORDERS” options for the data.

border in excel example 3.2

  • As a result, we may find the result by using “ALL BORDERS” to the data.

border in excel example 3.3

Example #4

We have data on the marks of a student for three subjects of an annual examination. We need to add the borders in this data to make it more presentable.

  • Data of marks of 5 students for three subjects in an annual examination is shown below.

Student data

  • Now, we must select the data we want to add borders.

select data

  • Now, in the “Font” group on the “Home” tab. Then, we need to click the down arrow next to the “Borders” button. As shown in the figure below, we may see the drop-down list of borders. Now, select the “ALL BORDERS” options for our data.

select option example 3.2

  • We may now find the result using “ALL BORDERS” in the data.

all borders example 3.3

  • As shown in the figure below, we can change the border’s thickness per the requirement. Select the data you want to change the border’s thickness for this.

border in excel example 4.1

  • We need to go to the border drop-down list and click “LINE STYLE.”

select line style example 4.2

  • Now, we get a list of line styles and use the style as per the requirements. We will use the second last line style for our data.

line style example 4.3

  • We may get the result as shown below.

line style result example 4.4

Things to Remember While Creating Borders in Excel

  1. We select cells where the border needs to be added.
  2. The borders differentiate the data separately.
  3. We can change border styles by the “Borders” icon in the “Font” tab.

Recommended Articles

This article has been a guide to Borders in Excel. Here, we discuss how to create/add cell borders in Excel using different options and examples. You may also look at these useful functions in Excel: –

  • Borders in VBA Excel
  • VBA Select Cell
  • Shortcut for Excel Format Painter
  • Format Number in VBA
  • Marksheet in Excel

Reader Interactions

Понравилась статья? Поделить с друзьями:
  • Adding bookmark in word
  • Adding an hour in excel
  • Adding a template to excel
  • Adding a tag in word
  • Adding a series to a chart in excel