Can a table in word calculate

You can perform calculations and logical comparisons in a table by using formulas. The Formula command is found on the Table Tools, Layout tab, in the Data group.

The Data group of the Table Tools Layout tab on the Word 2010 ribbon

A formula in Word automatically updates when you open the document that contains the formula. You can also update a formula result manually. For more information, see the section Update formula results.

Note:  Formulas in Word or Outlook tables are a type of field code. For more information about field codes, see the See Also section.

In this article

  • Insert a formula in a table cell

  • Update formula results

    • Update the result of specific formulas

    • Update all the formula results in a table

    • Update all the formulas in a document

  • Examples: Sum numbers in a table by using positional arguments

  • Available functions

  • Use bookmarknames or cell references in a formula

    • RnCn references

    • A1 references

Insert a formula in a table cell

  1. Select the table cell where you want your result. If the cell is not empty, delete its contents.

  2. On the Table Tools, Layout tab, in the Data group, click Formula.

  3. Use the Formula dialog box to create your formula. You can type in the Formula box, select a number format from the Number Format list, and paste in functions and bookmarks using the Paste Function and Paste Bookmark lists.

Update formula results

In Word, the result of a formula is calculated when it is inserted, and when the document containing the formula opens. In Outlook, the result of a formula is only calculated when it is inserted and won’t be available for the recipient of the email to edit.

You can also manually update:

  • The result of one or more specific formulas

  • The results of all formulas in a specific table

  • All the field codes in a document, including formulas

Update the result of specific formulas

  1. Select the formulas that you want to update. You can select multiple formulas by holding down the CTRL key while you make selections.

  2. Do one of the following:

    • Right-click the formula, then click Update field.

    • Press F9.

Update all the formula results in a table

  • Select the table that contains formula results that you want to update, and then press F9.

Update all the formulas in a document

Important:  This procedure updates all the field codes in a document, not just formulas.

  1. Press CTRL+A.

  2. Press F9.

Examples: Sum numbers in a table by using positional arguments

You can use positional arguments (LEFT, RIGHT, ABOVE, BELOW) with these functions:

  • AVERAGE

  • COUNT

  • MAX

  • MIN

  • PRODUCT

  • SUM

As an example, consider the following procedure for adding numbers by using the SUM function and positional arguments.

Important:  To avoid an error while summing in a table by using positional arguments, type a zero (0) in any empty cell that will be included in the calculation.

  1. Select the table cell where you want your result. If the cell is not empty, delete its contents.

  2. On the Table Tools, Layout tab, in the Data group, click Formula.

  3. In the Formula dialog box, do one of the following:

To add the numbers…

Type this in the Formula box

Above the cell

=SUM(ABOVE)

Below the cell

=SUM(BELOW)

Above and below the cell

=SUM(ABOVE,BELOW)

Left of the cell

=SUM(LEFT)

Right of the cell

=SUM(RIGHT)

Left and right of the cell

=SUM(LEFT,RIGHT)

Left of and above the cell

=SUM(LEFT,ABOVE)

Right of and above the cell

=SUM(RIGHT,ABOVE)

Left of and below the cell

=SUM(LEFT,BELOW)

Right of and below the cell

=SUM(RIGHT,BELOW)

  1. Click OK.

Available functions

Note:  Formulas that use positional arguments (e.g., LEFT) do not include values in header rows.

The following functions are available for use in Word and Outlook table formulas:

Function

What it does

Example

Returns

ABS()

Calculates the absolute value of the value inside the parentheses

=ABS(-22)

22

AND()

Evaluates whether the arguments inside the parentheses are all TRUE.

=AND(SUM(LEFT)<10,SUM(ABOVE)>=5)

1, if the sum of the values to the left of the formula (in the same row) is less than 10 and the sum of the values above the formula (in the same column, excluding any header cell) is greater than or equal to 5; 0 otherwise.

AVERAGE()

Calculates the average of items identified inside the parentheses.

=AVERAGE(RIGHT)

The average of all values to the right of the formula cell, in the same row.

COUNT()

Calculates the count of items identified inside the parentheses.

=COUNT(LEFT)

The number of values to the left of the formula cell, in the same row.

DEFINED()

Evaluates whether the argument inside the parentheses is defined. Returns 1 if the argument has been defined and evaluates without error, 0 if the argument has not been defined or returns an error.

=DEFINED(gross_income)

1, if gross_income has been defined and evaluates without error; 0 otherwise.

FALSE

Takes no arguments. Always returns 0.

=FALSE

0

IF()

Evaluates the first argument. Returns the second argument if the first argument is true; returns the third argument if the first argument is false.

Note:  Requires exactly three arguments.

=IF(SUM(LEFT)>=10,10,0)

10, if the sum of values to the left of the formula is at least 10; 0 otherwise.

INT()

Rounds the value inside the parentheses down to the nearest integer.

=INT(5.67)

5

MAX()

Returns the maximum value of the items identified inside the parentheses.

=MAX(ABOVE)

The maximum value found in the cells above the formula (excluding any header rows).

MIN()

Returns the minimum value of the items identified inside the parentheses.

=MIN(ABOVE)

The minimum value found in the cells above the formula (excluding any header rows).

MOD()

Takes two arguments (must be numbers or evaluate to numbers). Returns the remainder after the second argument is divided by the first. If the remainder is 0 (zero), returns 0.0

=MOD(4,2)

0.0

NOT()

Takes one argument. Evaluates whether the argument is true. Returns 0 if the argument is true, 1 if the argument is false. Mostly used inside an IF formula.

=NOT(1=1)

0

OR()

Takes two arguments. If either is true, returns 1. If both are false, returns 0. Mostly used inside an IF formula.

=OR(1=1,1=5)

1

PRODUCT()

Calculates the product of items identified inside the parentheses.

=PRODUCT(LEFT)

The product of multiplying all the values found in the cells to the left of the formula.

ROUND()

Takes two arguments (first argument must be a number or evaluate to a number; second argument must be an integer or evaluate to an integer). Rounds the first argument to the number of digits specified by the second argument. If the second argument is greater than zero (0), first argument is rounded down to the specified number of digits. If second argument is zero (0), first argument is rounded down to the nearest integer. If second argument is negative, first argument is rounded down to the left of the decimal.

=ROUND(123.456, 2)

=ROUND(123.456, 0)

=ROUND(123.456, -2)

123.46

123

100

SIGN()

Takes one argument that must either be a number or evaluate to a number. Evaluates whether the item identified inside the parentheses if greater than, equal to, or less than zero (0). Returns 1 if greater than zero, 0 if zero, -1 if less than zero.

=SIGN(-11)

-1

SUM()

Calculates the sum of items identified inside the parentheses.

=SUM(RIGHT)

The sum of the values of the cells to the right of the formula.

TRUE()

Takes one argument. Evaluates whether the argument is true. Returns 1 if the argument is true, 0 if the argument is false. Mostly used inside an IF formula.

=TRUE(1=0)

0

Use bookmarknames or cell references in a formula

You can refer to a bookmarked cell by using its bookmarkname in a formula. For example, if you have bookmarked a cell that contains or evaluates to a number with the bookmarkname gross_income, the formula =ROUND(gross_income,0) rounds the value of that cell down to the nearest integer.

You can also use column and row references in a formula. There are two reference styles: RnCn and A1.

Note:  The cell that contains the formula is not included in a calculation that uses a reference. If the cell is part of the reference, it is ignored.

RnCn references

You can refer to a table row, column, or cell in a formula by using the RnCn reference convention. In this convention, Rn refers to the nth row, and Cn refers to the nth column. For example, R1C2 refers to the cell that is in first row and the second column. The following table contains examples of this reference style.

To refer to…

…use this reference style

An entire column

Cn

An entire row

Rn

A specific cell

RnCn

The row that contains the formula

R

The column that contains the formula

C

All the cells between two specified cells

RnCn:RnCn

A cell in a bookmarked table

Bookmarkname RnCn

A range of cells in a bookmarked table

Bookmarkname RnCn:RnCn

A1 references

You can refer to a cell, a set of cells, or a range of cells by using the A1 reference convention. In this convention, the letter refers to the cell’s column and the number refers to the cell’s row. The first column in a table is column A; the first row is row 1. The following table contains examples of this reference style.

To refer to…

…use this reference

The cell in the first column and the second row

A2

The first two cells in the first row

A1,B1

All the cells in the first column and the first two cells in the second column

A1:B2

Last updated 2015-8-29

See Also

Field codes in Word and Outlook

You can add, subtract, multiply, and divide numbers in Word table cells. Also, you can calculate averages,
percentages, and minimum as well as maximum values.

To add the formula in the Word table, do the following:

   1.   Click the table cell in which you want to insert a formula. Word adds
Table Tools ribbons: Design and Layout:

Table Tools in Word 2016

   2.   On the Layout tab, in the Data group, click the
Formula button:

Formula in Word 2016

  • If the cell you selected is at the bottom of a column of numbers, Microsoft Word proposes the
    formula = SUM(ABOVE):

    SUM formula in Word 2016

  • If the cell you selected is at the right end of a row of numbers, Word proposes the formula
    = SUM(LEFT).

   3.   In the Formula dialog box:

  • In the Paste function list box, choose a function that you want to add.
  • To reference the contents of a table cell, type the cell references in the formula.
    The first
    column in a table is column A; the second column is column B, and so
    on. The first row is row 1; the second row is row 2, and so on.
    Thus, the cell in the second column and the third row is cell B3.
    For example, to add the numbers in cells B1 and C3, the formula
    would read = SUM(b1,c3).
  • In the Number format list box, choose a format for the numbers.

   4.   Click OK.

See also Price, sum, amount
and other numbers in words.

Note: Word inserts the result of the calculation as a field in the cell you selected. If
you change the values in the referenced cells, you can update the calculation by selecting the field and
then pressing F9:

Field formula in Word 2016

If you must perform complex calculations in a table, you can create that table in Excel and then link or
embed the table in your Word document so that you can update it using Excel.

See also this tip in French:
Calculs dans le tableau.

Please, disable AdBlock and reload the page to continue

Today, 30% of our visitors use Ad-Block to block ads.We understand your pain with ads, but without ads, we won’t be able to provide you with free content soon. If you need our content for work or study, please support our efforts and disable AdBlock for our site. As you will see, we have a lot of helpful information to share.

Last Update: Jan 03, 2023

This is a question our experts keep getting from time to time. Now, we have got the complete detailed explanation and answer for everyone, who is interested!


Asked by: Prof. Leora Lakin

Score: 5/5
(26 votes)

Calculating in Tables in Microsoft Word. Word lets you perform calculations on numerical table data and display the results in the table. For example, you can add a row or column of numbers, or you can add, subtract, multiply, or divide the contents of individual cells.

Can calculations be done in Word?

You can perform calculations and logical comparisons in a table by using formulas. The Formula command is found on the Table Tools, Layout tab, in the Data group. A formula in Word automatically updates when you open the document that contains the formula. You can also update a formula result manually.

Can Word do math tables?

You can insert table formulas in Word tables to perform simple mathematical functions on data. To insert table formulas in Word that add, subtract, multiply, and divide numbers in the table cells, you insert formulas into cells where you want to show the answers to the mathematical operations performed by the formulas.

Can you do AutoSum in Word?

You can use a Word table and let Word do the calculating. … Simply click in a cell to the right or below a contiguous row or column and click the AutoSum button on the Tables And Borders toolbar. (To display this toolbar, choose Toolbars from the View menu,and check Tables And Borders.)

How do I calculate sum in Word?

Click the table cell where you want your result to appear. On the Layout tab (under Table Tools), click Formula. In the Formula box, check the text between the parentheses to make sure Word includes the cells you want to sum, and click OK. =SUM(ABOVE) adds the numbers in the column above the cell you’re in.

36 related questions found

How do you do calculations in Word?

Inserting Formulas

  1. Place your insertion point in the cell where you want to place the formula.
  2. From the Layout tab, in the Data group, click Formula. …
  3. In the Formula text box, type the desired formula.
  4. If necessary, from the Number format pull-down list, select the desired format for the result.
  5. Click OK.

How do I multiply a table in Word?

Click the «Formula» icon and enter «=PRODUCT» in the «Formula» field. You must also tell Word with cells to multiply together. For instance, if you want the two cells above your results cell to be multiplied, write «=PRODUCT(ABOVE)».

What is the formula for subtraction in Word?

To do simple subtraction, use the — (minus sign) arithmetic operator. For example, if you enter the formula =10-5 into a cell, the cell will display 5 as the result.

How do I sum a column in numbers?

On your Android tablet or Android phone

  1. In a worksheet, tap the first empty cell after a range of cells that has numbers, or tap and drag to select the range of cells you want to calculate.
  2. Tap AutoSum.
  3. Tap Sum.
  4. Tap the check mark. You’re done!

How do you calculate work?

Work can be calculated with the equation: Work = Force × Distance. The SI unit for work is the joule (J), or Newton • meter (N • m). One joule equals the amount of work that is done when 1 N of force moves an object over a distance of 1 m.

How do I copy formulas in Word?

Click the screenshot button or enter the shortcut ctrl+alt+M. Click and drag the box around your desired equation to Snip it. Copy MathML to your clipboard. Paste MathML into your Word document.

How do you calculate a sum?

The result of adding two or more numbers. (because 2 + 4 + 3 = 9).

How do you create columns in Word 2010?

To add columns to a document:

  1. Select the text you want to format.
  2. Click the Page Layout tab.
  3. Click the Columns command. A drop-down menu will appear. Adding columns.
  4. Select the number of columns you want to insert. The text will then format into columns.

How do I do superscript in Word?

Use keyboard shortcuts to apply superscript or subscript

  1. Select the text or number that you want.
  2. For superscript, press Ctrl, Shift, and the Plus sign (+) at the same time. For subscript, press Ctrl and the Equal sign (=) at the same time. (Do not press Shift.)

