|
|
|
|
|
|
Spreadsheets- Advanced CalculationsComplicated FormulasOrder of EvaluationsSometimes you may want to create a formula in which you will use more than one type of operation. To calculate formulas with multiple mathematical operations, Excel follows standard algebraic rules for orders of operation. In Excel these rules are called the order of evaluation. The table below demonstrates Excel's standard order of evaluation.
If more than one operation exists on the same level category, Excel evaluates from left to right. For example, to calculate the formula =(8+3)+9-3*2, Excel use the following steps:
1. Parentheses =(8+3)+9-3*2
2. Multiplication/Division =11+9-3*2
3. Addition/Subtraction =11+9-6
=14
Grouping Formulas
As you saw in the table above, parentheses come first in the order of evaluations. You can override Excel's standard order of evaluations by using parentheses to group the operations you want completed first. Notice the difference in the results of the following formulas: =5+6*0.5 Result: 8 =(5+6)*0.5 Result: 5.5The parentheses modify the order of evaluations and therefore the computed result. Parentheses can also be used to enforce the order of evaluation to ensure that the result you get is the one you want. Compare the following formulas. Both have the same result; however, it is easier to decipher the order of evaluations in the first because of the parentheses. =((5*4)/2+(10/2)) Result: 15 =5*4/2+10/2 Result: 15 You can add as many parentheses, so long as you do so in matching pairs. That is, for ever "(" you must also have a ")" and visa versa. Excel will color code the parentheses to help you determine which are closed and which are not. Also, if you do not close the parentheses, Excel will display an error and propose a correction for it. Notice what happens in the following example where the parentheses are not closed:
You can group formulas with cell references in the same manner that you group standard formulas. The formula will be calculated following Excel's order of evaluations.
|
|
University of Nevada, Las Vegas | Project THREAD | Site Map
4505 S. Maryland Parkway Las Vegas, NV 89154-3005 Phone Number: (702) 895-2727 | FAX: (702) 895-4898. Send questions or comments to project.thread@ccmail.nevada.edu Last Updated: Saturday, 28-Feb-2004 23:48:55 PST. Maintained by N. T. Drake |