Works: IF function Returns Incorrect Results with Blank, Zero (123868)
The information in this article applies to:
- Microsoft Works 3.0
- Microsoft Works 3.0a
- Microsoft Works 3.0b
- Microsoft Works for MS-DOS 3.0
This article was previously published under Q123868 SYMPTOMS
You may get incorrect results when using the IF function to check the
contents of a cell for a specific text string. If the cell being
referenced contains a blank or a zero (0), the IF function returns a
TRUE value even though it did not find the specified text string.
RESOLUTION
To correct the problem, use the S function to force Works to treat the
contents of the cell as a text string and exclude blank or zero cell
contents.
Example
The following function
=if(a1="abc","true result","false result")
results in a "true result" answer if cell a1 is blank, zero, or
contains "abc".
To correct the problem and ensure that the function returns "true
result" only if the cell a1 contains "abc", use the S function. For
example:
=if(s(a1)="abc","true result","false result")
REFERENCESWorks for Windows 3.0- IF function: See pages 540-541 of the "Microsoft Works User's Guide."
- S function: See page 555 of the "Microsoft Works User's Guide."
Works for MS-DOS 3.0- IF function: See pages 482-483 of the "Microsoft Works User's Guide."
- S function: See pages 507 and 513 of the "Microsoft Works User's
Guide."
Modification Type: | Major | Last Reviewed: | 10/6/2003 |
---|
Keywords: | KB123868 |
---|
|