What kind of error? If it has #error in the average box, then one of the
controls referenced is wrong.
A mistake I sometimes make is to use the name of the control in the
calculation
control name: box1
control name: box2
control name: box3
box3 data source: =(box1 + box2) / 2
should work if box1 and box2 both contain numbers.