The rules are simple. On the Table Tools Layout tab in the Data group click Formula. Click the blank cell you want to show the calculated result then click layout Formula.
Select the table cell where you want your result.
Formulas are calculated automatically each time you move the insertion point or insert a formula using the Table formula toolbar. The Formula dialog box appears as shown. Insert a formula in a table cell. Click OK to accept the change.