Difference between revisions of "Documentation/How Tos/Calc: CLEAN function"
From Apache OpenOffice Wiki
< Documentation | How Tos
(Initial content) |
(→Syntax:) |
||
Line 7: | Line 7: | ||
<tt>'''CLEAN(text)'''</tt> | <tt>'''CLEAN(text)'''</tt> | ||
: returns <tt>'''text'''</tt> with all non-printable characters removed. | : returns <tt>'''text'''</tt> with all non-printable characters removed. | ||
+ | |||
+ | : Spaces are <u>not</u> removed. | ||
=== Example: === | === Example: === |
Revision as of 18:01, 7 May 2008
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.