# TRIM

Spread for WinForms provides advanced software components that support Excel import/export, full cell customization, an extensive calculation engine with over 450 functions and more, all with zero dependencies on Excel.

## Content



This function removes extra spaces from a string and leaves single spaces between words.

## Syntax

TRIM(*text*)

## Arguments

The argument specifies the string containing the spaces you want to remove.

## Data Types

Accepts string data. Returns string data.

## Examples

`TRIM("First Quarter")` gives the result First Quarter

## Version Available

This function is available in product version 1.0 or later.

## See Also

[CLEAN](/spreadnet/docs/latest/online-formula/formulas-functionsall/formulas-functsAtoC/FunctionCLEAN) \| [SUBSTITUTE](/spreadnet/docs/latest/online-formula/formulas-functionsall/formulas-functsRtoS/FunctionSUBSTITUTE) \| [Text Functions](/spreadnet/docs/latest/online-formula/formulas-overview/formulas-functs/formulas-functtypes/formulas-functstext)