Create a Formula Field for a Folder
In the Navigation Pane, select the folder for which you want to create the formula field.
On the View tab, in the Current View group, click View Settings.
In the Advanced View Settings: <view> dialog box, click Columns.
In the Show Columns dialog box, click New Column.
In the Name box, type a name for the column.
In the Type box, click Formula.
Click Edit.
To insert a function in the formula, click Function, point to the function set that you want, and then click the formula that you want.
To insert a field in the formula, select the argument that you want to replace, click Field, point to the field set that you want, and then click the field that you want.
Click OK twice.
To position the field between the other fields in the view, click the field, and then click Move Up or Move Down.
To remove the field from the view, click Remove.
Note
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.