Using Formulas and Functions

  • 6/15/2010

Debugging Your Formulas

When you share a workbook with your colleagues, some of the values in that workbook might change rapidly as new data is entered. For example, workbook data probably will change quickly if you are evaluating stock prices. Stock market values change frequently, so your data will as well. You can monitor the value in a cell even while you’re using another workbook by setting a watch. When you set a watch, the values of the cells you’re monitoring appear in the Watch Window.

Another way you can monitor your data is to check the result of part of a calculation by using the Evaluate Formula dialog box. When you click the Evaluate Formula button, Excel displays the formula in the active cell and the subtotal for part of the calculation. You can move through the formula bit by bit, with Excel showing you the result of each piece of the formula.

Monitor a Formula for Changes

  1. Click the Formulas tab.

  2. Click Watch Window.

  3. Click Add Watch.

  4. Select the cells you want to watch.

  5. Click Add.

  6. Click Watch Window.

    httpatomoreillycomsourcemspimages632215.png

Delete a Watch

  1. Click the Formulas tab.

  2. Click Watch Window.

  3. Click the watch you want to delete.

  4. Click Delete Watch.

  5. Click the Close button.

Evaluate Parts of a Formula

  1. Click the cell with the formula you want to evaluate.

  2. Click the Formulas tab.

  3. Click Evaluate Formula.

  4. Click Evaluate (one or more times) to move through the formula’s elements.

  5. Click Close.