Documentation/How Tos/Calc: TRIM function

From Apache OpenOffice Wiki
< Documentation‎ | How Tos
Revision as of 05:35, 31 December 2007 by Drking (Talk | contribs)

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


TRIM

removes excess spaces from a text string.

Syntax:

TRIM(text)

returns text with any leading or trailing spaces removed, and with any multiple spaces replaced with a single space.

Example:

TRIM("    Good    Morning   ")

returns Good Morning.

See also:

CLEAN, FIND, PROPER, REPLACE, SEARCH, SUBSTITUTE

Text functions

Personal tools