Using formula 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.

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

In some Word documents you need to use formulas, such as summing, subtracting, multiplying, or
dividing certain values:

Fields in a document Word 2016

In this example was used a simple formula to calculate a discount rate:

Formula in a document Word 2016

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…:

Field in Word 2016

   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:

Field Code in the Field dialog box Word 2016

   1.3.2.   In the Field codes textbox, after
proposed SET type the name of this bookmark (variable) and the value.

For example:

Example of the Field Code in Word 2016

   1.3.3.   Click OK to insert the current field in
you document:

Example of the Field in Word 2016

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:

Update Field in popup menu Word 2016

   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:

Formula in the Field dialog box Word 2016

   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:

Bookmarks in Formula dialog box Word 2016

Choose one and click OK. For example, price:

Example of the bookmark in Formula dialog box Word 2016

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 first example of the formula in Word 2016

The second variant where the variables defined before the text:

The second example of the formula in Word 2016

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:

The Quote formula in Word 2016

See also this tip in French:
Comment calculer des formules dans un document Word.

Содержание

  • Добавление формулы в Ворде
    • Способ 1: Выбор шаблонных и часто используемых примеров
    • Способ 2: Самостоятельное создание уравнений
    • Способ 3: Рукописный ввод уравнений
    • Сохранение собственных формул в качестве шаблона
    • Вставка формулы в ячейку таблицы
    • Работа с формулами в Microsoft Word 2003
  • Заключение
  • Вопросы и ответы

Как в Ворде вставить формулу

Функциональные возможности текстового редактора Microsoft Word на деле не ограничиваются одной только работой с текстом. Так, это офисное приложение позволяет создавать таблицы, диаграммы и графики, добавлять и изменять изображения и много чего другого. Одной из наиболее интересных, хотя и не самых очевидных функций является вставка формул и уравнений, а также их создание с нуля. О том, как это делается, расскажем в данной статье.

Читайте также:
Вставка изображений в Microsoft Word
Создание диаграмм в программе MS Word

Добавление формулы в Ворде

Как и в случае с большинством объектов, работа с которыми поддерживается Word, добавление и создание формул в текстовом документе осуществляется во вкладке «Вставка». На выбор пользователю предоставляется четыре различных варианта — от использования готовых шаблонов до самостоятельного создания записи и даже ее ручного ввода. Все это, а также некоторые дополнительные возможности и нюансы, подробнее рассмотрим далее, но прежде всего расскажем и покажем, как перейти к интересующему нас разделу программы.

  1. Из главного окна Майкрософт Ворд перейдите во вкладку «Вставка».
  2. Открыть вкладку Вставка в программе Microsoft Word

  3. В группе инструментов «Символы» (крайняя справа) разверните меню пункта «Уравнение», нажав левой кнопкой мышки (ЛКМ) по указывающей вниз стрелке справа от наименования.
  4. развернуть меню пункта Уравнение в программе Microsoft Word

  5. Выберите подходящий вариант вставки формулы, а точнее, уравнения, ведь в программе этот раздел называется именно так.
  6. Варианты вставки формул и уравнений в программе Microsoft Word

    Примечание: В Microsoft Word 2003 встроенные средства для создания уравнений и работы с ними отсутствуют. Если вы до сих пор пользуетесь этой версией программы, ознакомьтесь с последней частью данной статьи.

Способ 1: Выбор шаблонных и часто используемых примеров

В меню создания уравнений Microsoft Word есть несколько готовых шаблонов, для добавления любого из которых в документ достаточно просто нажать по нему ЛКМ. В числе таковых следующие:

Конечно же, большинству пользователей этого будет недостаточно, а потому неудивительно, что столь скромный список можно пополнить как собственными формулами, так и дополнительными уравнениями на сайте Office.com, которые на самом деле доступны прямо в программе. Для их выбора и последующей вставки просто наведите указатель курсора на соответствующий пункт меню добавления новой записи.
Дополнительные уравнения на сайте Office.com в программе Microsoft Word
Далее кратко расскажем о том, каким образом осуществляется работа с изначально отформатированными, шаблонными математическими записями в Ворде.

