Share via

calculating the difference from 2 different tables using the bookmark

Anonymous
2019-01-27T14:07:54+00:00

Hello!

I need to calculate the difference between 2 cells from different tables(B2 cell in each table) in the cell B2 of a third table and I tried to do it with bookmarks but it didn't work. I put a bookmark in the B2 cells of the first two tables and I named them m1 and m2. Then I went to cell b2 of the third table -> Formulas = m2-m1 and it says **!M2 Is Not In Table.**I really need to solve this problem. Please help me :)

Microsoft 365 and Office | Word | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Anonymous
2019-01-27T14:27:29+00:00

Hi Daniel,

"m1" and "m2" can be cell locations as well as bookmark names.

Use bookmark names that cannot be the location of table cells or use Ref Fields to refer to the bookmarks rather than just the names. 

In the screenshot above you can see the bookmarks names in parentheses in the first two tables. a1 in Table 2 has two bookmarks assigned.

Table 3 has three formulae. The one you currently use does not work. Using bookmark names that cannot be the locations of table cells works. Using Ref fields (cross-reference to a bookmark) works.

This forum is a user-to-user support forum. I am a fellow user.

I hope this information helps.

Please let me know if you have any more questions or require further help.

Regards

Was this answer helpful?

3 people found this answer helpful.
0 comments No comments

3 additional answers

Sort by: Most helpful
  1. Paul Edstein 82,861 Reputation points Volunteer Moderator
    2019-01-28T00:50:39+00:00

    Simply bookmark the source tables (technically the bookmarks needn't even span the whole table), then use a formula field like:

    {=SUM(Tbl1 B2)-SUM(Tbl2 B2)}

    where Tbl1 & Tbl2 are the bookmark names.

    To see how to do a wide range of other calculations in Word, check out my Microsoft Word Field Maths Tutorial, at:

    http://www.msofficeforums.com/word/38720-microsoft-word-field-maths-tutorial.html

    or:

    http://www.gmayor.com/downloads.htm#Third_party

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  2. Anonymous
    2019-01-27T15:02:05+00:00

    Not quite a genius, but you are welcome.

    I've just been using Word for a loooong time and am familiar with some *(not all)*of its foibles.

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2019-01-27T14:55:44+00:00

    You are a genius. Thank you very much!

    Was this answer helpful?

    0 comments No comments