Home >Topics >excel >What does the trim function do to delete text?

What does the trim function do to delete text?

藏色散人
藏色散人Original
2020-12-17 14:28:116110browse

The trim function is to delete spaces in text. The main function of this function is to remove all spaces in the text except for single spaces between words. Its syntax is "TRIM(text)", where the parameters text is required, indicating that spaces need to be removed from the text.

What does the trim function do to delete text?

The operating environment of this article: Windows 7 system, Microsoft Office Excel 2003 version, Dell G3 computer.

Related learning recommendations: excel tutorial

TRIM function is used to clear spaces in excel. Except for a single space between words, all spaces in the text will be cleared. . You can use the function TRIM when retrieving text with irregular spaces from other applications.

TRIM(text)

text is required, indicating that the text in which spaces need to be removed.

The main function of the TRIM function is to remove all spaces in the text except single spaces between words.

The TRIM function is designed to remove the 7-bit ASCII space character (value 32) from text. In the Unicode character set, there is an extra space character called the nonbreaking space character, which has a decimal value of 160. This character is commonly used in web pages as an HTML entity  . The TRIM function itself does not remove this non-breaking space character.

The above is the detailed content of What does the trim function do to delete text?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn