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. 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
-
Select the table cell where you want your result. If the cell is not empty, delete its contents.
-
On the Table Tools, Layout tab, in the Data group, click Formula.
-
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
-
Select the formulas that you want to update. You can select multiple formulas by holding down the CTRL key while you make selections.
-
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.
-
Press CTRL+A.
-
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.
-
Select the table cell where you want your result. If the cell is not empty, delete its contents.
-
On the Table Tools, Layout tab, in the Data group, click Formula.
-
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) |
-
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
In some Word documents you need to use formulas, such as summing, subtracting, multiplying, or
dividing certain values:
In this example was used a simple formula to calculate a discount rate:
See
How to turn on or turn off highlighting off fields in a Word document
and
Show blue hyperlink instead of { HYPERLINK link }.
To create a formula like the one above, it is necessary to make two steps:
1. Create a bookmark (variable) for every parameter.
2. Create a formula.
To perform these steps, do the following:
1. Create a field with the volume of a parameter:
1.1. Position the cursor in the document.
It doesn’t important, where: where this variable should be shown in the first time or anywhere in
the text (see both examples below).
1.2. On the Insert tab, in the Text group,
select the Quick Parts drop-down list and the click on Field…:
1.3. In the Field dialog box:
1.3.1. In the Field names list, select the
command Set and click the Field Codes button:
1.3.2. In the Field codes textbox, after
proposed SET type the name of this bookmark (variable) and the value.
For example:
1.3.3. Click OK to insert the current field in
you document:
Note: Instead of making steps 1.1-1.3, you can press Ctrl+F9 to insert a
field in your document and type:
SET <name> <value>
To create the bookmark (variable) as you type, just update a field: right-click on the field and
choose Update field in the popup menu:
2. Repeat the step 1 for every bookmark (variable)
that you want to define.
In this example, the discount with volume 5.
3. To insert the bookmark (variable) in the text, do
the following:
3.1. Position the cursor where you want to insert the
value of some bookmark (variable).
3.2. On the Insert tab, in the Text group,
select the Quick Parts drop-down list and the click on Field….
3.3. In the Field dialog box, click the
Formula… button:
3.4. In the Formula dialog box, in the
Paste bookmarks drop-down list, if you made all correctly on the previous steps, you will
see all variables that you have created:
Choose one and click OK. For example, price:
Note: Instead of making steps 3.1 – 3.4, if you can press Ctrl+F9 to insert
a field in you document and type:
= <bookmark name>
4. To insert a formula, do the following:
4.1. Position the cursor where you want to insert
the formula.
4.2. On the Insert tab, in the Text group,
select the Quick Parts drop-down list and the click on Field….
4.3. In the Field dialog box, click the
Formula… button.
4.4. In the Formula dialog box type the
formula:
The first variant where each of the variables defined before their values in the text:
The second variant where the variables defined before the text:
See
Functions and formulas in a Word document
for more details.
Note: The field { SET *** } doesn’t shown in the document by default. So,
this field can be easily removed by mistake with any other text or paragraph. To avoid missing
this field, we recommend use a field { Quote *** } to keep the definition and the first
using of the parameter:
See also this tip in French:
Comment calculer des formules dans un document Word.
When editing some documents involving mathematical formulas and symbols in Word, it can be a challenge to input them because you may not be able to find the corresponding buttons on keyboard. So what’s the best way to insert these relatively difficult formulas? Here are 3 commonly used methods you can try.
Method 1. Insert Equations Symbols
1. Go to Insert tab and choose Equation in Symbols section.
2. There are some pre-set formulas for you to choose and edit.
3. You can also select Insert New Equation, of course.
4. It will insert a textbox in the document and enable the Equation Tools in Design tab, in where you can insert different kinds of mathematical symbols directly.
5. Just hit the symbols you want to insert and input the specific numbers in the corresponding positions of the textbox. In this way you can input any mathematical formula you want.
Method 2. Ink Equation
If you don’t want to find these symbols separately and rather input the formula by handwriting, you can try the Ink Equation feature in Word 2016 and above versions.
1. Just switch to Insert tab and click Equation – Insert New Equation to toggle on Equation Tools. Then find Ink Equation button at the left side of the Equation Tools (Design) tab to invoke the handwriting window.
2. You can click Write button and use your mouse or writing pad to write the formula here. The identified formula will show at the top.
3. If there’s anything wrong, you can click the Select and Correct button and then hit the wrong part to choose the right symbol in the expanded menu.
4. You can also click Erase button to wipe part of the formula, or click Clear button to delete all the inks in the writing box.
5. After finishing the handwriting, just hit Insert to add the formula to your document.
Method 3. Microsoft Equation
1. Go to Insert tab, click Object button in Text section. Choose Microsoft Equation 3.0 in the list of Object type in Create New tab and click OK to confirm it.
2. Then the Equation toolbar will pop out along with a textbox. You can insert any mathematical symbol you want by clicking them in the toolbar. In this way you can also insert a difficult mathematical symbol quickly.
Copyright Statement: Regarding all of the posts by this website, any copy or use shall get the written permission or authorization from Myofficetricks.
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
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
There are a lot of times when I need to include some simple data calculations in a Word document and a table is the best option. You can always try to insert an entire Excel spreadsheet into your Word doc, but that’s overkill sometimes.
In this article, I’m going to talk about how you can use formulas inside tables in Word. There are only a handful of formulas you can use, but it’s enough to get totals, counts, round numbers, etc. Also, if you are already familiar with Excel, then using the formulas in Word will be a piece of cake.
Insert Formulas into Word Tables
Let’s start out by creating a simple test table. Click on the Insert tab and then click on Table. Choose how many rows and columns you want from the grid.
Once your table has been inserted, go ahead and add in some data. I’ve just made a really simple table with a couple of numbers for my example.
Now let’s go ahead and insert a formula. In the first example, I’m going to add the first three values in the first row together (10 + 10 + 10). To do this, click inside the last cell in the fourth column, click on Layout in the ribbon and then click on Formula at the far right.
This will bring up the Formula dialog with a default of =SUM(LEFT).
If you were to simply click OK, you will see the value we are looking for in the cell (30).
Let’s talk about the formula. Just like Excel, a formula starts with an equals sign, followed by a function name and arguments in parenthesis. In Excel, you only specify cell references or named ranges like A1, A1:A3, etc., but in Word, you have these positional terms you can use.
In the example, LEFT means all cells that are to the left of the cell in which the formula is entered. You can also use RIGHT, ABOVE and BELOW. You can use these positional arguments with SUM, PRODUCT, MIN, MAX, COUNT and AVERAGE.
In addition, you can use these arguments in combination. For example, I could type in =SUM(LEFT, RIGHT) and it would add all the cells that are to the left and right of that cell. =SUM(ABOVE, RIGHT) would add all numbers that are above the cell and to the right. You get the picture.
Now let’s talk about some of the other functions and how we can specify cells in a different manner. If I wanted to find the maximum number in the first column, I could add another row and then use the =MAX(ABOVE) function to get 30. However, there is another way you can do this. I could also simply go into any cell and type in =MAX(A1:A3), which references the first three rows in the first column.
This is really convenient because you can put the formulas anywhere you want in the table. You can also reference individual cells like writing =SUM(A1, A2, A3), which will give you the same result. If you write =SUM(A1:B3), it will add A1, A2, A3, B1, B2, and B3. Using these combinations, you can pretty much reference any data you like.
If you want to see a list of all the functions you can use in your Word formula, just click on the Paste Function box.
You can use IF statements, AND and OR operators and more. Let’s see an example of a more complex formula.
In the example above, I have =IF(SUM(A1:A3) > 50, 50, 0), which means that if the sum from A1 to A3 is greater than 50, show 50, otherwise show 0. It’s worth noting that all of these functions really only work with numbers. You can’t do anything with text or strings and you can’t output any text or string either. Everything has to be a number.
Here’s another example using the AND function. In this example, I am saying that if both the sum and max value of A1 to A3 is greater than 50, then true otherwise false. True is represented by a 1 and False by 0.
If you type in a formula and it’s got an error in it, you’ll see a syntax error message.
To fix the formula, just right click on the error and choose Edit Field.
This will bring up the Field dialog. Here you just have to click on the Formula button.
This will bring up the same Formula editing dialog that we’ve been working with since the beginning. That’s about all there is to inserting formulas into Word. You can also check out the online documentation from Microsoft that explains each function in detail.
Overall, it’s nothing even close to the power of Excel, but it’s enough for some basic spreadsheet calculations right inside Word. If you have any questions, feel free to comment. Enjoy!
Download Article
A descriptive guide to inserting equations in Word
Download Article
Modern versions of Word include almost all the symbols and structures a math professor could need. These can either be quickly typed with shortcuts or found in the convenient Equation menu, depending on your preference. The process is a little different if you’re on a Mac, or using Word 2003 or older. Note that the old «Insert Object» method from Word 2003 is not included in modern versions. You can also write equations in Word using the mobile app. This wikiHow shows you how to insert equations in MS Word in all cases.
-
1
Press Alt and =. This will insert an equation at the position of your cursor and open the editor.
-
2
Insert symbols by typing “symbolname” and press the space bar. If you know the name of a symbol, simply type «» followed by the symbol name. For example, for the Greek letter theta, type theta and press the space bar to convert it. You can also look at https://www.rapidtables.com/math/symbols/Basic_Math_Symbols.html to preview symbol names.
Advertisement
-
3
Insert fractions using /. For example, typing «a/b» (and then pressing the space bar) puts a on top of b as a fraction.
-
4
Group expressions using parentheses (). Brackets, or parentheses, (), are used to group parts of the equation in the editor. For example, «(a+b)/c» will put the expression a+b on the top of the fraction but will not display the brackets.
-
5
Use _ and ^ to insert subscripts and superscripts. For example, «a_b» makes b the subscript of a, and likewise, «a^b» makes b the exponent of a. Subscripts and superscripts can be used simultaneously and are also how the equation editor adds limits to integrals, for example, typing «int_a^b» and pressing the space bar gives the integral from a to b.
-
6
Insert functions by pressing the space bar after the function name. Trigonometric functions such as sin and arctan are recognized, as well as other functions such as log and exp; however, you must press the space bar after typing the function name in order for the editor to recognize it as a function.
-
7
Make font changes. Font changes can be made as you are going along. To toggle bold and italic text use the normal shortcuts: Ctrl+B or Ctrl+I. To type text within an equation that looks ‘normal’, enclose it in quotation marks. To make a character into a script character use «script». For example, «scriptF» would change the F into a script character.
-
8
Look up other shortcuts. Typing equations is much faster than selecting symbols and structures from the menu but does require learning the shortcuts. Using the steps above, you can probably guess most of the shortcuts you will need.[1]
[2]
[3]
Advertisement
-
1
Open your Word document. Since the app works the same on every platform, this method will work for any mobile device.
- If you don’t have Microsoft Word, you can download it for free from the Google Play Store (Android) or App store (iOS).
-
2
Tap Home. When you tap Home, a list of options appears.[4]
- To see this option on a phone, you will need to tap the pencil icon above the text area to edit the document. Tap the up arrow on the right side of the menu that appears above your keyboard. If you’re using a tablet, the ribbon with Home, Insert, Draw, and Layout appears above the text area.
-
3
Tap Insert.
-
4
Tap Equation or Insert New Equation. You might have to scroll down the list to see this on phones.
-
5
Type your equation. For example, if you want to achieve a²+b²=c², type “a2+b2=c2.” If you can’t find the symbol you need on your keyboard, you can always copy and paste it into the document from other sources.
-
6
Double-tap your typed equation. A box will pop up above your equation.
-
7
Tap Math Options.
-
8
Tap Professional. Your symbols and numbers will change into an equation format.
Advertisement
-
1
Select the Insert tab on the ribbon. The ribbon is the horizontal menu between your document title and the document itself.
-
2
Find the Equation icon (π). You’ll see this on the far right, in the Symbols group.
-
3
Click the icon to insert an equation. A box will appear at the position of your text cursor. You can start typing immediately to start your equation or continue to the next step for more options.
-
4
Insert special formatting. When you clicked the Equations icon, the ribbon menu changed to display a large array of new options. Browse through them to find what you need, then type to complete the equation. Here’s a step by step example:[5]
- Click the Script icon to open a drop-down menu. Hover over each button and a tooltip will appear telling you what it is.
- Select the basic subscript option, and two squares will appear in your equation, one below the other: □□
- Click the first square and type in the value you’d like to display: 5□
- Click the second square and type in the subscript value: 53
-
5
Continue typing to complete the equation. If you do not need any special formatting, just continue typing to extend the equation. Word will automatically insert spaces and italicize variables.
-
6
Move the equation on the page. Select the entire equation text box, and you’ll see a tab with an arrow on the right-hand side. Click this arrow to reveal a list of visual options, including whether to center, left-justify, or right-justify the equation.
- You can also highlight the text in the equation and alter the font size and style as usual.
-
7
Write equations by hand (2016 only). If you have Word 2016, you can create an «equation» by drawing it with a mouse or touchscreen tool. Select Ink Equation from the drop-down Equations menu to get started.[6]
Advertisement
-
1
Select the Document Elements tab. This tab is on the ribbon menu, just below the highest row of icons.
-
2
Select the Equations icon on the far right. With Document Elements selected, Equation is the option farthest to the right, with a π icon. There are three options here:
- Click the arrow next to the Equations icon for a drop-down selection of common equations.
- Click the arrow, then click «Insert New Equation» to type your own.
- Click the icon itself to open up a larger menu of equation options on the ribbon.
-
3
Use the top menu instead. If you prefer to use the top menu, select «Insert,» then scroll all the way down to «Equation» in the drop-down menu.
- Your text cursor must be at a blank point in the document to access this command. (For example, if you have an existing object selected, this command is greyed out.)
-
4
Choose display options. Click the downward-facing arrow to the right of the equation box. A drop-down menu will appear with options to alter how your equation is displayed.
- This menu also includes the «save as new equation» command, useful for equations you plan to use frequently. This adds the selected equation to the drop-down menu when you click the arrow next to the Equations icon.
Advertisement
-
1
Know the limitations. Equations written in Word 2003 or earlier cannot be edited in later versions of Word. If you are collaborating with other Word users, it’s best to upgrade to a more recent version.[7]
-
2
Attempt to insert an equation. From the top menu, select Insert → Object → Create New. If you see «Microsoft Equation 3.0» or «Math Type» in the Objects list, select it to insert an equation. Otherwise, go to the next step.
- Once you’ve inserted an equation, a small window will open with various symbols. Click these buttons and select the symbol you need to add it to the equation.
- Word 2003 does not have the same formatting options as later versions. Some equations may look less professional than you’re used to.
-
3
Install the add-on if necessary. If your copy of Word 2003 does not have one of the add-ons you mentioned above, you’ll need to install one. It’s not easy to locate these anymore, but fortunately the install package may already be waiting on your computer:
- Close all Microsoft Office programs.
- Navigate to Start → Control Panel → Add or Remove Programs.
- Select Microsoft Office → Change → Add or Remove Features → Next.
- Click the + symbol next to Office Tools.
- Select Equation Editor and click Run, then Update.
- Follow the onscreen instructions. If you’re unlucky, you may need the Word 2003 install CD.
Advertisement
Add New Question
-
Question
How could I type the elements of a 6 x 2 matrix?
Insert Tab > Equation > Design Tab > Matrix. First select a 3 x 2 matrix, then in each element select a 2 x 1 matrix.
-
Question
How do I insert a square root?
Go to «Insert.» Click on «Equation.» On the top ribbon there is a list of various math symbols including various forms of the square roots. It has the word «Structures» as a grouping.
-
Question
How do I escape from the equation when I want to keep typing on the same line in MS Word?
Press the Tab key and start typing on the same line.
Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
Advertisement
Video
-
To create the second line of an equation, press Shift + Enter.[8]
Enter will exit the equation or start a new equation paragraph, depending on your version of Word. -
If you are using Word 2007 or later and trying to edit a document created in Word 2003 or earlier, use the File → Convert command to unlock equations and other editing features.[9]
-
The Office 365 subscription service typically includes the latest version of Word. Follow the instructions for the most recent version that works on your operating system.
Thanks for submitting a tip for review!
Advertisement
-
If you save the document as a .docx file, people with Word 2003 and earlier will not be able to edit the equations.[10]
Advertisement
About This Article
Article SummaryX
1. Press Alt and = to insert an equation.
2. Add letters and numbers.
3. Insert symbols in the ″symbolname″ format.
4. Press the spacebar to convert a symbol.
5. Insert fractions with ″/″ key.
6. Group expressions between parentheses.
7. Use ″_″ for subscript and ″^″ for superscript.
8. Type a function and press the spacebar to insert.
Did this summary help you?
Thanks to all authors for creating a page that has been read 851,172 times.
Is this article up to date?
Excel formulas let you automate your spreadsheets. But how do you use it in a Word document? Here are two ways to do it!
While you can always integrate Excel data into a Word document, it’s often unnecessary when all you need is a small table. It’s quite simple to create a table and use Excel formulas in a Word document. However, there is only a limited number of formulas that can be used.
For instance, if you’re trying to insert sales data in a table, you could add a column for sales, another one for total cost, and a third one for calculating profit using a formula. You can also calculate an average or a maximum for each of these columns.
Method 1: Paste Spreadsheet Data Into Word
If you already have data populated into a spreadsheet, you could just copy it into your Microsoft Word document.
- Copy the cells containing the data and open a Word document.
- From the top ribbon, click on the arrow under the Paste button, and click on Paste Special.
- You’ll see a new window pop-up where you’ll need to select what you want to paste the copied content as. Select Microsoft Excel Worksheet Object and select OK.
- Your data should now appear in the Word document, and the cells should contain the formulas as well.
If you want to make any edits, you can double-click on the pasted content, and your Word document will transform into an Excel document, and you’ll be able to do everything you would on a normal spreadsheet.
Method 2: Add Formulas in a Table Cell in Word
- Quickly insert a table in your Word document and populate the table with data.
- Navigate to the cell where you want to make your computations using a formula. Once you’ve selected the cell, switch to the Layout tab from the ribbon at the top and select Formula from the Data group.
Notice that there are two tabs called Layout. You need to select the one that appears under Table Tools in the ribbon.
- When you click on Formula, you’ll see a small window pop up.
- The first field in the box is where you enter the formula you want to use. In addition to formulas, you can also perform basic arithmetic operations here. For instance, say you want to compute the profit, you could just use the formula:
=B2-C2
Here, B2 represents the second cell in the second column, and C2 represents the second cell in the third column.
- The second field allows you to set the Number Format. For instance, if you wanted to calculate profit down to two decimal places, you could select a number format accordingly.
- The Paste Function field lists the formulas you can use in Word. If you can’t remember the name of a function, you could select one from the dropdown list, and it will automatically be added to the Formula field.
- When you’ve entered the function, click OK, and you’ll see the computed figure in the cell.
Positional Arguments
Positional arguments (ABOVE, BELOW, LEFT, RIGHT) can often make things simpler, especially if your table is relatively large. For instance, if you have 20 or more columns in your table, you could use the formula =SUM(ABOVE) instead of referencing each cell inside the parenthesis.
You can use positional arguments with the following functions:
- SUM
- AVERAGE
- MIN
- MAX
- COUNT
- PRODUCT
For instance, we could calculate the average sales for the above example using the formula:
=AVERAGE(ABOVE)
If your cell is at the center of the column, you can use a combination of positional arguments. For instance, you could sum up the values above and below a specific cell using the following formula:
=SUM(ABOVE,BELOW)
If you want to sum up the values from both the row and the column in a corner cell, you could use the following formula:
=SUM(LEFT,ABOVE)
Even though Microsoft Word offers only a few functions, they are quite robust in functionality and will easily help you create most tables without running into lack-of-functionality issues.
Updating Data and Results
Unlike Excel, Microsoft Word doesn’t update formula results in real-time. However, it does update the results once you close and re-open the document. If you want to keep things simple, just update the data, close, and re-open the document.
However, if you’d like to update the formula results as you continue to work on the document, you’ll need to select the results (not just the cell), right-click on them, and select Update Field.
When you click Update Field, the formula’s result should update instantly.
Cell References
There are several ways to reference a cell in a Word document.
1. Bookmark Names
Let’s say you give your average sales value a bookmark name average_sales. If you don’t know how to give a cell a bookmark name, select the cell and navigate to Insert > Bookmark from the ribbon at the top.
Assume that the average sales value is a decimal value, and you’d like to convert it to an integer. You could reference the average sales value as ROUND(average_sales,0), and this will round the value down to its nearest integer.
2. RnCn References
The RnCn referencing convention allows you to reference a row, column, or a specific cell in a table. The Rn refers to the nth row, while the Cn refers to the nth column. If you wanted to refer to the fifth column and second row, for instance, you’d use R2C5.
You can even select a range of cells using the RnCn reference, much like you would in Excel. For instance, selecting R1C1:R1C6 selects the first six cells of the first row. For selecting the entire row in which you’re using the formula, just use R (or C for a column).
3. A1 References
This is the convention that Excel uses, and we’re all familiar with. The letter represents the columns, while the numbers represent the rows. For instance, A3 refers to the third cell in the first column.
Word Tables Made Easy
Hopefully, the next time you’ll need to use data on a Microsoft Word document, you’ll be able to do things much faster without having to first create a spreadsheet and then import it into your Word document.
In this chapter, we will discuss how to add formula to a table in Word. Microsoft Word allows you to use mathematical formula in table cells which can be used to add numbers, to find the average of numbers, or find the largest or the smallest number in table cells you specify.
There is a list of formulae that you can choose from based on the requirements. This chapter will teach you how to use formulas in word tables.
Table of contents
- Formula
- How To Add Formula To A Table In Word
- List of Cell Formulae You can Use
- Word Table Formula Cell Reference
- Summary
Start your formula with an equal sign, and then type your function, such as AVERAGE, COUNT, or PRODUCT. In the parentheses, add the position of the cells you want to use for the formula. Use the positions ABOVE, BELOW, LEFT, and RIGHT.
Depending on where the cells are in relation to the formula, you can also combine positions. For example, you can use LEFT, RIGHT for cells to the left and right, or LEFT, ABOVE for cells to the left and above the cell.
How To Add Formula To A Table In Word
Here are some easy steps for adding a formula to a table cell in a Word document.
- Step 1: First, click the tab that says Layout. Click “Formula” in the Data section on the right side of the ribbon.
- Step 2: This will bring up a Formula Dialog Box with a default formula, which in our case is =SUM(LEFT).
Using the Number Format List Box, you can choose how to show the result. Using the Formula List Box, you can change the formula.
- Step 3: Click OK to use the formula.
- You’ll see that the above cells have been added together and the total has been put in the total cell, where we wanted it.
You can do the same thing again to get the sum of the other two rows.
List of Cell Formulae You can Use
The table shows the Formula dialog box that provides the following important functions to be used as formulas in a cell.
Formula | & Description |
---|---|
AVERAGE( ) | The average of a list of cells |
COUNT( ) | The number of items in a list of cells |
MAX( ) | The largest value in a list of cells |
MIN( ) | The smallest value in a list of cells |
PRODUCT( ) | The multiplication of a list of cells |
SUM( ) | The sum of a list of cells |
Word Table Formula Cell Reference
The following are useful points to help you in constructing a word cell formula.
Cell References | Description |
---|---|
A single cell reference, | B3 or F7 |
A range of cells, | A4:A9 or C5:C13 |
A series of individual cells, | A3, B4, C5 |
ABOVE | refers to all cells in the column above the current cell. |
BELOW | refers to all cells in the column below the current cell. |
LEFT | refers to all cells in the row to the left of the current cell |
RIGHT | refers to all cells in the row to the right of the current cell |
Summary
In the end, we’ve learned how to add a formula to a table in Word and what those terms mean. We also know that different formulas can be used, which we can use in our document to make it look more professional and presentable.
Meanwhile, if you want to learn more about working on tables, see the previous tutorial on how to resize tables and how to merge and split tables in Microsoft Word. You can browse those guides if you are having a hard time working with your tables in a document.
We hope this tutorial helps you as you format your documents in MS Word.
PREVIOUS
NEXT
Did you know Word can contain formulas? Yes. It can.
For simple calculations you don’t need to use Excel.
Estimated learning time 5 min
The Need
Word is not Excel.
Word tables can contain data. Therefore, Word does provide a limited set of formulas.
This eliminates the need to create an Excel file for performing simple calculations.
Let us see how we can use these to our advantage.
Tables and Formulas
Add a table containing some numbers. Keep the last column and last row empty. We will use these to add formulas.
Here is the base table.
Now go to the first row, last column and choose Table Tools – Layout – Formula
Word understands that you are in the rightmost cell of the table and suggests a formula
=SUM (LEFT)
For now, click Ok. The calculation is shown immediately.
Now let us do the same thing for the last row of the first column.
This time the formula is SUM (ABOVE)
Now, click inside the result and see that the background becomes gray in color.
This means that it is a field – a calculation.
If you click inside and it does not become gray, you have to change one option in Word – File – Options – Advanced (scroll down) as shown below. The Field Shading option should be When Selected. It means that show the gray shading when you click inside a field. Otherwise, it will look like regular text. This avoids distracting gray fields being shown all over the document. But also gives you a visual indication that it is a field, in case you are looking at it directly by clicking inside it.
Formulas are NOT calculated dynamically
Now change the numbers in the first column. None of the formulas are updated.
Select the table, right click and choose Update Fields to refresh the formula results.
If you have lots of formulas, select the entire document (CTRL A) and then right click and choose Update Field.
The numbers must be contiguous
If there is any text in between, the calculation fails. It needs contiguous numbers.
More functions
Open the Formula dialog dropdown to see more functions.
The following functions are available:
and, average, count, defined, false, if, int, max, min, not, or, mod, product, sign, sum, round, true
You can change number formats as well.
Bookmarks
These are like external variables. For example, there is a 5 % tax.
I have written 5 elsewhere (outside the table) and I want to use the tax rate in multiple places and tables.
No problem. Select that number and choose Insert – Bookmark – give it a name Tax.
Now the formula can use the bookmark.
Here is the result.
Excel like formulas also work
Think of each cell of the Word table as though it was an Excel sheet starting with A1.
Now type a formula exactly as you would in Excel.
Here is the result.
Automatic reference change does not work. If you copy that formula to all the rows, it will still show the same result. So think of it as a fixed formula $A$1 / $C$1
Add formulas anywhere
If you use bookmarks as shown above, you can use formulas anywhere – not just within tables.
For example, if I have two bookmarks Length and Breadth as shown here…
You can type a formula using these bookmarks.
To create a formula anywhere press CTRL F9
Curly braces will open with gray background. Type the formulas as shown here.
When you finish, press F9 to finalize the formula and calculate the result.
Change the input values and right click in the field – Update Field – to show new results.
When are Word formulas useful?
Simple totals, easy calculations where the row and column positions are unlikely to change. If you use Above, Left type of syntax, and if the rows or columns increase, you have to refresh the formulas manually.
Remember that table borders can be removed – still the formulas will work.
For complex calculations it is always better to use Excel.
Behind the Scenes: Word Fields
Actually, Word contains many things which are dynamically calculated – like formulas in Excel. These things are called Fields.
Many of you may not have used fields directly. But indirectly we use them all the time. The most commonly used dynamic formula in Word is the Page Number!
There are hundreds of them and they are very powerful.
How do you know there is a field? If you click inside the field and it becomes gray in color, that means it is a field.
Word provides fascinating collection of extremely powerful dynamic fields. We will cover fields in detail in separate articles.
***
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.
How do I create a formula in a Word table?
Adding Formulas To Word Documents.mp4 – YouTube
How do you insert math formulas in Word?
In Word, you can insert mathematical symbols into equations or text by using the equation tools. On the Insert tab, in the Symbols group, click the arrow under Equation, and then click Insert New Equation.
How do I use the Equation Editor in Word?
2. To bring up the Equation Editor, On the Insert tab, in the Symbols group, click the arrow next to Equation, and then click Insert New Equation. This will bring up the equation editor toolbar and will place an edit box at the insertion point in the document. Note that the menu at the top of the screen has changed.
Are formulas equations?
Formulae contain equals signs, as do equations, so it can sometimes be difficult to tell the difference between an equation and a formula. A formula is a calculation for a specific purpose, for example converting Fahrenheit to Celsius or vice versa. A formula is also always true, no matter what values are put in.
How do you write a math formula?
How to create a formula from a maths word problem