Saturday, July 8, 2017

Underline cell contents, entire cells, or rows on a worksheet

Underline cell contents, entire cells, or rows on a worksheet

There are several ways to add underlining to data on a worksheet. You can underline all or selected text in cells, apply a bottom border to cells or rows, or draw a line to underline cells.

What do you want to do?

Underline all or selected cell contents

Use a bottom border to underline entire cells or rows

Draw a line to underline cells

Underline all or selected cell contents

  1. Do one of the following:

    • To underline all text or numbers in a cell or range of cells, select that cell or range of cells.

      How to select a cell or range

      To select

      Do this

      A single cell

      Click the cell, or press the arrow keys to move to the cell.

      A range of cells

      Click the first cell in the range, and then drag to the last cell, or hold down SHIFT while you press the arrow keys to extend the selection.

      You can also select the first cell in the range, and then press F8 to extend the selection by using the arrow keys. To stop extending the selection, press F8 again.

      A large range of cells

      Click the first cell in the range, and then hold down SHIFT while you click the last cell in the range. You can scroll to make the last cell visible.

      All cells on a worksheet

      Click the Select All button.

      Select All button

      To select the entire worksheet, you can also press CTRL+A.

      If the worksheet contains data, CTRL+A selects the current region. Pressing CTRL+A a second time selects the entire worksheet.

      Nonadjacent cells or cell ranges

      Select the first cell or range of cells, and then hold down CTRL while you select the other cells or ranges.

      You can also select the first cell or range of cells, and then press SHIFT+F8 to add another nonadjacent cell or range to the selection. To stop adding cells or ranges to the selection, press SHIFT+F8 again.

      Note: You cannot cancel the selection of a cell or range of cells in a nonadjacent selection without canceling the entire selection.

      An entire row or column

      Click the row or column heading.

      Worksheet headings

      1. Row heading

      2. Column heading

      You can also select cells in a row or column by selecting the first cell and then pressing CTRL+SHIFT+ARROW key (RIGHT ARROW or LEFT ARROW for rows, UP ARROW or DOWN ARROW for columns).

      If the row or column contains data, CTRL+SHIFT+ARROW key selects the row or column to the last used cell. Pressing CTRL+SHIFT+ARROW key a second time selects the entire row or column.

      Adjacent rows or columns

      Drag across the row or column headings. Or select the first row or column; then hold down SHIFT while you select the last row or column.

      Nonadjacent rows or columns

      Click the column or row heading of the first row or column in your selection; then hold down CTRL while you click the column or row headings of other rows or columns that you want to add to the selection.

      The first or last cell in a row or column

      Select a cell in the row or column, and then press CTRL+ARROW key (RIGHT ARROW or LEFT ARROW for rows, UP ARROW or DOWN ARROW for columns).

      The first or last cell on a worksheet or in a Microsoft Office Excel table

      Press CTRL+HOME to select the first cell on the worksheet or in an Excel list.

      Press CTRL+END to select the last cell on the worksheet or in an Excel list that contains data or formatting.

      Cells to the last used cell on the worksheet (lower-right corner)

      Select the first cell, and then press CTRL+SHIFT+END to extend the selection of cells to the last used cell on the worksheet (lower-right corner).

      Cells to the beginning of the worksheet

      Select the first cell, and then press CTRL+SHIFT+HOME to extend the selection of cells to the beginning of the worksheet.

      More or fewer cells than the active selection

      Hold down SHIFT while you click the last cell that you want to include in the new selection. The rectangular range between the active cell and the cell that you click becomes the new selection.

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

    • To underline just a portion of the contents in a cell, double-click that cell, and then select the text or numbers that you want to underline.

      If editing in a cell is turned on, you can select the cell contents by double-clicking the cell. If editing in a cell is turned off, you can click the cell and then select the text or numbers that you want to underline in the formula bar. You can also press F2 to edit the active cell, use the arrow keys to place the insertion point, and then use SHIFT+arrow keys to select the contents.

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

    • To apply a single underline, click Underline Button image .

    • To apply a different style of underline, such as a double underline or a single or double accounting underline (an underline that fills the width of a cell), click the Dialog Box Launcher Button image next to Font and then, in the Underline box, click the style that you want to use.

      Excel Ribbon Image

