Article ID: 123868
Article Last Modified on 10/6/2003
=if(a1="abc","true result","false result")results in a "true result" answer if cell a1 is blank, zero, or contains "abc".
=if(s(a1)="abc","true result","false result")
=IF(Test Condition,ValueIfTrue,ValueIfFalse)Substitute whatever value, text, or formula is desired in place of the "true result"/"false result" text above. To use the above formula in the Works database, substitute a field name for the cell reference (a1) in the above formula.
=if(a1="abc","true result","false result")does not work with blank/zero cells is that when Works does the comparison it converts the text (e.g., "abc") to a number (0) to match the data type (numeric) of the zero-value cell. Because all text has a numerical value of zero and a blank cell is equivalent to zero, the result of the conditional test is true.
=if(S(a1)<>"","Is Text","Is a Number, Zero or Blank")
Additional query words: w_works S N text string concatenation characters worksheet equation conditional wrong
Keywords: KB123868