Use the Formula dialog box to create, review, or revise a formula that's associated with a custom field. If you know the correct syntax, you can type in a formula, or you can:
-
Choose from a set of buttons representing a standard set of operators.
-
Insert the name of any project field to have the formula use the field's value.
-
Insert a predefined function into the formula.
-
Import a formula from another project file.
Dialog box location
On the Tools menu, point to Customize, and then click Fields. Click the custom field to which you want to apply a formula, and then click the Formula button.
Details
Edit formula box
Type the formula for the custom field in the box, or use the buttons to build the formula.
Formula toolbar
Addition
Subtraction
Multiplication
Division
String concatenation
Modulus (modular division)
Integer division
Exponentiation
Opening parenthesis
Closing parenthesis
Equals
Not equals
Less than
Greater than
Logical AND
Logical OR
Logical NOT
Insert section
Field Click to select and insert a field into the formula you're building in the Edit Formula box. First point to the field type you want (for example, Cost, Date, or Number). The list of all Microsoft Office Project fields for that field type appears. Click the name of the specific field you want to use in your formula. The field is inserted into your formula in the Edit formula box. When the formula is evaluated, the field reference is replaced by the actual field value for the current task or resource.
Function Click to select and insert a function into the formula you're building in the Edit Formula box. First point to the function type you want (for example, Date/Time, Math, or Text). The list of all functions for that function type appears. Click the name of the function you want to use in your formula. The function, along with placeholders for any arguments, is inserted into your formula in the Edit formula box. Replace the argument placeholders with actual values or expressions.
Import Formula Click to open the Import Formula dialog box and import a formula from another project or another field in this project.