Примечание: Для всех формул и уравнений, как шаблонных, так и записанных вручную, применяется шрифт Cambria Math, и изменить его невозможно. Все остальные параметры (изменение типа начертания, размера, цвета и т. д.) при этом остаются доступными.

Стандартный шрифт для работы с уравнениями в программе Microsoft Word

Сразу же после добавления шаблонного уравнения (как и любого другого) вы будете перенаправлены на вкладку «Конструктор» (не путайте с той, что изначально присутствует не панели инструментов Microsoft Word и расположена между вкладками «Вставка» и «Макет», ранее она называлась «Дизайн»).
Инструменты во вкладке Конструктор программы Microsoft Word

Примечание: Вкладка «Конструктор», посредством которой осуществляется вся работа с формулами, активна и открыта исключительно в то время, когда выделено поле вставки нового уравнения и/или вы с ним взаимодействуете.

Lumpics.ru

Здесь представлены три основных категории инструментов, а именно:

  • Преобразования;
  • Символы;
  • Структуры.

Группы инструментов для работы с формулами в программе Microsoft Word

Получить доступ к возможностям «Преобразования» можно и через меню с блоком добавленной формулы – просто нажмите ЛКМ на указывающий вниз треугольник. Помимо прочего, отсюда же можно сохранить уравнение в виде шаблона, о чем мы еще расскажем, и определить тип его выравнивания на странице документа.
Параметры преобразования уравнения в программе Microsoft Word
Если в добавленную запись потребуется внести изменения, используйте инструментарий разделов «Символы» и «Структуры».
Редактирование уравнения с помощью встроенных инструментов в программе Microsoft Word
Закончив работу с уравнением, просто кликните по пустой области страницы. Если нажать после этого на пробел, запись, изначально вставленная посередине, будет выровнена по левому краю (или по тому, который задан в качестве параметров выравнивания по умолчанию для текущего документа).

Редактирование формулы завершено в программе Microsoft Word

Способ 2: Самостоятельное создание уравнений

Куда более часто требуется добавить в текстовый документ не шаблонную запись, а произвольное или просто отсутствующее в списке «Встроенные» уравнение. Делается это следующим образом:

  1. В выпадающем списке меню «Уравнение» выберите пункт «Вставить новое уравнение», после чего на страницу будет добавлено поле для записи.
    Вставить новое уравнение в программе Microsoft Word

    Примечание: Для вставки поля для ввода формулы, которое называется «Место для уравнения», можно воспользоваться горячими клавишами, а именно, комбинацией «ALT+=».

    Комбинация клавиш для вставки уравнения в программе Microsoft Word

  2. Для рукописного ввода уравнения воспользуйтесь элементами, представленными во второй и третьей группе инструментов вкладки «Конструктор»«Символы» и «Структуры».
    Инструменты для записи уравнения в программе Microsoft Word
    В число последних входят следующие:

    • Дробь;
    • Индекс;
    • Корень;
    • Интеграл;
    • Крупный оператор;
    • Скобка;
    • Функция;
    • Диакритические знаки;
    • Предел и логарифм;
    • Оператор;
    • Матрица.

    Основа для записи уравнения в программе Microsoft Word
    Вот пример того, как можно записать простое уравнение:

    • Для начала выбираем подходящую структуру (в нашем примере это «Верхний индекс»).
    • Затем ставим символ (такие как плюс, минус, равно, умножить можно ввести и с клавиатуры, остальные же выбираются на панели «Символы»).
    • Аналогичным образом записываем остальные элементы примера.
    • Использование структур и символов для создания уравнения в программе Microsoft Word

  3. После того как вы введете формулу, кликните ЛКМ по пустой области страницы.
    Формула, созданная с помощью структур и символов в программе Microsoft Word

    Если потребуется, выровняйте расположение записи по левому краю, нажав пробел или обратившись к меню дополнительных действий (выпадающий список блока с уравнением).

  4. Пример простого уравнения, созданного в программе Microsoft Word
    В сравнении с рассмотренным нами выше способом вставки шаблонных формул, их самостоятельное создание предоставляет куда более широкие возможности. Именно таким образом можно добавить в текстовый документ запись любой сложности и структуры, хотя и выполняется данная процедура не всегда удобно.

Способ 3: Рукописный ввод уравнений

Если набор математических символов и структур, представленных во вкладке «Конструктор» и предназначенных для самостоятельного создания записей, вас по каким-то причинам вас не устраивает, формулу или уравнение можно добавить и старым-добрым способом – написав его от руки, а точнее, с помощью мышки (или стилуса на устройствах с сенсорным экраном). Делается это следующим образом:

  1. В меню вставки нового уравнения выберите предпоследний пункт «Рукописное уравнение».
  2. Вставка рукописного уравнения в программе Microsoft Word

  3. Будет открыто окно «Ввод математической формулы», верхняя часть которого является областью предварительного просмотра, нижняя – панелью инструментов, а наибольшую часть занимает расположенная посредине область для ввода.
    Окно для рукописного ввода уравнения в программе Microsoft Word
    Как раз в ней с помощью мышки (или стилуса, если таковой поддерживается экраном) и инструмента «Написать» и следует писать формулу от руки. Старайтесь делать это аккуратно, так как алгоритм распознавания рукописного текста отнюдь не совершенен.
    Пример распознавания рукописной формулы в программе Microsoft Word

    Примечание: По ходу написания формулы поле для ее ввода будет автоматически расширяться.

    Еще одна математическая формула в программе Microsoft Word
    Если вы допустили ошибку, воспользуйтесь инструментом «Стереть», который удаляет сразу весь выбранный символ.
    Удаление ненужного элемента рукописной формулы в программе Microsoft Word
    Помимо удаления, доступно и исправление ошибок, что делается инструментом «Выбрать и исправить». С его помощью выделяете символ, обводя его по кругу, а затем из выпадающего меню выбираете то, на что вы хотите его заменить.
    Исправление рукописной записи в уравнении в программе Microsoft Word

    Выделять можно и более одного символа, к примеру, букву и степень, и в таком случае будет доступно еще больше вариантов исправления. Все это явно пригодиться в тех случаях, когда алгоритм программы спутает один символ с другим, например, цифру «2» и латинскую букву «Z», или просто некорректно его распознает.
    Варианты исправления записи в уравнении в программе Microsoft Word
    При необходимости вы также можете очистить поле для рукописного ввода и начать писать формулу заново.

  4. Очистить поле для записи формулы в программе Microsoft Word

  5. Для добавления созданной вручную записи на страницу нажмите по кнопке «Вставка», расположенной в нижней области окна «Ввод математической формулы».
  6. Вставка записанной формулы в документ в программе Microsoft Word

    Дальнейшее взаимодействие с формулой ничем не отличается от шаблонных и тех, что созданы посредством встроенных в Ворд символов и структур.
    Дальнейшая работа с рукописной формулой в программе Microsoft Word

Сохранение собственных формул в качестве шаблона