How do you write a percentage formula in Word?

Percentages are calculated by using the equation amount / total = percentage. For example, if a cell contains the formula =10/100, the result of that calculation is 0.1. If you then format 0.1 as a percentage, the number will be correctly displayed as 10%.

How do you find the average of a table in Word?

Other formulas for tables

  1. Click the table cell where you want your result.
  2. On the Layout tab next to the Table Design tab, select Formula.
  3. Check between the parentheses to make sure Word includes the cells you want in the sum. =SUM(ABOVE) adds the numbers in the column above the cell you’re in.

How do I insert a percentage formula in Word?

To do this using the Go To function, use this technique:

  1. Press F5. Word displays the Go To tab of the Find and Replace dialog box.
  2. Make sure that Page is selected as the type of item you want to go to.
  3. In the text box, enter the numeric percentage and a percent sign. …
  4. Click on Go To.

What is the shortcut for Word count in Word?

Checking word count using a keyboard shortcut

You can also display the Word Count dialog box by pressing Ctrl + Shift + G.

What is the formula of percent?

Percentage can be calculated by dividing the value by the total value, and then multiplying the result by 100. The formula used to calculate percentage is: (value/total value)×100%.

What is the ratio formula?

To calculate the ratio of an amount we divide the amount by the total number of parts in the ratio and then multiply this answer by the original ratio. We want to work out $20 shared in the ratio of 1:3. Step 1 is to work out the total number of parts in the ratio. 1 + 3 = 4, so the ratio 1:3 contains 4 parts in total.

What is number of percentage?

= In mathematics, a percentage is a number or ratio that represents a fraction of 100. It is often denoted by the symbol «%» or simply as «percent» or «pct.» For example, 35% is equivalent to the decimal 0.35, or the fraction.

Word

Calculating in Tables in Microsoft Word

Word lets you perform calculations on numerical table data and display the results in the table. For example, you can add a row or column of numbers, or you can add, subtract, multiply, or divide the contents of individual cells. Entering calculations into a table, instead of typing in the results, ensures that any changes you make to the table’s data are automatically reflected in the calculated results whenever you update the table.

We provide MS Word training classes in Los Angeles, and onsite classes countrywide.

Word uses the location, or cell reference, of specific cells in the table to perform calculations on their numerical data. In Word tables, columns are identified as A, B, C, and so on from left to right, and rows are identified as 1, 2, 3, and so on from top to bottom. A cell is identified by the letter and number of the column/row intersection at which it appears, as illustrated in table below. For example, the cell reference of the cell located in the second column and second row of a table is B2.

Calucations in Word

Using AutoSum

When you insert an AutoSum field into a cell, the sum of the numbers in the column above the cell or in the row to its left is automatically calculated. This enables you to add a row or column of numbers quickly. If the column above and the row to the left of the AutoSum cell both contain numerical data, the sum of the numbers in the column is calculated.

If a blank cell appears in the summed column or row, AutoSum calculates only the numbers in the cells after the blank cell, not the entire row or column. You can type zeros in blank cells to have AutoSum calculate the entire row or column. If you change the value of one of the summed numbers, you can update the AutoSum field to display the new results.

Method

To insert an AutoSum field:
  1. Place the insertion point in the desired cell
  2. From the Layout tab, in the Table Tools tab, select the Formula button
  3. Type one of the following:

    =SUM(ABOVE) adds the numbers in the column above the cell you’re in.
    =SUM(LEFT) adds the numbers in the row to the left of the cell you’re in.
    =SUM(BELOW) adds the numbers in the column below the cell you’re in.
    =SUM(RIGHT) adds the numbers in the row to the right of the cell you’re in.

To update AutoSum fields:
  1. Select the table to update all AutoSum fields. or
  2. Select the AutoSum field cell you want to update.
  3. Right Mouse click and Select Update Field Or Press F9

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:

Formulas command on the Ribbon in Word to insert formulas into Word tables.

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:

  1. Click in the cell where you want to enter a formula.
  2. Click the Table Tools Layout or Table Layout tab in the Ribbon.
  3. Select Function (fx) in the Data group. A dialog box appears. Word will typically insert a function and arguments in the Formula box.
  4. 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.
  5. If necessary, select a format from the Format drop-down menu.
  6. 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:

Function dialog box in Word to insert function in a Word table.

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:

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

Updating all fields

To update all fields in all tables:

  1. Press Ctrl + A to select all.
  2. 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

VIEW MORE COURSES >

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

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

Понравилась статья? Поделить с друзьями:
  • Can a sentence be started with the word but
  • Can a sentence be started with the word and
  • Can a sentence be one word long
  • Can a sentence be just one word
  • Can a scanned pdf be converted to word