Difference between revisions of "Documentation/How Tos/Calc: ISTEXT function"

From Apache OpenOffice Wiki
Jump to: navigation, search
m
m
Line 3: Line 3:
 
== ISTEXT  ==
 
== ISTEXT  ==
 
Tests if a cell contains text.
 
Tests if a cell contains text.
 
  
 
=== Syntax: ===
 
=== Syntax: ===
Line 9: Line 8:
  
 
: Returns <tt>'''TRUE'''</tt> if <tt>'''value'''</tt> is or refers to text, and <tt>'''FALSE'''</tt> otherwise.
 
: Returns <tt>'''TRUE'''</tt> if <tt>'''value'''</tt> is or refers to text, and <tt>'''FALSE'''</tt> otherwise.
 
  
 
=== Example: ===
 
=== Example: ===
Line 23: Line 21:
 
<tt>'''ISTEXT(C4)'''</tt>
 
<tt>'''ISTEXT(C4)'''</tt>
 
: where C4 is an empty cell returns <tt>'''FALSE'''</tt> (an empty cell contain no text).
 
: where C4 is an empty cell returns <tt>'''FALSE'''</tt> (an empty cell contain no text).
 
  
 
=== See also: ===
 
=== See also: ===

Revision as of 13:00, 19 January 2008


ISTEXT

Tests if a cell contains text.

Syntax:

ISTEXT(value)

Returns TRUE if value is or refers to text, and FALSE otherwise.

Example:

ISTEXT(“dog”)

returns TRUE.

ISTEXT(C2)

where cell C2 contains cat returns TRUE.

ISTEXT(C3)

where cell C3 contains =NA() returns FALSE, because NA() returns an error value, not text.

ISTEXT(C4)

where C4 is an empty cell returns FALSE (an empty cell contain no text).

See also:

ISNONTEXT function, ISNUMBER function

Information functions

Personal tools