Working with Formulas

     

Custom field formulas are powerful: They allow a user to set the value of a field as a function of the value of other fields. For example, you might want a custom cost field to represent the budget allotted for the completion of a given task. This value would be hand-entered by the project manager. A second cost field contains a formula that defines its value as the budget field minus the task's Actual Cost field. This field would represent the Remaining Budget amount for the task.

You can also use formulas to create new calculated fields that did not exist before. For example, there is no Remaining Budget field, but the example on the next page discusses the creation of a Budget field and a Remaining Budget field using a formula.

Entering a Formula

graphics/one_icon.jpg Click Tools, Customize, Fields from the menu bar.

graphics/two_icon.jpg Select the field to which you want to add a formula.

graphics/three_icon.jpg Click the Formula button.

graphics/four_icon.jpg Enter the formula by hand here.

graphics/five_icon.jpg Use the Fields drop-down menu to choose from a list of fields to include in your formula.

graphics/six_icon.jpg Use the Function drop-down menu to select from a list of functions to use in your formula.

graphics/seven_icon.jpg Click OK when you've entered a formula.

graphics/09inf11.jpg

Entering the Remaining Budget Formula

graphics/one_icon.jpg Click Tools, Customize, Fields from the menu bar.

graphics/two_icon.jpg Rename a task Cost field to Budget and a second Cost field to Remaining Budget using the "Renaming a Field" task in this chapter.

graphics/three_icon.jpg Select the Remaining Budget field.

graphics/four_icon.jpg Click the Formula button.

graphics/five_icon.jpg Click on the Field drop-down menu and navigate to the Cost, Custom Cost, Budget field you just created above.

graphics/six_icon.jpg Enter a minus sign by typing it or by clicking the minus button.

graphics/seven_icon.jpg Click on the Field drop-down menu and navigate to the Cost, Actual Cost entry, or type [Actual Cost] .

graphics/eight_icon.jpg Click OK.

graphics/nine_icon.jpg The Remaining Budget custom cost field will now equal the Budget field, minus the task Actual Work field.

graphics/09inf12.jpg

Did You Know?

You may see the text #Error when using formulas . If you create a formula and your task or resource is lacking some of the data that the formula needs to calculate, you might see the text #ERROR . Do not be alarmed .


For Your Information

Experiment and Learn

Custom field formulas are difficult to fully explain. Experience and experimentation are the best ways to fully understand its power. Not every project or project manager will need to have formulas in their custom fields. However, it is a good idea to create a test project and play around with creating formulas for different fields.




Show Me. Microsoft Office Project 2003
Show Me Microsoft Office Project 2003
ISBN: 0789730693
EAN: 2147483647
Year: 2003
Pages: 204

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net