|
Excel |
||
|
With Microsoft Excel, you can easily perform common and
complex calculations. In addition to adding, subtracting, multiplying, and
dividing, you can calculate the total and compute the average of a set of
values. With basic calculations, you can figure profit values from revenue
and expenses and you can compute an employee’s wages from hours worked and
pay rates. These are just a few examples of the calculations Excel can
perform. In this exercise, you open a worksheet and create basic formulas using different methods to enter the formulas. Click cell C9, and type =C5+C6+C7. As you type each cell address (or reference), the cell being referred to is selected and the selection border appears in a specific color. This color matches the color of the text used for the cell reference. Press Enter. The total of the cells (908) appears in cell C9. Click cell C13, type =, and click cell C5. C5 is added to the formula. The cell you click is color-coded and shows a flashing marquee border Type /, click cell A5, and click the Enter button on the Formula bar. Excel completes the formula and displays the ratio of cells C5 and A5 (30.25). Scroll down, if necessary, and click cell C21. Click in the Formula bar, type =C13/31, and click the Enter button on the Formula bar. Excel calculates the occupancy rate of chalet rooms for the month of January (0.97581), and the results appear in cell C21. On the Format menu, click Cells. Switch to the Number tab, if necessary, and click Percentage in the Category list. Click OK to accept the default number of decimal places (2). The value in C21 appears as a percentage. You may find that a similar formula is needed in several adjacent cells. For example, if you have a list of items and each item contributes to the total income for one year, you might want to add the items to total the income for that year. To total the income for consecutive years, you can create formulas to sum the income for each year. Instead of entering the formula repeatedly for each year, you can simply copy it and paste it in the destination cells. You also can use the Fill feature to copy formulas to adjacent cells. When selecting a cell, you may have noticed the small black square in the bottom right corner, this is the Fill handle. When you click a cell containing a formula and drag the Fill handle, the formula is copied to the cells. When the formula contains cell references, Excel changes them to match those of the column or row to which the formula has been copied unless the formula was enter telling Excel not to change the cell reference. Copy formulas In this exercise, you copy formulas in your worksheet. Click cell C13, and on the Edit menu, click Copy. A flashing marquee border appears around the cell. Click cell C14, and on the Edit menu, click Paste. The formula is pasted in cell C14, and the Paste Options button appears next to the cell. Repeat step 2 for cells C15 and C16. Click cell C9, and point to the Fill handle. The mouse pointer turns into a crosshair pointer when properly positioned. Drag the Fill handle to cell D9. The formula in cell C9 is copied to cell D9, and the Auto Fill Options button appears next to the cell. Click cell D9, and observe its formula in the Formula bar. The formula is copied from C9, and the column letter is adjusted to match the column of the new cell. Point to the Fill handle in cell D9, and drag the handle to cell N9. The formula is copied to cells E9:N9. The total number of nights occupied for each month is displayed in cells E9:N9. Save the file, and leave it open for the next exercise As you have learned, you can copy (and move) cells that contain formulas with cell references, and the references automatically adjust to reflect their new location. These are referred to as relative references. In some cases, however, you need cell references that don’t change when you copy them from one location to another. For example, a formula might refer to a rate of interest that is always stored in a particular cell. This is referred to as an absolute reference. A cell reference also may have an absolute reference to a row but not to a column, and vice versa. To make a cell reference absolute, type a dollar sign ($) before either or both of the column or row references. Use cell references in formulas In this exercise, you use absolute references and relative references to build and copy a formula. Double-click cell C13. Type a dollar sign ($) before the A in the reference to cell A5, and press Enter. The formula reads =C5/$A5. Copy the formula in cell C13 to cell D13, and click cell D13, if necessary, to select it. The formula in cell D13 reads =D5/$A5. Because the column reference to cell A5 is absolute, that reference does not change when the formula is copied. The reference to the first cell in the formula is entirely relative. Copy the formula in cell C13 to cell C14, and click cell C14. The formula in cell C14 reads =C6/$A6. Because the reference to column A is absolute, that reference does not change when the formula is copied. However, the row reference is still relative, so that value is updated when the formula is copied. The reference to the first cell is entirely relative. Using the Fill handle, copy the formula in cell C14 to cells C15 and C16. Click cell D13 and use its Fill handle to copy the formula to E13:N13. Use the Fill handles on C14, C15, and C16 to copy their formulas to D14:N14, D15:N15, and D16:N16, respectively. Save and close Lodging Usage Open Food07. Edit formulas In this exercise, you revise formulas. Click cell P3, and click to the right of the formula in the Formula bar. The insertion point flashes at the end of the formula. Press the Backspace key three times, click cell O3, and then press Enter. The Total Yearly Consumption figure, which also is shown in cell O3, is deleted from the formula, and the cell reference for that data replaces it. Using a cell reference in the formula instead of a constant allows you to copy the formula. Copy the formula to cells P4:P35 by using the Fill handle in cell P3. Excel calculates and displays the yearly costs per item. Save and Close Food07 Functions One of the most common calculations performed in a worksheet is adding a range of cells. You can add a range of cells by creating a formula that includes each cell label separated by the addition (+) operator. An easier way to achieve the same result is to use the SUM function. A function is a predefined formula that performs a calculation. For example, the SUM function adds values or a range of cells. A typical SUM function totaling cells C13 through C16 looks like this: =SUM(C13:C16). A function consists of two components: the function name and, in most cases, an argument list. The argument list, which is enclosed in parentheses, contains the data (or operands) that the function requires to produce the result. Depending on the function, an argument can be a constant value, a single-cell reference, a range of cells, a range name, or even another function. When a function contains multiple arguments, the arguments are separated by commas. In this lesson, you explore some of the more commonly used functions, including the SUM, AVERAGE, and various date functions. Open Activity Rentals. Inserting functions In this exercise, you use the Insert Function feature to enter functions in a worksheet. Click cell O3, and click the Insert Function button on the Standard toolbar. The Insert Function dialog box opens In the Or Select A Category box, click the down arrow, and select Most Recently Used, if necessary. |
In the
Select A Function list, click SUM, and then click OK. The Function
Arguments dialog box appears, showing the SUM function totaling cells
C3:N3. Email
Lodging Usage, Activity
Rentals, and
Food07 |
|