Excel 2016: Modifying Columns, Rows, and Cells (2024)

Lesson 6: Modifying Columns, Rows, and Cells

/en/excel2016/cell-basics/content/

Introduction

By default, every row and column of a new workbook is set to the same height and width. Excel allows you to modify column width and row height in different ways, including wrapping text and merging cells.

Optional: Download our practice workbook.

Watch the video below to learn more about modifying columns, rows, and cells.

To modify column width:

In our example below, column C is too narrow to display all of the content in these cells. We can make all of this content visible by changing the width of column C.

  1. Position the mouse over the column line in the column heading so the cursor becomes a double arrow.

    Excel 2016: Modifying Columns, Rows, and Cells (1)

  2. Click and drag the mouse to increase or decrease the column width.

    Excel 2016: Modifying Columns, Rows, and Cells (2)

  3. Release the mouse. The column width will be changed.

    Excel 2016: Modifying Columns, Rows, and Cells (3)

With numerical data, the cell will display pound signs (#######) if the column is too narrow. Simply increase the column width to make the data visible.

To AutoFit column width:

The AutoFit feature will allow you to set a column's width to fit its content automatically.

  1. Position the mouse over the column line in the column heading so the cursor becomes a double arrow.

    Excel 2016: Modifying Columns, Rows, and Cells (4)

  2. Double-click the mouse. The column width will be changed automatically to fit the content.

    Excel 2016: Modifying Columns, Rows, and Cells (5)

You can also AutoFit the width for several columns at the same time. Simply select the columns you want to AutoFit, then select the AutoFit Column Width command from the Format drop-down menu on the Home tab. This method can also be used for row height.

Excel 2016: Modifying Columns, Rows, and Cells (6)

To modify row height:

  1. Position the cursor over the row line so the cursor becomes a double arrow.

    Excel 2016: Modifying Columns, Rows, and Cells (7)

  2. Click and drag the mouse to increase or decrease the row height.

    Excel 2016: Modifying Columns, Rows, and Cells (8)

  3. Release the mouse. The height of the selected row will be changed.

    Excel 2016: Modifying Columns, Rows, and Cells (9)

To modify all rows or columns:

Instead of resizing rows and columns individually, you can modify the height and width of every row and column at the same time. This method allows you to set a uniform size for every row and column in your worksheet. In our example, we will set a uniform row height.

  1. Locate and click the Select All button just below the name box to select every cell in the worksheet.

    Excel 2016: Modifying Columns, Rows, and Cells (10)

  2. Position the mouse over a row line so the cursor becomes a double arrow.
  3. Click and drag the mouse to increase or decrease the row height, then release the mouse when you are satisfied. The row height will be changed for the entire worksheet.

    Excel 2016: Modifying Columns, Rows, and Cells (11)

      Inserting, deleting, moving, and hiding

      After you've been working with a workbook for a while, you may find that you want to insert new columns or rows, delete certain rows or columns, move them to a different location in the worksheet, or even hide them.

      To insert rows:

      1. Select the row heading below where you want the new row to appear. In this example, we want to insert a row between rows 4 and 5, so we'll select row 5.

        Excel 2016: Modifying Columns, Rows, and Cells (12)

      2. Click the Insert command on the Home tab.

        Excel 2016: Modifying Columns, Rows, and Cells (13)

      3. The new row will appear above the selected row.

        Excel 2016: Modifying Columns, Rows, and Cells (14)

      When inserting new rows, columns, or cells, you will see a paintbrush icon next to the inserted cells. This button allows you to choose how Excel formats these cells. By default, Excel formats inserted rows with the same formatting as the cells in the row above. To access more options, hover your mouse over the icon, then click the drop-down arrow.

      Excel 2016: Modifying Columns, Rows, and Cells (15)

      To insert columns:

      1. Select the column heading to the right of where you want the new column to appear. For example, if you want to insert a column between columns D and E, select column E.

        Excel 2016: Modifying Columns, Rows, and Cells (16)

      2. Click the Insert command on the Home tab.

        Excel 2016: Modifying Columns, Rows, and Cells (17)

      3. The new column will appear to the left of the selected column.

        Excel 2016: Modifying Columns, Rows, and Cells (18)

      When inserting rows and columns, make sure you select the entire row or column by clicking the heading. If you select only a cell in the row or column, the Insert command will only insert a new cell.

      To delete a row or column:

      It's easy to delete a row or column that you no longer need. In our example we'll delete a row, but you can delete a column the same way.

      1. Select the row you want to delete. In our example, we'll select row 9.

        Excel 2016: Modifying Columns, Rows, and Cells (19)

      2. Click the Delete command on the Home tab.

        Excel 2016: Modifying Columns, Rows, and Cells (20)

      3. The selected row will be deleted, and those around it will shift. In our example, row 10 has moved up, so it's now row 9.

        Excel 2016: Modifying Columns, Rows, and Cells (21)

      It's important to understand the difference between deleting a row or column and simply clearing its contents. If you want to remove the content from a row or column without causing others to shift, right-click a heading, then select Clear Contents from the drop-down menu.

      Excel 2016: Modifying Columns, Rows, and Cells (22)

      To move a row or column:

      Sometimes you may want to move a column or row to rearrange the content of your worksheet. In our example we'll move a column, but you can move a row in the same way.

      1. Select the desired column heading for the column you want to move.

        Excel 2016: Modifying Columns, Rows, and Cells (23)

      2. Click the Cut command on the Home tab, or press Ctrl+X on your keyboard.

        Excel 2016: Modifying Columns, Rows, and Cells (24)

      3. Select the column heading to the right of where you want to move the column. For example, if you want to move a column between columns E and F, select column F.

        Excel 2016: Modifying Columns, Rows, and Cells (25)

      4. Click the Insert command on the Home tab, then select Insert Cut Cells from the drop-down menu.

        Excel 2016: Modifying Columns, Rows, and Cells (26)

      5. The column will be moved to the selected location, and the columns around it will shift.

        Excel 2016: Modifying Columns, Rows, and Cells (27)

      You can also access the Cut and Insert commands by right-clicking the mouse and selecting the desired commands from the drop-down menu.

      Excel 2016: Modifying Columns, Rows, and Cells (28)

      To hide and unhide a row or column:

      At times, you may want to compare certain rows or columns without changing the organization of your worksheet. To do this, Excel allows you to hide rows and columns as needed. In our example we'll hide a few columns, but you can hide rows in the same way.

      1. Select the columns you want to hide, right-click the mouse, then select Hide from the formatting menu. In our example, we'll hide columns C, D, and E.

        Excel 2016: Modifying Columns, Rows, and Cells (29)

      2. The columns will be hidden. The green column line indicates the location of the hidden columns.

        Excel 2016: Modifying Columns, Rows, and Cells (30)

      3. To unhide the columns, select the columns on both sides of the hidden columns. In our example, we'll select columns B and F. Then right-click the mouse and select Unhide from the formatting menu.

        Excel 2016: Modifying Columns, Rows, and Cells (31)

      4. The hidden columns will reappear.

        Excel 2016: Modifying Columns, Rows, and Cells (32)

      Wrapping text and merging cells

      Whenever you have too much cell content to be displayed in a single cell, you may decide to wrap the text or merge the cell rather than resize a column. Wrapping the text will automatically modify a cell's row height, allowing cell contents to be displayed on multiple lines. Merging allows you to combine a cell with adjacent empty cells to create one large cell.

      To wrap text in cells:

      1. Select the cells you want to wrap. In this example, we'll select the cells in column C.
      2. Click the Wrap Text command on the Home tab.

        Excel 2016: Modifying Columns, Rows, and Cells (33)

      3. The text in the selected cells will be wrapped.

        Excel 2016: Modifying Columns, Rows, and Cells (34)

      Click the Wrap Text command again to unwrap the text.

      To merge cells using the Merge & Center command:

      1. Select the cell range you want to merge. In our example, we'll select A1:F1.
      2. Click the Merge & Center command on the Home tab. In our example, we'll select the cell range A1:F1.

        Excel 2016: Modifying Columns, Rows, and Cells (35)

      3. The selected cells will be merged, and the text will be centered.

        Excel 2016: Modifying Columns, Rows, and Cells (36)

      To access more merge options:

      If you click the drop-down arrow next to the Merge & Center command on the Home tab, the Merge drop-down menu will appear.

      Excel 2016: Modifying Columns, Rows, and Cells (37)

      From here, you can choose to:

      • Merge & Center: merges the selected cells into one cell and centers the text
      • Merge Across: merges the selected cells into larger cells while keeping each row separate
      • Merge Cells: merges the selected cells into one cell but does not center the text
      • Unmerge Cells: unmerges selected cells

      You'll want to be careful when using this feature. If you merge multiple cells that all contain data, Excel will keep only the contents of the upper-left cell and discard everything else.

      To center across selection:

      Merging can be useful for organizing your data, but it can also create problems later on. For example, it can be difficult to move, copy, and paste content from merged cells. A good alternative to merging is Center Across Selection, which creates a similar effect without actually combining cells.

      Watch the video below to learn why you should use Center Across Selection instead of merging cells.

      1. Select the desired cell range. In our example, we'll select A1:F1. Note: If you already merged these cells, you should unmerge them before continuing to step 2.
      2. Click the small arrow in the lower-right corner of the Alignment group on the Home tab.

        Excel 2016: Modifying Columns, Rows, and Cells (38)

      3. A dialog box will appear. Locate and select the Horizontal drop-down menu, select Center Across Selection, then click OK.

        Excel 2016: Modifying Columns, Rows, and Cells (39)

      4. The content will be centered across the selected cell range. As you can see, this creates the same visual result as merging and centering, but it preserves each cell within A1:F1.

        Excel 2016: Modifying Columns, Rows, and Cells (40)

        Challenge!

        1. Open our practice workbook.
        2. Autofit Column Width for the entire workbook.
        3. Modify the row height for rows 3 to 14 to 22.5 (30 pixels).
        4. Delete row 10.
        5. Insert a column to the left of column C. Type SECONDARY CONTACT in cell C2.
        6. Make sure cell C2 is still selected and choose Wrap Text.
        7. Merge and Center cells A1:F1.
        8. Hide the Billing Address and Phone columns.
        9. When you're finished, your workbook should look something like this:

          Excel 2016: Modifying Columns, Rows, and Cells (41)

        Excel 2016: Modifying Columns, Rows, and Cells (43)

        Previous: Cell Basics

        Next:Formatting Cells

        Excel 2016: Modifying Columns, Rows, and Cells (44)

        /en/excel2016/formatting-cells/content/

        Excel 2016: Modifying Columns, Rows, and Cells (2024)

        FAQs

        Excel 2016: Modifying Columns, Rows, and Cells? ›

        Select the row or rows that you want to change. Go to Home > Cells > Format. Under Cell Size, select AutoFit Row Height. Tip: To quickly autofit all rows on the worksheet, select Select All, and then double-click the boundary below one of the row headings.

        How do you modify all rows and columns at the same time? ›

        Automatically resize all columns and rows to fit the data
        1. Select the Select All button at the top of the worksheet, to select all columns and rows.
        2. Double-click a boundary. All columns or rows resize to fit the data.

        How do I customize rows and columns in Excel? ›

        Select the row or rows that you want to change. Go to Home > Cells > Format. Under Cell Size, select AutoFit Row Height. Tip: To quickly autofit all rows on the worksheet, select Select All, and then double-click the boundary below one of the row headings.

        How do I change columns to rows in Excel 2016? ›

        Here's how you can transpose cell content:
        1. Copy the cell range.
        2. Select the empty cells where you want to paste the transposed data.
        3. On the Home tab, select the Paste icon, and select Paste Transpose.

        How do you manipulate cells in Excel? ›

        Re: How to change a single cell in excel

        To change a single cell in Excel, you simply need to click on the cell you want to change and start typing your new value. Alternatively, you can double-click on the cell to enter edit mode. That's it!

        How do I fix columns and rows in Excel at the same time? ›

        Freeze columns and rows
        1. Select the cell below the rows and to the right of the columns you want to keep visible when you scroll.
        2. Select View > Freeze Panes > Freeze Panes.

        Can you adjust one or more columns or rows at the same time? ›

        You can change the width of selected columns and the height of selected rows in a table, or you can resize all rows or columns at the same time. Note: You can't change the width or height of individual cells.

        How do I mass edit rows in Excel? ›

        In Microsoft Excel, you can edit multiple cells simultaneously using the following steps:
        1. **Select the Cells:** - Hold down the `Ctrl` key (Windows) or `Command` key (Mac). - Click on each cell you want to edit. ...
        2. **Enter Edit Mode:** - Once the cells are selected, press `F2` on the keyboard. ...
        3. **Make Changes:**
        Jan 15, 2023

        How do you change data in multiple cells at the same time? ›

        Insert the same data into multiple cells using Ctrl+Enter
        1. Select all the blank cells in a column.
        2. Press F2 to edit the last selected cell and type some data: it can be text, a number, or a formula (e.g. "_unknown_")
        3. Press Ctrl+Enter instead of Enter. All the selected cells will be filled with the data that you typed.
        Jul 19, 2023

        How do I increase the number of rows in Excel 2016? ›

        How to insert multiple rows in Excel using the insert option
        1. Select your rows. When inserting multiple rows using the "Insert" option, select the number of rows you want to add. ...
        2. Right-click your header. ...
        3. Insert rows. ...
        4. Select your cells. ...
        5. Use the shortcut key. ...
        6. Choose your number of rows. ...
        7. Insert rows. ...
        8. Select your row.
        Oct 18, 2022

        How do you resize your worksheet columns or rows? ›

        Explanation:
        1. Open Excel and choose a document to load. ...
        2. Place the mouse pointer inside a cell and click to select it.
        3. Click the Format icon in the ribbon (on the right side) and select Column Width (or Row height if you want to change the height of a Row instead).
        4. Enter the desired width, and press OK.
        Aug 15, 2020

        How do I change column data to rows? ›

        How to convert columns to rows in Excel
        1. Select the range of data to transpose. Select the range of data in your current table that you want to transpose to rows. ...
        2. Choose a new location for your data. ...
        3. Right-click the new cell and paste your data. ...
        4. Use the "paste special" command. ...
        5. Verify all data copied successfully.

        How do I change columns to rows in sheets? ›

        Switch Rows and Columns in Google Sheets: Explained
        1. Select a range or an array you want to transpose.
        2. Press “Ctrl”+”C” (for Windows) or “⌘”+“C” (for Mac) to copy the selected range.
        3. Navigate to a cell from which you want to spread the transposed range.
        4. Right-click → “Paste special” → “Transposed”.

        What are the 4 ways to edit cells in Excel? ›

        Enter Edit mode
        1. Double-click the cell that contains the data that you want to edit. ...
        2. Click the cell that contains the data that you want to edit, and then click anywhere in the formula bar. ...
        3. Click the cell that contains the data that you want to edit, and then press F2.

        How do I control cell content in Excel? ›

        Restrict data entry
        1. Select the cells where you want to restrict data entry.
        2. On the Data tab, select Data Validation > Data Validation. ...
        3. In the Allow box, select the type of data you want to allow, and fill in the limiting criteria and values.

        How can cells be manipulated? ›

        Dielectrophoresis methods for manipulation use electric fields to induce electrical polarization of cells and induce translational motion or reorientation of the cells.

        How do I adjust all rows at once? ›

        Change the row height to fit the contents

        Go to Home > Cells > Format. Under Cell Size, select AutoFit Row Height. Tip: To quickly autofit all rows on the worksheet, select Select All, and then double-click the boundary below one of the row headings.

        How to do a mass edit in Excel? ›

        In Microsoft Excel, you can edit multiple cells simultaneously using the following steps:
        1. **Select the Cells:** - Hold down the `Ctrl` key (Windows) or `Command` key (Mac). - Click on each cell you want to edit. ...
        2. **Enter Edit Mode:** - Once the cells are selected, press `F2` on the keyboard. ...
        3. **Make Changes:**
        Jan 15, 2023

        Is there a way to edit multiple cells in Excel at once? ›

        You can drag an area with your mouse, hold down SHIFT and click in two cells to select all the ones between them, or hold down CTRL and click to add individual cells. Then type in your selected text. Finally, hit CTRL+ENTER (instead of enter) and it'll be entered into all the selected cells.

        Top Articles
        Latest Posts
        Article information

        Author: Lakeisha Bayer VM

        Last Updated:

        Views: 6063

        Rating: 4.9 / 5 (49 voted)

        Reviews: 80% of readers found this page helpful

        Author information

        Name: Lakeisha Bayer VM

        Birthday: 1997-10-17

        Address: Suite 835 34136 Adrian Mountains, Floydton, UT 81036

        Phone: +3571527672278

        Job: Manufacturing Agent

        Hobby: Skimboarding, Photography, Roller skating, Knife making, Paintball, Embroidery, Gunsmithing

        Introduction: My name is Lakeisha Bayer VM, I am a brainy, kind, enchanting, healthy, lovely, clean, witty person who loves writing and wants to share my knowledge and understanding with you.