## Create Calculations in Word Tables Using Formulas

by Avantix Learning Team | Updated October 9, 2021

Applies to: Microsoft^{®} Word^{®} 2013, 2016, 2019 or 365 (Windows)

You can insert formulas in Word tables to perform calculations. These formulas can include functions such as SUM or AVERAGE or basic operators. When you insert formulas in Word tables, you are really inserting fields so the fields will need to be updated if the data in the table changes. For more complex calculations, it's usually best to create formulas in Excel where they will update automatically.

Formulas and functions in Word tables only work with numbers. You can't perform text calculations or output text.

**Recommended article: **3 Simple Ways to Copy or Import Excel Data into Word (Linked or Unlinked)

Note: Buttons and Ribbon tabs may display in a different way (with or without text) depending on your version of Word, the size of your screen and your Control Panel settings. For Word 365 users, Ribbon tabs may appear with different names. For example, the Table Tools Design tab may appear as Table Design.

To insert a formula in a cell in a Word table, you'll need to use the Function command on the Table Tools Layout or Table Layout tab in the Ribbon:

*Do you want to learn more about Microsoft Word?* Check out our virtual classroom or live classroom Word courses >

### Understanding formula syntax

When you insert a table in Word, each column and row are identified like cells in Excel worksheets and each cell is assigned a cell reference. In a Word table, the first column would be column A and the first row would be row 1 so the first cell would be identified as A1. Therefore, you can create calculations that refer to cells (such as =A1+A2).

In Word and Excel, you can use the same basic operators:

- addition (+)
- subtraction (-)
- multiplication (*)
- division (/)

Typically, formulas in Word tables are created using common functions such as SUM, AVERAGE, MIN, MAX or COUNT and refer to a range. They must start with an equal sign (=).

You can refer to ranges of cells using ABOVE, LEFT, RIGHT or BELOW as the arguments for functions. If you're trying to sum the cells at the bottom of a column, the formula would be =SUM(ABOVE). You can also combine these arguments. For example, you could enter a formula =SUM(ABOVE,LEFT) and it would sum all cells that are above and to the left of that cell. Functions can also refer to cell references such as =SUM(C1:C10). You can also refer to individual cells such =SUM(B1,C1,D5).

Word tables can also perform more complex calculations using the IF function with the syntax =IF(test,true,false). For example, =IF(A5>=1000,0,50) could be used to calculate a shipping cost of 50 if orders are less than 1000. You can also use the AND and OR functions with the IF function.

### Inserting a formula in a table

To insert a formula in a table:

- Click in the cell where you want to enter a formula.
- Click the Table Tools Layout or Table Layout tab in the Ribbon.
- Select Function (fx) in the Data group. A dialog box appears. Word will typically insert a function and arguments in the Formula box.
- If you want to accept the suggested formula, click OK. If you want to change the formula, click in the Formula box and enter a formula (starting with =). You can also choose other functions from the Paste Function drop-down menu.
- If necessary, select a format from the Format drop-down menu.
- Click OK. Word inserts the formula as a field and displays the results.

The Function dialog box appears as follows with a formula and a format selected:

### Updating a formula

If the original data changes, you can right-click the Formula field and select Update from the drop-down menu or press F9. If you want to update all formulas in a table, select all of the cells in the table and press F9. To select the entire table, click the four arrows on the top left of the table.

### Changing a formula

To change a formula in a table:

- Right-click the formula or error. A drop-down menu appears.
- Select Edit field.
- Make the desired changes.
- Click OK.

### Updating all fields

To update all fields in all tables:

- Press Ctrl + A to select all.
- Press F9.

Formula fields are just one type of field you can use in Word. There are many other fields that can insert variable information in Word documents.

#### Subscribe to get more articles like this one

Did you find this article helpful? If you would like to receive new articles, join our email list.

#### More resources

4 Ways to Create a Table in Word

How to Insert Fields in Word (Built-in or Custom)

5 Ways to Insert the Division Symbol in Word (Type or Insert ÷)

How to Insert Reusable Text Snippets in Word with Quick Parts

10 Microsoft Word Tips, Tricks and Shortcuts for Selecting in Tables

#### Related courses

Microsoft Word: Intermediate / Advanced

Microsoft Excel: Intermediate / Advanced

Microsoft PowerPoint: Intermediate / Advanced

Microsoft Word: Long Documents Master Class

Microsoft Word: Styles, Templates and Tables of Contents

Microsoft Word: Designing Dynamic Word Documents Using Fields

Our instructor-led courses are delivered in virtual classroom format or at our downtown Toronto location at 18 King Street East, Suite 1400, Toronto, Ontario, Canada (some in-person classroom courses may also be delivered at an alternate downtown Toronto location). Contact us at info@avantixlearning.ca if you'd like to arrange custom instructor-led virtual classroom or onsite training on a date that's convenient for you.

Copyright 2023 Avantix** ^{®}** Learning

#### You may also like

## How to Generate Random Text in Word

If you are creating a Microsoft Word document, template or mockup and you want to create placeholder text, you can generate random text using the built-in RAND function or LOREM function (which generates Latin or Lorem ipsum text).

## How to Center Text Vertically in a Word Table (and Fix Common Issues)

You can center or align text vertically in cells in a Word table using commands in the Table Design or Table Tools Design tab in the Ribbon. If the text doesn't seem to align correctly, there are several common issues that may be affecting the alignment including extra blank paragraphs, paragraph spacing and cell margins.

## How to Insert a Watermark in Word (like DRAFT)

You can insert a watermark in the background of one or more pages in a Microsoft Word document. Common watermarks are text such as DRAFT or CONFIDENTIAL but you can also add a picture watermark.

*Microsoft, the Microsoft logo, Microsoft Office and related Microsoft applications and logos are registered trademarks of Microsoft Corporation in Canada, US and other countries. All other trademarks are the property of the registered owners.*

Avantix Learning |18 King Street East, Suite 1400, Toronto, Ontario, Canada M5C 1C4 | Contact us at info@avantixlearning.ca