Step 2 Now click the Layout tab and then click the Formula button. See screenshot Step 2. As soon as you click on any of the boxes the Header and Footer Tools Design tab appears.
Type an arithmetic operator for example - or then select another cell to use in your formula or type a value.
You can select the style of ordinal numbers you want in A or B also you can type the style you like in C. Click in a cell that should contain the sum of the rows. Scroll until you see Page X of Y and select a format. Choose Field from the Insert menu.