View Single Post
 
Old 08-09-2022, 11:13 AM
alnonymous alnonymous is offline Windows 10 Office 2016
Novice
 
Join Date: Aug 2022
Posts: 5
alnonymous is on a distinguished road
Question Calculate average in a column, but ignore empty cells?

When calculating Average using the function "=AVG(Below) in a Word Table column header, is there a way to make Word disregard any blank cells (such as entering some kind of 'null' value?) For example, in a one-column 14-day table, daily readings were not entered on six of the 14 days. If I leave those six cells blank, the =AVG(BELOW) function returns an average value of 92:
92
92
92

130
134
104
83
113
96
74
122


If I enter zeroes in all the empty cells, the =AVG(BELOW) function returns an average of 61:
61
61
61

0
130
134
104
0
0
83
0
0
0
113
96
74
122

But if I delete those six empty cells, the =AVG(BELOW) function returns an average value of 107. This is result I want, but I don't want to have to delete empty cells before updating the field.

107
107
130
134
104
83
113
96
74
122
the AVG(BELOW) function returns an average value of 92.AVG(BELOW
Reply With Quote