Documentation/How Tos/Calc: CLEAN function

From Apache OpenOffice Wiki
< Documentation‎ | How Tos
Revision as of 19:01, 17 January 2008 by Drking (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


CLEAN

returns a text string with non-printable characters removed.

Syntax:

CLEAN(text)

returns text with all non-printable characters 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:

TRIM, FIND, PROPER, REPLACE, SEARCH, SUBSTITUTE, LEN

Text functions

Personal tools