Если в процессе работы с документами вам часто требуется записывать одни и те же формулы, разумно будет добавить их в список часто используемых. Таким образом вы создадите готовый шаблон, который будет доступен из меню вставки буквально в пару кликов мышкой.

  1. Создайте формулу, которую хотите добавить в список шаблонов, а затем выделите ее нажатием ЛКМ по «рамке».
  2. Выделение созданного уравнения для его сохранения в программе Microsoft Word

  3. Нажмите на кнопку «Уравнение», расположенную в группе «Сервис» (вкладка «Конструктор») и в появившемся меню выберите пункт «Сохранить выделенный фрагмент в коллекцию уравнений…».
  4. Сохранить выделенный элемент в колекцию уравнений в программе Microsoft Word

  5. В появившемся диалоговом окне придумайте имя для сохраняемой формулы. В выпадающем списке «Коллекция» выберите пункт «Уравнения» и, при желании, определите категорию или оставьте ту, которую автоматически «подберет» программа.
  6. Определение параметров сохраняемого уравнения в программе Microsoft Word

  7. В случае необходимости определите другие параметры (добавьте описание и выберите то, куда сохраняемое уравнение будет добавляться), после чего нажмите «ОК».
  8. Сохранение уравнения в качестве шаблона в программе Microsoft Word

  9. Сохраненная в качестве шаблона формула появится в списке быстрого доступа Ворд, который открывается сразу после нажатия на кнопку «Уравнение» («Формула») в группе «Сервис».
  10. Уравнение сохранено в качестве шаблона в программе Microsoft Word

Вставка формулы в ячейку таблицы

Несмотря на то что в пакете Microsoft Office за работу с таблицами отвечает Excel, Word тоже позволяет создавать и обрабатывать элементы данного типа. Да, возможности текстового редактора в этом плане куда более скромные, чем у его собрата, но для решения базовых задач встроенной функциональности будет достаточно.
Обычная вставка формул в ячейку таблицы в программе Microsoft Word
Вставка непосредственно уравнений, шаблонных или самостоятельно созданных, в таблицу осуществляется ровно по тому же алгоритму, что и во всех рассмотренных нами случаях, что можно понять из представленного выше скриншота. Однако помимо этого в программе имеется возможность добавления именно формулы в любую ячейку таблицы Ворд, по типу того, как это делается в Экселе. Об этом далее и расскажем.

Читайте также:
Создание таблиц в Word
Работа с таблицами в MS Word

  1. Создайте таблицу, если не сделали это заранее, а затем выделите кликом ЛКМ ту ее ячейку, в которую будет добавлена формула.
  2. Перейдите во вкладку «Макет», но не ту, что в основной группе вкладок, а ту, которая располагается в категории «Работа с таблицами», и нажмите там по кнопке «Формула» (группа инструментов «Данные»).
    Добавление формулы в ячейку таблицы в программе Microsoft Word

    Примечание: Если просто навести указатель курсора на кнопку «Формула», можно увидеть краткое описание того, что данная функция позволяет. С ее помощью можно добавить в ячейку таблицы формулу для выполнения простого расчета, например, среднего значения или суммы.

  3. Описание возможности вставки формулы в ячейку таблицы в программе Microsoft Word

  4. В небольшом диалоговом окошке, которое будет открыто, впишите в первую строку формулу, во второй определите формат числа, а в третьей, если это потребуется, выберите функцию, которую требуется вставить в формулу. Сделав все это, нажмите «ОК» для закрытия окна и добавления созданной записи в ячейку таблицы.
  5. Возможности по работе с формулами для таблицы в программе Microsoft Word

    У вас может возникнуть вполне логический вопрос – как правильно записывать такие формулы, какой у них должен быть синтаксис? Общий алгоритм в данном случае мало чем отличается от такового в MS Excel, с той лишь разницей, что переменными в записи выступают не адреса ячеек, а их расположение – над ячейкой (ABOVE) или под ней (BELOW), справа (RIGHT) или слева от нее (LEFT). Например, вот так будет выглядеть формула суммы значений:

    =SUM(ABOVE)
    Пример формулы суммы в ячейке таблицы в программе Microsoft Word
    В нашем примере она записана в в четвертую ячейку третьей строки таблицы, а значит, будет суммировать указанные над ней значения: 25+17, что равно 42.
    Расчет значений по формуле в ячейке таблицы в программе Microsoft Word
    Остальные примеры различных вариантов записи формулы суммы для таблиц в Ворде показаны на следующем изображении, а под ним есть ссылка на официальную страницу поддержки на сайте Microsoft, посвященную данной теме — на ней можно найти синтаксис всех поддерживаемых программой формул и подробное описание их использования.

    Таблица с синтаксисом простых формул для таблиц в Microsoft Word

    Работа с формулами в таблицах MS Word

