WinWord Err Msg: '! Zero Divide' When Using Expression FieldLast reviewed: July 30, 1997Article ID: Q95618 |
The information in this article applies to:
SYMPTOMSIf you use an expression (=) field in a Word for Windows table to divide the sum of one cell by another cell that contains no value (null value), the result of the expression field yields the following error:
! Zero DivideThis error occurs whenever you try to divide by a null value.
WORKAROUNDWord generates this error because it is not possible to divide a number by zero or nothing. If you prefer to display a different error message, use the following IF statement instead of the original expression field:
{IF{=sum([r2c1])}<>"0" "{=sum([r1c1])/sum([r2c1])}" "You can't divide by zero."}This field does the following:
If the sum of r2c1 (row 2, column 1) is not equal to zero, then divide r1c1 by r2c1. If r2c1 is equal to zero, then display the message "You can't divide by zero." NOTE: You can use any text in place of the "You can't divide by zero" error message. You can leave the prompt argument blank ("") if do not want an error message to appear in the cell. REFERENCES"Microsoft Word for Windows User's Guide," version 2.0, pages 307-309
|
KBCategory: kbusage
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |