Share via

Average command issue in Word

Anonymous
2016-08-19T17:18:10+00:00

In Word 2010, how can i average fields leaving blank fields omitted in the calculation like Excel does?  Word counts all fields whether populated or not and returns an incorrect value as the result.  For example, if i have only two values populated, (5,3) in the table and two other fields not populated or blank, i get an average value of 2 instead of 4.  Excel handles this well, but I'm not able to get the same results in Word.  Audience will only be using Word to complete the form.  Thanks for the help!

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

8 answers

Sort by: Most helpful
  1. Anonymous
    2016-08-22T00:35:59+00:00

    Thanks macropod!  That worked great for me!  I was using the ABOVE instead of A1:A5.  When i changed my formula to the range, it now works the way you said it would!  Thanks for your timely input and for your expertise!!!  it is  greatly appreciated!!!  Problem solved!!!!  :)

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  2. Paul Edstein 82,861 Reputation points Volunteer Moderator
    2016-08-20T21:41:17+00:00

    With a formula field coded as:

    {=AVERAGE(A1:A5)}

    your result should be 4 - that's what I get. If you're using a formula field coded as:

    {AVERAGE(ABOVE)

    you're liable to get spurious results when cells above are empty. Your should also avoid using formfields for the calculations. See the discussion in my Microsoft Word Field Maths Tutorial, at:

    http://windowssecrets.com/forums/showthread.php/154369-Microsoft-Word-Field-Maths-Tutorial

    or:

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

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  3. Anonymous
    2016-08-20T21:16:11+00:00

    Thanks macropod.  I have created a table within Word with 5 fields for a test. 

    5

    3

    blank, no 0

    blank, no 0

    then Average formula.

    My result is 2, not 4, because Word DOES count the blank field within its calculation.  Within Excel, it is correct with 4 as the result.  When I embed an Excel worksheet within Word for my users to use. Word does not carry over the formula, and will not update when entries are made to it without manual intervention.

    If you what i am doing incorrectly, please advise.  Thanks,

    Was this answer helpful?

    0 comments No comments
  4. Paul Edstein 82,861 Reputation points Volunteer Moderator
    2016-08-20T04:05:35+00:00

    Word's AVERAGE field function ignores blank cells (but not cells containing 0) in a table, regardless of whether those cells get their input via fields.

    Was this answer helpful?

    0 comments No comments
  5. Jay Freedman 207.7K Reputation points Volunteer Moderator
    2016-08-20T03:05:59+00:00

    One solution is to embed an Excel sheet in the Word document. The only other solution is to write a fairly complex macro in the Word document, which would probably trigger security warnings when the document is opened on other computers.

    Was this answer helpful?

    0 comments No comments