Double-click the column name to which you want to apply the formula, select Formula from the Column Properties menu, and then click Edit Formula.
Building a Formula
See Use Basic Formula Editor Features, for an example of how to use the Formula Editor.