Whether you're drafting a numerical table to calculate the total number of students in class or combining multiple mathematical functions to arrive at the quarterly profits, Table Formulas in Writer let you solve simple mathematical calculations by inserting formulas into cells.
For instance, say you’ve chronologically jotted down the distance you travelled in the previous week to send it to your company’s Payroll team to collect reimbursements. Instead of manually calculating the total distance travelled, you can add formulas to let Writer calculate it for you.
To add formulas inside the table follow the below steps:
1. Click the cell where you want to add the formula.
2. Click the Formula icon near the inserted table to open the formula window.
3. The Formula Settings will open. Now enter the formula you want to use. Since we want the total of the distances, we would choose the SUM formula. You can also prefix or suffix values to the result for better clarity. Since the distance is calculated in miles, we've entered the value as Miles.
4. Now click OK. The result will be as shown below.
5. If you want the sum of only certain cells, you can get the desired result by specifying the cell numbers. So if you want the sum of only the distance travelled between Monday and Thursday, you'd specify the cell numbers from B2 and B5 as shown below.
So you would get the sum from cells B2 to B5 as shown below.
6. Similarly, you can add other functions according to your need.
7. Writer also lets you format results, from rounding-off to formatting decimal places. So regardless of the data format, you can use table formulas to have custom formats in the results. So if the table cells all have numbers with two decimals, you can round off the result to have 0 decimals as shown below.
To do this, go to Formula Settings, and select 0 from the Number Format drop down. Similarly, you can choose other number formats of your choice as well.
Click here to learn more about using Table Formulas.