Tips & Tricks, Tutorials, Hacking, Troubleshooting,

You can add all kinds of borders to cells in a worksheet in Excel. You can place borders of different styles on the left, right, top, and bottom of a cell. If you select a range of cells, you can add borders to the left, right, top, bottom of the selected range, and in between the cells in the selected range.

You may not realize that you can also place a diagonal border in a cell. A border can display from the upper-left to the lower-right corners of a cell, or from the upper-right to the lower-left of a cell.

To place a diagonal border in a cell, first select the cell in which you want to place the border.

Selecting a cell

Make sure the Home tab is active on the ribbon.

Selecting the Home tab

In the Cells section of the Home tab, click the Format button and select Format Cells from the drop-down menu.

Selecting Format Cells from the Format menu

Click the Border tab on the Format Cells dialog box. In the lower-left and lower-right corners of the box in the Border section, there are buttons representing borders that go from the lower-left corner to the upper-right corner of the cell and from the lower-right corner to the upper-left corner of the cell. Click the desired button to place a diagonal line in the box.

Selecting a diagonal border

A diagonal border is placed in the sample cell in the Border section on the Border tab to show you what the border will look like.

Diagonal border in sample cell on dialog box

Click OK to close the Format Cells dialog box.

Clicking OK to close Format Cells dialog box

A diagonal border is placed in the cell you selected. We moved the selection in the image below so you can better see the border.

http://helpdeskgeek.com/wp-content/pictures/2010/08/07_diagonal_border_in_a_cell.png

Note that diagonal borders can only be applied to cells, not to rectangular areas of multiple cells you select. For instance, if you choose cells A5:C12, the diagonal border won’t go from the top-left corner of cell A5 to the bottom-right corner of cell C12. Instead, it is applied to the individual cells within the selected range of cells.

No comments:

Post a Comment