Top of Page

Use a bottom border to underline entire cells or rows

  1. Select the cell, range of cells, or rows that you want to underline.

    How to select a cell or range

    To select

    Do this

    A single cell

    Click the cell, or press the arrow keys to move to the cell.

    A range of cells

    Click the first cell in the range, and then drag to the last cell, or hold down SHIFT while you press the arrow keys to extend the selection.

    You can also select the first cell in the range, and then press F8 to extend the selection by using the arrow keys. To stop extending the selection, press F8 again.

    A large range of cells

    Click the first cell in the range, and then hold down SHIFT while you click the last cell in the range. You can scroll to make the last cell visible.

    All cells on a worksheet

    Click the Select All button.

    Select All button

    To select the entire worksheet, you can also press CTRL+A.

    If the worksheet contains data, CTRL+A selects the current region. Pressing CTRL+A a second time selects the entire worksheet.

    Nonadjacent cells or cell ranges

    Select the first cell or range of cells, and then hold down CTRL while you select the other cells or ranges.

    You can also select the first cell or range of cells, and then press SHIFT+F8 to add another nonadjacent cell or range to the selection. To stop adding cells or ranges to the selection, press SHIFT+F8 again.

    Note: You cannot cancel the selection of a cell or range of cells in a nonadjacent selection without canceling the entire selection.

    An entire row or column

    Click the row or column heading.

    Worksheet headings

    1. Row heading

    2. Column heading

    You can also select cells in a row or column by selecting the first cell and then pressing CTRL+SHIFT+ARROW key (RIGHT ARROW or LEFT ARROW for rows, UP ARROW or DOWN ARROW for columns).

    If the row or column contains data, CTRL+SHIFT+ARROW key selects the row or column to the last used cell. Pressing CTRL+SHIFT+ARROW key a second time selects the entire row or column.

    Adjacent rows or columns

    Drag across the row or column headings. Or select the first row or column; then hold down SHIFT while you select the last row or column.

    Nonadjacent rows or columns

    Click the column or row heading of the first row or column in your selection; then hold down CTRL while you click the column or row headings of other rows or columns that you want to add to the selection.

    The first or last cell in a row or column

    Select a cell in the row or column, and then press CTRL+ARROW key (RIGHT ARROW or LEFT ARROW for rows, UP ARROW or DOWN ARROW for columns).

    The first or last cell on a worksheet or in a Microsoft Office Excel table

    Press CTRL+HOME to select the first cell on the worksheet or in an Excel list.

    Press CTRL+END to select the last cell on the worksheet or in an Excel list that contains data or formatting.

    Cells to the last used cell on the worksheet (lower-right corner)

    Select the first cell, and then press CTRL+SHIFT+END to extend the selection of cells to the last used cell on the worksheet (lower-right corner).

    Cells to the beginning of the worksheet

    Select the first cell, and then press CTRL+SHIFT+HOME to extend the selection of cells to the beginning of the worksheet.

    More or fewer cells than the active selection

    Hold down SHIFT while you click the last cell that you want to include in the new selection. The rectangular range between the active cell and the cell that you click becomes the new selection.

    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 Bottom Border Button image , and then click a bottom border style on the palette.

    Excel Ribbon Image

Top of Page

Draw a line to underline cells

  1. On the Insert tab, in the Illustrations group, click Shapes.

    The Illustrations group on the Insert tab

  2. Under Lines, click Button image .

  3. Drag to draw a line underneath the cells that you want to underline.

    To draw a perfectly straight line, hold down SHIFT while you drag to draw the line.

  4. To change the formatting of the line, click the line to select it.

    This displays the Drawing Tools, adding the Format tab.

  5. On the Format tab, in the Shape Styles group, select the formatting options that you want.

Top of Page

No comments:

Post a Comment