For instance, you can click cell C1 and begin typing =A1+B1, as shown in Image 1-1.
Note how you can see your formula in both the cell you’re typing in and the Formula Bar above the column headings.
Image 1-1: Entering a basic formula. |
Excel formulas accept the following types of values:
- Constants: You can use hard-coded numbers directly in a formula. For example, you can enter =5+10 directly into a cell to get the answer 15.
- Operators: These include symbols that perform addition (+), symbols that perform multiplication (*), symbols that compare values (>), and symbols that join values together (&). For example, entering =15>10 into a cell returns TRUE as the result because 15 is indeed greater than 10.
- Cell references: These include any value that points back to a single cell or range of cells. As you’ve already seen, entering =A1+B1 in a cell tells Excel to use the values in those two cells in the formula.
- Text strings: Any text string can be used as an argument in a formula as long as it’s wrapped in quotation marks. For example, entering =“Microsoft”&”Excel” in any cell results in the joined text Microsoft Excel.
Methods for entering formulas
You have several ways to actually enter a formula into a cell:- Enter the formula directly into a cell: Simply click a cell, begin typing your formula, and then press the Enter key on your keyboard.
- Enter the formula into the Formula Bar: Click inside the Formula Bar found above the column headers, type your formula, and then press the Enter key on your keyboard.
- Enter the formula using the mouse: If your formula involves cell references, you can use the mouse to help reduce the amount of typing you need to do. For instance, instead of typing =A1+B1, you can type the equal symbol, use your mouse to click cell A1, type the plus symbol, use the mouse to click cell B1, and then press the Enter key.
- Enter the formula using the arrow keys: If your formula involves cell references, you can use the arrow keys on your keyboard to help reduce the amount of typing you need to do. For instance, instead of typing =A1+B1, you can type the equal symbol, use the arrow keys on your keyboard to move the cursor to cell A1, type the plus (+) symbol, use the arrow keys on your keyboard to move the cursor to cell B1, and then press the Enter key.
Editing a formula
If you find that you need to edit a formula, you can do so in three ways:- Edit directly in the Formula Bar: Select the cell that contains your formula, go up to the Formula Bar, and start editing the formula there.
- Double-click the formula cell: You can edit the formula directly in the cell it’s in by double-clicking the cell. Double-clicking the cell gets you into Edit mode, where you can edit the formula as needed.
- Press F2: Select the cell that contains your formula and then press F2 on your keyboard to get into Edit mode. As stated previously, you can then edit the formula as needed.
0 komentar:
Post a Comment