GC-CCS - CCS111L: Excel 2007: Entering Excel Formulas and Formatting Data
GC-CCS - CCS111L: Excel 2007: Entering Excel Formulas and Formatting Data
1. 2.
Click the Microsoft Office button. A menu appears. Click Excel Options in the lower-right corner. The Excel Options pane appears.
3. 4. 5. 6.
Click Advanced. If the check box next to After Pressing Enter Move Selection is not checked, click the box to check it. If Down does not appear in the Direction box, click the down arrow next to the Direction box and then click Down. Click OK. Excel sets the Enter direction to down.
1. 2. 3. 4. 5. 6. 7. 8.
Type Add in cell A1. Press Enter. Excel moves down one cell. Type 1 in cell A2. Press Enter. Excel moves down one cell. Type 1 in cell A3. Press Enter. Excel moves down one cell. Type =A2+A3 in cell A4. Click the check mark on the Formula bar. Excel adds cell A1 to cell A2 and displays the result in cell A4. The formula displays on the Formula bar.
Note: Clicking the check mark on the Formula bar is similar to pressing Enter. Excel records your entry but does not move to the next cell.
Subtraction
1. 2. 3.
Press F5. The Go To dialog box appears. Type B1 in the Reference field. Press Enter. Excel moves to cell B1.
4. 5. 6. 7. 8. 9. 10. 11.
Type Subtract. Press Enter. Excel moves down one cell. Type 6 in cell B2. Press Enter. Excel moves down one cell. Type 3 in cell B3. Press Enter. Excel moves down one cell. Type =B2-B3 in cell B4. Click the check mark on the Formula bar. Excel subtracts cell B3 from cell B2 and the result displays in cell B4. The formula displays on the Formula bar.
Multiplication
1. Hold down the Ctrl key while you press "g" (Ctrl+g). The Go To dialog box appears.
Division
1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. Press F5. Type D1 in the Reference field. Press Enter. Excel moves to cell D1. Type Divide. Press Enter. Excel moves down one cell. Type 6 in cell D2. Press Enter. Excel moves down one cell. Type 3 in cell D3. Press Enter. Excel moves down one cell. Type =D2/D3 in cell D4. Click the check mark on the Formula bar. Excel divides cell D2 by cell D3 and displays the result in cell D4. The formula displays on the Formula bar.
When creating formulas, you can reference cells and include numbers. All of the following formulas are valid: =A2/B2 =A1+12-B3 =A2*B2+12 =24+53
AutoSum
You can use the AutoSum button on the Home tab to automatically add a column or row of numbers. When you
press the AutoSum button , Excel selects the numbers it thinks you want to add. If you then click the check mark on the Formula bar or press the Enter key, Excel adds the numbers. If Excel's guess as to which numbers you want to add is wrong, you can select the cells you want.
Practice 2
AutoSum The following illustrates AutoSum:
1. 2. 3. 4. 5. 6. 7. 8. 9.
Go to cell F1. Type 3. Press Enter. Excel moves down one cell. Type 3. Press Enter. Excel moves down one cell. Type 3. Press Enter. Excel moves down one cell to cell F4. Choose the Home tab. Click the AutoSum button in cell F4. in the Editing group. Excel selects cells F1 through F3 and enters a formula
10. Press Enter. Excel adds cells F1 through F3 and displays the result in cell F4.
Practice 2
Automatic Calculation
Make the changes described below and note how Microsoft Excel automatically recalculates.
1. 2. 3.
Move to cell A2. Type 2. Press the right arrow key. Excel changes the result in cell A4. Excel adds cell A2 to cell A3 and the new result appears in cell A4. 4. Move to cell B2. 5. Type 8. 6. Press the right arrow key. Excel subtracts cell B3 from cell B3 and the new result appears in cell B4. 7. Move to cell C2. 8. Type 4. 9. Press the right arrow key. Excel multiplies cell C2 by cell C3 and the new result appears in cell C4. 10. Move to cell D2. 11. Type 12. 12. Press the Enter key. Excel divides cell D2 by cell D3 and the new result appears in cell D4.
Practice 4
Center To center cells A1 to D1:
1. 2. 3.
Select cells A1 to D1. Choose the Home tab. Click the Center button in the Alignment group. Excel centers each cell's content.
1. 2. 3.
Select cells A1 to D1. Choose the Home tab. Click the Align Text Left button in the Alignment group. Excel left-aligns each cell's content.
1. 2. 3. 4.
Select cells A1 to D1. Click in cell A1. Choose the Home tab. Click the Align Text Right button. Excel right-aligns the cell's content. Click anywhere on your worksheet to clear the highlighting.
Note: You can also change the alignment of cells with numbers in them by using the alignment buttons.
Practice 5
Advanced Calculations 1. 2. 3. Move to cell A7. Type =3+3+12/2*4. Press Enter.
Note: Microsoft Excel divides 12 by 2, multiplies the answer by 4, adds 3, and then adds another 3. The answer, 30, displays in cell A7.
To change the order of calculation, use parentheses. Microsoft Excel calculates the information in parentheses first. 1. 2. 3. Double-click in cell A7. Edit the cell to read =(3+3+12)/2*4. Press Enter.
Note: Microsoft Excel adds 3 plus 3 plus 12, divides the answer by 2, and then multiplies the result by 4. The answer, 36, displays in cell A7.
Practice 6
Copy, Cut, Paste, and Cell Addressing 1. 2. 3. 4. 5. 6. 7. 8. Move to cell A9. Type 1. Press Enter. Excel moves down one cell. Type 1. Press Enter. Excel moves down one cell. Type 1. Press Enter. Excel moves down one cell. Move to cell B9. Type 2. Press Enter. Excel moves down one cell. Type 2. Press Enter. Excel moves down one cell. Type 2. Press Enter. Excel moves down one cell.
In addition to typing a formula as you did in Lesson 1, you can also enter formulas by using Point mode. When you are in Point mode, you can enter a formula either by clicking on a cell or by using the arrow keys. 1. 2. 3. 4. 5. 6. 7. 8. Move to cell A12. Type =. Use the up arrow key to move to cell A9. Type +. Use the up arrow key to move to cell A10. Type +. Use the up arrow key to move to cell A11. Click the check mark on the Formula bar. Look at the Formula bar. Note that the formula you entered is displayed there.
1. 2. 3.
You should be in cell A12. Choose the Home tab. Click the Copy button in the Clipboard group. Excel copies the formula in cell A12.
4. 5.
Press the right arrow key once to move to cell B12. Click the Paste button in the Clipboard group. Excel pastes the formula in cell A12 into cell B12.
Compare the formula in cell A12 with the formula in cell B12 (while in the respective cell, look at the Formula bar). The formulas are the same except that the formula in cell A12 sums the entries in column A and the formula in cell B12 sums the entries in column B. The formula was copied in a relative fashion. Before proceeding with the next part of the exercise, you must copy the information in cells A7 to B9 to cells C7 to D9. This time you will copy by using the Mini toolbar. Copy with the Mini Toolbar
1. 2. 3.
Select cells A9 to B11. Move to cell A9. Press the Shift key. While holding down the Shift key, press the down arrow key twice. Press the right arrow key once. Excel highlights A9 to B11. Right-click. A context menu and a Mini toolbar appear. Click Copy, which is located on the context menu. Excel copies the information in cells A9 to B11.
4. 5. 6.
Move to cell C9. Right-click. A context menu appears. Click Paste. Excel copies the contents of cells A9 to B11 to cells C9 to C11.
7.
Absolute Cell Addressing You make a cell address an absolute cell address by placing a dollar sign in front of the row and column identifiers. You can do this automatically by using the F4 key. To illustrate: 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. Move to cell C12. Type =. Click cell C9. Press F4. Dollar signs appear before the C and the 9. Type +. Click cell C10. Press F4. Dollar signs appear before the C and the 10. Type +. Click cell C11. Press F4. Dollar signs appear before the C and the 11. Click the check mark on the formula bar. Excel records the formula in cell C12.
Copy and Paste with Keyboard Shortcuts Keyboard shortcuts are key combinations that enable you to perform tasks by using the keyboard. Generally, you press and hold down a key while pressing a letter. For example, Ctrl+c means you should press and hold down the Ctrl key while pressing "c." This tutorial notates key combinations as follows: Press Ctrl+c. Now copy the formula from C12 to D12. This time, copy by using keyboard shortcuts. 1. 2. 3. 4. 5. Move to cell C12. Hold down the Ctrl key while you press "c" (Ctrl+c). Excel copies the contents of cell C12. Press the right arrow once. Excel moves to D12. Hold down the Ctrl key while you press "v" (Ctrl+v). Excel pastes the contents of cell C12 into cell D12. Press Esc to exit the Copy mode.
Compare the formula in cell C12 with the formula in cell D12 (while in the respective cell, look at the Formula bar). The formulas are exactly the same. Excel copied the formula from cell C12 to cell D12. Excel copied the formula in anabsolute fashion. Both formulas sum column C. Mixed Cell Addressing You use mixed cell addressing to reference a cell when you want to copy part of it absolute and part relative. For example, the row can be absolute and the column relative. You can use the F4 key to create a mixed cell reference. 1. 2. 3. 4. 5. 6. 7. Move to cell E1. Type =. Press the up arrow key once. Press F4. Press F4 again. Note that the column is relative and the row is absolute. Press F4 again. Note that the column is absolute and the row is relative. Press Esc.
Cut and Paste You can move data from one area of a worksheet to another.
1. 2. 3. 4.
Select cells D9 to D12 Choose the Home tab. Click the Cut Move to cell G1. button.
The keyboard shortcut for Cut is Ctrl+x. The steps for cutting and pasting with a keyboard shortcut are: 1. 2. 3. 4. Select the cells you want to cut and paste. Press Ctrl+x. Move to the upper-left corner of the block of cells into which you want to paste. Press Ctrl+v. Excel cuts and pastes the cells you selected.
Practice 7
Insert and Delete Columns and Rows To delete columns F and G:
1. 2. 3. 4.
Click the column F indicator and drag to column G. Click the down arrow next to Delete in the Cells group. A menu appears. Click Delete Sheet Columns. Excel deletes the columns you selected. Click anywhere on the worksheet to remove your selection.
1. 2. 3. 4.
Click the row 7 indicator and drag to row 12. Click the down arrow next to Delete in the Cells group. A menu appears. Click Delete Sheet Rows. Excel deletes the rows you selected. Click anywhere on the worksheet to remove your selection.
To insert a column: 1. 2. 3. 4. Click on A to select column A. Click the down arrow next to Insert in the Cells group. A menu appears. Click Insert Sheet Columns. Excel inserts a new column. Click anywhere on the worksheet to remove your selection.
To insert rows: 1. 2. 3. 4. Click on 1 and then drag down to 2 to select rows 1 and 2. Click the down arrow next to Insert in the Cells group. A menu appears. Click Insert Sheet Rows. Excel inserts two new rows. Click anywhere on the worksheet to remove your selection.
Practice 8
Create Borders
1.
2. 3. 4.
Choose the Home tab. Click the down arrow next to the Borders button . A menu appears. Click Top and Double Bottom Border. Excel adds the border you chose to the selected cells.
Practice 9
Merge and Center
1. 2. 3. 4. 5. 6.
Go to cell B2. Type Sample Worksheet. Click the check mark on the Formula bar. Select cells B2 to E2. Choose the Home tab. Click the Merge and Center button and then centers the content. in the Alignment group. Excel merges cells B2, C2, D2, and E2
Practice 10
Add Background Color
1.
2. 3. 4.
Choose the Home tab. Click the down arrow next to the Fill Color button . Click the color dark blue. Excel places a dark blue background in the cells you selected.
Practice 11
Change the Font 1. Select cells B2 to E3.
2. 3. 4.
Choose the Home tab. Click the down arrow next to the Font box. A list of fonts appears. As you scroll down the list of fonts, Excel provides a preview of the font in the cell you selected. Find and click Times New Roman in the Font box. Note: If Times New Roman is your default font, click another font. Excel changes the font in the selected cells.
1. 2. 3. 4.
Select cell B2. Choose the Home tab. Click the down arrow next to the Font Size box. A list of font sizes appears. As you scroll up or down the list of font sizes, Excel provides a preview of the font size in the cell you selected. Click 26. Excel changes the font size in cell B2 to 26.
1. 2. 3. 4.
Select cells B2 to E3. Choose the Home tab. Click the down arrow next to the Font Color button . Click on the color white. Your font color changes to white.
Practice 12
Move to a New Worksheet
Click Sheet2 in the lower-left corner of the screen. Excel moves to Sheet2.
Practice 13
Bold with the Ribbon
1. 2. 3. 4. 5.
Type Bold in cell A1. Click the check mark located on the Formula bar. Choose the Home tab. Click the Bold button Click the Bold button . Excel bolds the contents of the cell. again if you wish to remove the bold.
1. 2. 3. 4. 5.
Type Italic in cell B1. Click the check mark located on the Formula bar. Choose the Home tab. Click the Italic button Click the Italic button . Excel italicizes the contents of the cell. again if you wish to remove the italic.
Underline with the Ribbon Microsoft Excel provides two types of underlines. The exercises that follow illustrate them. Single Underline:
1. 2. 3. 4. 5.
Type Underline in cell C1. Click the check mark located on the Formula bar. Choose the Home tab. Click the Underline button Click the Underline button . Excel underlines the contents of the cell. again if you wish to remove the underline.
1. 2. 3. 4.
Type Underline in cell D1. Click the check mark located on the Formula bar. Choose the Home tab. Click the down arrow next to the Underline button and then click Double Underline. Excel double,
underlines the contents of the cell. Note that the Underline button changes to the button shown here a D with a double underline under it. Then next time you click the Underline button, you will get a double underline. If you want a single underline, click the down arrow next to the Double Underline button and then choose Underline. Click the double underline button again if you wish to remove the double underline.
5.
Bold, Underline, and Italicize 1. 2. 3. 4. 5. 6. Type All three in cell E1. Click the check mark located on the Formula bar. Choose the Home tab. Click the Bold button Click the Italic button . Excel bolds the cell contents. . Excel italicizes the cell contents. . Excel underlines the cell contents.
Alternate Method: Bold with Shortcut Keys 1. 2. 3. 4. Type Bold in cell A2. Click the check mark located on the Formula bar. Hold down the Ctrl key while pressing "b" (Ctrl+b). Excel bolds the contents of the cell. Press Ctrl+b again if you wish to remove the bolding.
Alternate Method: Italicize with Shortcut Keys 1. 2. 3. 4. Type Italic in cell B2. Note: Because you previously entered the word Italic in column B, Excel may enter the word in the cell automatically after you type the letter I. Excel does this to speed up your data entry. Click the check mark located on the Formula bar. Hold down the Ctrl key while pressing "i" (Ctrl+i). Excel italicizes the contents of the cell. Press Ctrl+i again if you wish to remove the italic formatting.
Bold, Italicize, and Underline with Shortcut Keys 1. 2. 3. 4. 5. Type All three in cell D2. Click the check mark located on the Formula bar. Hold down the Ctrl key while pressing "b" (Ctrl+b). Excel bolds the cell contents. Hold down the Ctrl key while pressing "i" (Ctrl+i). Excel italicizes the cell contents. Hold down the Ctrl key while pressing "u" (Ctrl+u). Excel applies a single underline to the cell contents.
Practice 14
Work with Long Text
1. 2. 3.
Move to cell A6. Type Now is the time for all good men to go to the aid of their army. Press Enter. Everything that does not fit into cell A6 spills over into the adjacent cell.
4. 5. 6.
Move to cell B6. Type Test. Press Enter. Excel cuts off the entry in cell A6.
7. 8.
Move to cell A6. Look at the Formula bar. The text is still in the cell.
Practice 15
Change Column Width
1. 2. 3. 4. 5. 6.
Make sure you are in any cell under column A. Choose the Home tab. Click the down arrow next to Format in the Cells group. Click Column Width. The Column Width dialog box appears. Type 55 in the Column Width field. Click OK. Column A is set to a width of 55. You should now be able to see all of the text.
Change a Column Width by Dragging You can also change the column width with the cursor. 1. 2. Place the mouse pointer on the line between the B and C column headings. The mouse pointer should look like the one displayed here , with two arrows. Move your mouse to the right while holding down the left mouse button. The width indicator appears on the screen.
Practice 16
Format Numbers
1. 2. 3.
Move to cell B8. Type 1234567. Click the check mark on the Formula bar.
4. 5. 6.
Choose the Home tab. Click the down arrow next to the Number Format box. A menu appears. Click Number. Excel adds two decimal places to the number you typed.
7. 8. 9.
. Excel separates thousands with a comma. . Excel adds a dollar sign to your number. to change the number format to four decimal places.
Click the Accounting Number Format button Click twice on the Increase Decimal button
1. 2. 3.
Move to cell B9. Type .35 (note the decimal point). Click the check mark on the formula bar.
4. 5.
Choose the Home tab. Click the Percent Style button . Excel turns the decimal to a percent.
This is the end of Lesson 2. You can save and close your file. See Lesson 1 to learn how to save and close a file.