Section Learning Goals In this section, you will learn:
|
Microsoft Excel XP, as a member of the Microsoft Office XP suite of products, inherits all of the features built in to each new release of Office. These features ripple throughout the Office product suite and into Microsoft Word, PowerPoint, and Access. These enhancements are. To make best use of computer resources FlexiHub is a must have software for mid to large scale. With Excel, your Office moves with you being able to implement the most complex formulas and with amazing features. Review your accounting, audit or financial analysis or start a budget on the go. Customize your spreadsheet your way with robust formatting tools and great features. Microsoft Office XP (codenamed Office 10) is an office suite created and distributed by Microsoft for the Windows operating system. Office XP was released to manufacturing on March 5, 2001, and was later made available to retail on May 31, 2001. It is the successor to.
Excel Worksheets
Basic Formulas
A formula is an equation that calculates a value for a cell or a range of cells. You enter a formula into the formula bar preceded by an equal (=) sign. This tells Excel to calculate a value for what you’ve entered, rather than treating your entry as plain text. Formulas can be very simple-such as addition or subtraction-or very complex, performing multiple calculations and referencing additional formulas in numerous cells.
Formulas remain behind the scenes; that is, cells display the resulting values of the formulas you’ve entered, rather than the formulas themselves. Because formulas can refer to other cells in a worksheet, other worksheets, or even other workbooks, the value of a cell containing a formula will change as the contents of the referenced cells change.
Excel Exposure
For example, if you want to calculate the total number of widgets you sell in the year 2004, and for each month of the year you have a cell containing the total number of sales that month, you can enter a formula into a “Total Annual Sales” cell to add together the sales for each month. By the end of June, you may have only sold 715 widgets:
But by the end of the year, as new figures are added for the remaining months, your total widget sales may climb to over 1,300:
As you can see, Excel automatically updates this total as figures are entered into the cells for monthly sales totals.
Note that in the example above the formula that calculates the value for the total annual sales actually refers to cells containing formulas of their own. Cell B6 adds together the contents of cells B2 through B4; cell C6 adds together the contents of cells C2 through C4; and so on. Cell C9, which calculates the total annual sales, adds together the values of cells B6 through M6. Thus, Excel can calculate values that are then used to calculate new values for other cells.
Constructing a Basic Formula
To enter a formula into a cell:
- Select the cell.
- In the formula bar, enter an equal (=) sign, and then type the formula.
- Press Enter.
Similarly, you can view a formula contained in a cell by clicking the cell. When the cell is selected, the formula is displayed in the formula bar.
To edit the formula, you simply change it in the formula bar and press Enter.
The simplest formulas can use familiar operators, such as:
- The plus sign (+) for addition
- The minus sign (-) for subtraction
- The asterisk (*) for multiplication
- The backslash (/) for division
Excel calculates formulas using standard mathematical rules; specifically, values are calculated from left to right, with any operations contained in parenthesis performed first.
For example, if you want to calculate the average sales among all three widgets for the month of January, you might enter the following formula into a new cell below the monthly total:
=(B2+B3+B4)/3
In this formula, “B2” refers to the value contained in cell B2; “B3” refers to the value contained in cell B3; and “B4” refers to the value contained in cell B4. If you later change the value of one of those cells-for example, you find 46 units of Widget 1 were sold, and not 45-Excel will update the total.
The number “3” in the formula is a constant-a value that doesn’t change, unlike the cell references, whose values can change if you edit the data in the cells.
When you press Enter, Excel calculates the value and displays it in the cell.
In the example above, it isn’t necessary to include the parentheses in the formula, since Excel calculates the values from left to right. However, using parentheses to indicate a combined value (in this case, the total of three cells) is often helpful, particularly in more complex formulas.
Excel Npv Template
The formula can be further simplified by replacing the three referenced cells with a single reference to the cell containing the formula that calculates January’s total sales, cell B6:
=B6/3
Excel Functions
Excel provides many built-in formulas, called functions, which make it much simpler to perform calculations. In the last section, the following formula was used:
=(B2+B3+B4)/3
“B2”, “B3”, and “B4” represented the number of widgets sold in the month of January. “B2” represented Widget 1 sales, “B3” Widget 2 sales, and “B4” Widget 3 sales, as shown in the sample spreadsheet below:
To calculate the total number of sales for the month of January, you could enter the formula =B2+B3+B4 into cell B6 (next to Total). However, it’s easier to use the SUM function, particularly when you’re adding together a large number of cells in a range:
=SUM(B2:B4)
Functions begin with the name of the function (for example, “SUM”) followed by parentheses enclosing the specific values being calculated (called arguments). These values can be constants, cells references, or even text you want to combine. To refer to a range of cells, type the first cell in the range, then a colon (:), and then the last cell in the range (for example, “B2:B4”).
You enter a formula that uses a function the same way you’d enter any other formula: select the cell, type an equal sign (=) and then the formula, with its function, in the formula bar, and press Enter.
Excel calculates the value and displays it in the cell.
Functions simplify formulas by telling Excel to use a predefined method of calculating values. Microsoft Excel includes functions for calculating averages, statistics, dates, and much more. In many cases, you need only supply simple data, such as the range of cells to be used in the calculation.
Using the Formula Palette
Excel’s Formula Palette can help you construct formulas that contain functions by displaying a list of the built-in functions and the arguments used for each. To access the Formula Palette:
- Select the cell in which you want to enter the formula.
- Click the Edit Formula button in the formula bar.
- The Formula Palette opens.
- From the Functions drop-down menu, select a function that describes the type of calculation you want to perform.
Tip:
Select More Functions to see additional functions.
When you select a function, the Formula Palette displays fields in which you can enter the arguments (the values to be calculated), as well as a description of the function and the current result of the calculation.
In the example above, the AVERAGE function has been selected. The AVERAGE function adds together the values (called arguments) you supply and then divides this total by the number of values that were added, which Excel calculates for you. In this function, you only need supply the values whose average you want to calculate.
- Enter the values you want calculated into the Number 1 field.
By default, Excel has assumed you want to use the values of the range of cells above the cell containing the formula (B2:B6). This range can be deleted and another one can be entered, and the formula displayed in the formula bar will change accordingly. Alternatively, you can enter constants separated by commas, such as “3,5,7,9”, in which case Excel will calculate the average of the numbers 3, 5, 7, and 9.
Below, “B6” has been changed to “B4” so Excel will calculate the average of the values in cells B2 through B4.
Tip:
If you like, you can hide the Formula Palette and use your mouse to select the range of cells whose values you want Excel to use in the formula:
- Click the button to the right of the Number 1 field .
The Formula Palette disappears, leaving only the field.
- If necessary, delete the existing contents of the field. Then select the range of cells you want to use in the formula.
As you select the cells, Excel enters the range into the field, updating it as you move your mouse.
- Click the button to the right of the field to display the Formula Palette again.
- When you’ve finished entering the values for your function, click OK to close the Formula P
alette.
Excel calculates the value and displays it in the cell.
Absolute and Relative Cell References
By default, Excel uses relative cell references. Relative cell references are those whose locations Excel calculates based on the location of the formula. This means that when you insert a new row or column into a range included in a formula, Excel automatically includes the new data in its calculations, and edits the formula accordingly. Similarly, when you copy a formula from one cell to another, Excel adjusts the cell references.
For example, you can copy the formula in cell B6 below (which adds together the values in the range B2:B4) to cell C6, and Excel will adjust the formula to add together the values in the range C2:C4.
This is because the cell range used in the original formula is relative-it tells Excel to use the values in the cells 4, 3, and 2 rows above the formula. The copy of the formula, in cell C6, also looks for values 4, 3, and 2 rows above-in the range C2:C4.
As another example, suppose the International Widget Company decided to include the sales of widget accessories in the January monthly total. A new row is inserted below row 4 (which contains the monthly values for Widget 3). This moves the row containing the formula down one row, to B7.
In the new row, total sales are entered for the widget accessories. As soon as a value is entered into cell B5, Excel changes the formula in cell B7 (formerly B6) from =SUM(B2:B4) to =SUM(B2:B5), and updates the resulting value:
In contrast, absolute cell references are references that refer to a specific location. These are indicated by a dollar sign ($) preceding the part of the reference that should be absolute-that is, before the row reference, before the column reference, or before each, to make the entire cell reference absolute:
·$B4 indicates that column B is absolute, but row 4 is relative.
·B$4 indicates that column B is relative, but row 4 is absolute.
·$B$4 indicates that the entire reference-to cell B4-is absolute.
When you use an absolute reference, Excel will not adjust formulas when they’re copied to new locations.
Note:
If you include in your formula a range that uses absolute cell references (for example, =SUM($B$2:$B$4)) and then insert a row or column that produces a new cell located within that range (for example, you insert a new row before row 4), Excel will adjust the range in the formula, just as it would if you’d used relative references. This is because Excel assumes that you still want your calculation to include the first and last cells you initially specified. However, if you insert a new below row 4 (as we did when we added Widget Accessories), Excel will not adjust the range in the formula, and cell B5 (newly inserted) will not be included in the calculation.
Absolute references should be used when you want to use the same calculated value in different locations in a workbook (for example, if you want to include total annual sales, calculated on the first sheet of a workbook, in subsequent worksheets).
Tip:
To quickly change a cell reference from relative to absolute (or vice versa), select the cell and press F4 on your keyboard. This toggles the references through the various combinations of absolute and relative columns and rows.
Related Tutorials
Lesson 6: Creating Complex Formulas
/en/excelxp/creating-simple-formulas/content/
Introduction
By the end of this lesson, you should be able to:
- Create complex formulas
- Fill a formula to another cell
- Copy and paste a formula to another cell
- Revise a formula
- Create an absolute reference
Complex formulas defined
Simple formulas have one mathematical operation. Complex formulas involve more than one mathematical operation.
The order of mathematical operations is important. If you enter a formula that contains several operations—like adding, subtracting, and dividing—Excel XP knows to work these operations in a specific order. The order of operations is:
- Operations enclosed in parenthesis
- Exponential calculations (to the power of)
- Multiplication and division, whichever comes first
- Addition and subtraction, whichever comes first
Using this order, let us see how the formula 120/(8-5)*4-2 is calculated in the following picture:
Let's take a look at another example:
2*(6-4) =?
Is the answer 8 or 4? If you ignored the parentheses and calculated in the order in which the numbers appear, 2*6-4, you'd get the wrong answer, 8. You must follow the order of operations to get the correct answer.
To calculate the correct answer:
- Calculate the operation in parenthesis (6-4), where the answer is 2.
- Multiply the answer obtained in step 1, which is 2, to the numeric 2* that opened the equation. In other words, multiply 2*2.
- The answer is 4.
When using formulas with cell references, the results change each time the numbers are edited.
In Excel, never do math in your head and type the answer in a cell where you would expect to have a formula calculate the answer.
Complex formulas defined
Before moving on, let's explore some more formulas to make sure you understand the order of operations by which Excel calculates an answer.
5*3/2 | Multiply 5*3 before performing the division operation because the multiplication sign comes before the division sign. The answer is 7.5. |
5/3*2 | Divide 5/3 before performing the multiplication operation because the division sign comes before the multiplication sign. The answer is 3.333333. |
5/(3*2) | Perform the operation in parentheses (3*2) first and divide 5 by this result. The answer is 0.833333. |
5+3-2 | Add 5+3 before performing the subtraction operation because the addition sign comes before the subtraction sign. The answer is 6. |
5-2+3 | Subtract 5-2 before performing the addition operation because the subtaction sign comes before the addition sign. The answer is 6. |
5-2*3 | Multiply 2*3 before performing the subtraction operation because the multiplication sign is of a higher order than the subtraction sign. The answer is -1. |
(5-2)*3 | Perform the operation in parenthesis (5-2) first and then multiply by 3. The answer is 9. |
Creating complex formulas
Excel XP automatically follows a standard order of operations in a complex formula. If you want a certain portion of the formula to be calculated first, put it in parentheses.
If we wanted to add the contents of cell B2 and cell B3, for example, then take that answer and multiply it by the data in cell A4, we would need to define the following formula: =(B2+B3)*A4.
- Enter the numbers you want to calculate.
- Click the cell where you want the formula result to appear.
- Type the equals sign (=) to let Excel know that a formula is being defined.
- Type an open parenthesis, or (.
- Click the first cell to be included in the formula (cell B2, for example).
- Type the addition sign (+) to let Excel know that an add operation is to be performed.
- Click the second cell in the formula. The reference B3 displays where you want your result.
- End the B2+B3 operation by adding a closed parenthesis, or ).
- Type the next mathematical operator, or the multiplication symbol (*), to let Excel know that a multiply operation is to be performed.
- Click the third cell to be included in the formula, cell A4.
- Press Enter or click the Enter button on the formula bar to complete the formula.
Try changing one of the values in the formula and watch the answer to the formula change.
Excel will not always tell you if your formula contains an error, so it's up to you to check all of your formulas. To learn how to do this, read the Double-Check Your Formulas lesson from our Excel Formulas tutorial.
Filling formulas to other cells
Sometimes you'll write a formula that gets used various places within a worksheet. For example, a spreadsheet may contain several columns of numbers. Each column will contain a formula that adds all of the numbers in it. You could write the formula several times, once in each column, or you could copy and paste it into each column. The fill formula method allows you to copy a formula and fill it into many different cells at the same time.
The mouse pointer changes to a black crosshair when passed over the fill handle, or the square box in the lower-right corner of the cell.
To use the fill handle to copy a formula to a surrounding cell:
- Click the cell that contains the formula to be copied.
- Position the mouse pointer over the fill handle.
- Click and hold the left mouse button, then drag the contents to the cell that will receive the fill formula.
- Release the mouse button.
- Select the Copy Cells option in the fill formula drop-down menu.
The cell references in a formula are automatically updated when the formula is copied to other cells in the spreadsheet.
You can also copy and paste formulas to other cells. This is discussed on the next page.
Copying and pasting formulas
The process to copy and paste a formula is identical to the process for copying and pasting text.
To copy and paste a formula:
- Select the cell that contains the formula you want to copy.
- Click the Copy button. Marching ants appear around the copied cell(s).
- Select the cell where the copied formula will be pasted.
- Press the Enter key. The formula is copied to the new location.
Revising formulas
You can revise any formula that was previously written in a worksheet.
To revise a formula using the keyboard:
- Double-click the cell containing the formula you want to revise.
- The cursor can now move left and right between the values in the formula in cell B5.
- Make the necessary changes to the formula.
- Press the Enter key or click the Enter button to accept the new formula.
Creating an absolute reference
In earlier lessons, we saw how cell references in formulas automatically adjust to new locations when the formula is pasted into different cells.
Sometimes when you copy and paste a formula, you don't want one or more cell references to change. Absolute references solve this problem. Absolute cell references in a formula always refer to the same cell or cell range in a formula. If a formula is copied to a different location, the absolute reference remains the same.
An absolute reference is designated in the formula by the addition of a dollar sign ($). It can precede the column reference, the row reference, or both. Examples of absolute referencing include:
Excel Xps Not Working In Windows 10
$A$2 | The column and the row do not change when copied. |
A$2 | The row does not change when copied. |
$A2 | The column does not change when copied. |
To create an absolute reference:
- Enter the numbers you want to calculate (for example, 34,567 in cell B2 and 1,234 in cell B3).
- Create a simple formula (=B2+B3).
- To create an absolute reference in the formula, insert a $ value before the B (column reference) and 2 (row reference) in the reference to B2 so the new formula reads =$B$2+B3.
- Copy and paste the formula to an adjacent cell. The formula now includes an absolute reference to B2: =$B$2+D3.
Challenge
- Type the following information:
In cell A1, type 12345.
In cell A2, type 15865.
In cell B1, type 9347.
In cell B2, type 11942.
In cell C1, type 19348.
In cell C2, type 17103. - Create the following simple formula:
In cell A3, write a formula to add cell A1 and cell A2.
- Fill the formula in cell A3 to both cell B3 and cell C3.
- Create the following complex formula:
In cell A5, write a formula that divides cell A1 by the sum of cells A3, B3, and C3.
- In the formula defined in cell A5, create an absolute reference to all cells and rows referenced in the following part of the formula: sum of cells A3, B3, and C3.
- Copy the formula and absolute reference in cell A5 and paste it into cell B5 and cell C5.
- Note how the formulas that appear in cell A5, cell B5, and cell C5 differ from one another.
/en/excelxp/using-functions/content/