Excel TRIM function Function TRIM Description Excel TRIM function trims all extra spaces in text by leaving only single space between words. Syntax TRIM(text) text Required. The text to be trimmed. Example: Related Video Tutorials: