This exercise takes you through hiding and unhiding rows and columns as well as dealing with the unique issue of unhiding column A and row 1.
1. Create a new worksheet. Name it “Rows_Columns.”
2. Type 1 in cell A1 and 2 in cell A2.
3. Drag across cells A1 and A2 to select them.
4. Drag the Autofill Handle down to row 12. Let go of the mouse button. See Figure 4-62 .
Figure 4-62. Copied pattern of cell A1 and A2 down through cell A12
Hide Columns
1. Drag across column heads B through D.
2. Hold down your Ctrl key while you click column head G and drag across column
heads J and K.
3. Right-click one of the selected column heads and then select Hide.
Hide Rows
1. Drag across row heads 2 and 3.
2. Hold down your Ctrl key while you drag across row heads 6 and 7 and click row
head 10.
3. Right-click one of the selected row heads and then select Hide.
Unhide Columns
1. Drag across column heads A and E. Right-click the selected area and then select
Unhide.
2. Drag across column heads F through L. Right-click the selected area and then
select Unhide.
Unhide Rows
1. Drag across row heads 1 through 12.
2. Right-click the selected area and select Unhide.
Hide Column A
1. Right-click column head A.
2. Select Hide.
Figure 4-63. Copied column A data by using AutoFill Handle
Unhide Column A
1. Type A1 in the name box and then press Enter.
2. Click the Home Tab on the Ribbon. In the Cells group click the Format button.
3. Select Hide & Unhide from the menu and then select Unhide Columns.
Hide Row 1
1. Right-click row head 1.
2. Select Hide.
Unhide Row 1
1. Enter A1 in the name box and then press Enter.
2. Click the Home Tab on the Ribbon. In the Cells group click the Format button.
3. Select Hide & Unhide from the menu and then select Unhide Rows.
Inserting Columns and Rows
After you have entered data into your workbook you may discover that you need to add a column of data between your other columns or maybe you want to add a blank column to make your worksheet easier to read. The same holds true for rows, you may discover that you forgot to add rows of data or you merely want to add additional blank rows to improve the appearance of your worksheet.
You can add a new column(s) or row(s) anywhere in your worksheet.
How to Insert Columns
1. Select the column head where you want the column inserted.
2. Right-click the worksheet and select Insert. The column you selected will be shifted to the right and the column that you created will take its place. The new column will have the same width as the column to the left of it.
You can insert multiple columns by selecting the columns where you want the new ones inserted. If you selected four columns, then four new columns will be inserted when you right-click the worksheet and select Insert.
How to Insert Rows
1. Select the row head where you want the row inserted.
2. Right-click the worksheet and select Insert. The row you selected will be shifted down and the row that you created will take its place. The new row will have the same height as the row above it.
You can insert multiple rows by selecting the rows where you want the new ones inserted. If you selected four rows, then four new rows will be inserted when you right-click the worksheet and select Insert.
Deleting Columns and Rows
You can just as easily remove a column or row as you can add them. Some of the reasons for removing a
1. Select the column heads of the columns you want to delete.
2. Right-click the worksheet and select Delete. The columns to the right of the deleted columns will be shifted left to replace those columns that you deleted (to replace the vacated space).
How to Delete Rows
You can delete one row or multiple rows at the same time.
1. Select the row heads of the rows you want to delete.
2. Right-click the worksheet and select Delete. The rows below the deleted columns will be shifted up to replace those rows that you deleted.
Inserting and Deleting Cells
You can insert blank cells above or to the left of an active cell. You can bring up the Insert dialog box (Figure 4-64 ) to perform this operation by right-clicking any cell and then selecting Insert from the context menu.
When you insert blank cells, you can choose to move the other cells in the same column down (Shift cells down) or to move the other cells in the same row to the right (Shift cells right) to accommodate the new cells. Notice that the Insert Dialog Box also has options for inserting entire rows and columns.
Figure 4-64. Insert window
You can remove cells by selecting the cells you want to remove, then right-clicking and selecting Delete from the context menu. This brings up the Delete Dialog Box (Figure 4-65 ) which provides options for deleting cells, entire rows, or entire columns.
You can choose to have the deleted cells replaced with cells from the right (Shift cells left) or you can choose to have the deleted cells replaced with those from below (Shift cells up).