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

From Apache OpenOffice Wiki
Jump to: navigation, search
Line 54: Line 54:
 
: returns <tt>'''3'''</tt>, the number of characters in <tt>'''cat'''</tt>.  
 
: returns <tt>'''3'''</tt>, the number of characters in <tt>'''cat'''</tt>.  
  
{{Documentation/SeeAlso|
+
{{SeeAlso|EN|
 
* [[Documentation/How_Tos/Calc: TRIM function|TRIM]]
 
* [[Documentation/How_Tos/Calc: TRIM function|TRIM]]
 
* [[Documentation/How_Tos/Calc: FIND function|FIND]]
 
* [[Documentation/How_Tos/Calc: FIND function|FIND]]

Revision as of 07:55, 17 July 2018


CLEAN

returns a text string with non-printable characters removed.

Syntax:

CLEAN(text)

returns text with all non-printable characters removed.
Spaces are not removed.

Example:

where cell A1 contains =CHAR(7) & "cat" & CHAR(8):

CLEAN(A1)

returns cat. The 2 non-printable characters are removed.

LEN(CLEAN(A1))

returns 3, the number of characters in cat.



See Also
Retrieved from "https://wiki.openoffice.org/w/index.php?title=Documentation/How_Tos/Calc:_CLEAN_function&oldid=243420"
Views
Personal tools
Navigation
Tools