Работа с формулами в Microsoft Word 2003

Как было сказано во вступлении, в Ворд 2003 нет собственных средств для добавления, изменения и создания уравнений и формул. Но решение нашей сегодняшней задачи, хоть и весьма ограниченное, доступно и в этой версии программы. Используются для этих целей специальные надстройки — Microsoft Equation и Math Type, об использовании которых мы кратко расскажем далее.

  1. Откройте вкладку «Вставка» и выберите пункт «Объект».
  2. В открывшемся диалоговом окне выберите «Microsoft Equation 3.0» и нажмите на кнопку «ОК».
  3. Сразу же после этого будет открыто небольшое окно под названием «Формула», в котором можно выбирать математические символы и структуры, аналогичные таковым в более новых версиях Microsoft Word, и использовать их для создания формул и уравнений любой сложности.
  4. Для того чтобы выйти из режима работы с формулами, просто кликните левой кнопкой мышки по пустому месту на листе. К сожалению, помимо самостоятельного, причем весьма ограниченного в функциональном плане, создания математических выражений, для решения нашей сегодняшней задачи Ворд 2003 не предоставляет более никаких возможностей.

Заключение

Несмотря на то что Microsoft Word предназначен в первую очередь для работы с текстом, в нем возможно в том числе и выполнение таких отнюдь не рутинных задач, как вставка шаблонных уравнений и формул, их изменение или создание с нуля, и даже рукописный ввод.

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

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.

How to Insert Mathematical Formulas and Symbols in Word

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.

How to Insert Mathematical Formulas and Symbols in Word

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.

How to Insert Mathematical Formulas and Symbols in Word

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 EquationInsert 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.

How to Insert Mathematical Formulas and Symbols in Word

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.

How to Insert Mathematical Formulas and Symbols in Word

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.

How to Insert Mathematical Formulas and Symbols in Word

Copyright Statement: Regarding all of the posts by this website, any copy or use shall get the written permission or authorization from Myofficetricks.

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.

    LAYOUT TAB AND FORMULABUTOON

  • 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.FORMULA DIALOG BOX

  • Step 3: Click OK to use the formula.

    CLICK OK TO GET THE SUM

  • 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.RESULT OF FORMULA

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
Word Table Formula Cell Reference

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

MS Word Tutorial Merge and Split Cells

NEXT

MS Word Tutorial Quick Style

Did you know Word can contain formulas? Yes. It can.

For simple calculations you don’t need to use Excel.

Formulas in Word tables

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.

image

Now go to the first row, last column and choose Table Tools – Layout – Formula

Word - table tools - table layout - formula

Word understands that you are in the rightmost cell of the table and suggests a formula
=SUM (LEFT)

Formula dialogue in Word tables

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.

image

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.

image

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.

image

If you have lots of formulas, select the entire document (CTRL A) and then right click and choose Update Field.

image

The numbers must be contiguous

If there is any text in between, the calculation fails. It needs contiguous numbers.

image

More functions

Open the Formula dialog dropdown to see more functions.

SNAGHTMLb295839

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.

image image

image

Now the formula can use the bookmark.

image

Here is the result.

image

Excel like formulas also work

Think of each cell of the Word table as though it was an Excel sheet starting with A1.

image

Now type a formula exactly as you would in Excel.

image

Here is the result.

image

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…

image

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.

image

When you finish, press F9 to finalize the formula and calculate the result.

image

Change the input values and right click in the field – Update Field – to show new results.

image

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.

***

Понравилась статья? Поделить с друзьями:
  • Using form fields in word
  • Using form controls in word
  • Using first letters to make a word
  • Using first letter from each word
  • Using find with if in excel