In this example the discount with volume 5. All functions you can see in the Paste function drop-down list of the Formula dialog box. Select the table cell where you want your result.
The Formula dialog box appears as shown.
Select Insert Equation or press Alt. Lets talk about the formula. See How to reference a cell of a Word table for more details. In cell D2 write down the formula RIGHT B2SUM LEN B2 - LEN SUBSTITUTE B2 0123456789 and press Enter.