Using Order of Operations
- Download the file Ernie.xls.
- Cell D4 has a formula that calculates the sticker price by using dealer and preparation costs multiplied by the markup: =b4+c4*$d$2 (this cell reference is an absolute reference as indicated by the dollar signs; it must be an absolute reference rather than relative—an absolute reference is a cell reference that does not change when you copy the formula to a new location on the workbook).

- To create an absolute reference, you preface the column and row designations with a dollar sign—you can manually enter these or after you type the cell reference hit the F4 function key and it will insert the dollar signs. You can see this formula in the formula bar located right above the spreadsheet.
- Check the calculation result yourself by adding $500 to $2500 and add 10% ($300) of that to the result. Compare your results to the sticker price on the worksheet. Something is wrong with the worksheet formula (it should be $3300).
- Excel follows the mathematical order of operations when it performs calculations so that multiplication and division are performed first and then addition and subtraction. Here dealer cost in B4 is added to the result of the preparation cost after it is multiplied by the markup first when the dealer and preparation costs are supposed to be added first and then multiplied. Therefore, you need to put parentheses around (B4+C4) so that these cell contents are added before performing the multiplication. The results should be $3,300.

- Now replicate this formula in cells D5 through D11 by going to the right edge of the cell until the cursor changes to a + and then drag down across the range—the results should be $3,245, $2,530, $3,850, $4,400, $385, $1870, $605.

- Then complete the formula for range E4:E11. ($3450, $3,392.50, $2645, $4025, $4600, $402.50, $1955, $632.50).
- Go to the next section on the PMT Function.
Click here to return to Course Topics.

