PROPER

將指定字串中所有單字的第一個字母改為大寫。

使用範本

PROPER("united states")

PROPER(A2)

語法

PROPER(text_to_capitalize)

  • 要大寫的文字 - The text which will be returned with the first letter of each word in uppercase and all other letters in 小寫

附註

  • PROPER is useful for proper nouns, such as names of people or geographic locations.

  • PROPER capitalizes each word in 要大寫的文字 rather than the beginning of each sentence, and is therefore likely not the correct tool to use for paragraphs or other blocks of text.

  • PROPER will convert all characters not at the beginning of words to lowercase, which may cause problems with certain strings. 時間範圍example, using PROPER("mcLeod") to capitalize the surname McLeod results in "Mcleod" instead.

另請參閱

UPPER: 將指定字串的字母轉換成大寫。

SUBSTITUTE: 以新文字取代字串中的現有文字。

LOWER: 將指定字串的字母轉換成小寫。

範例

這對您有幫助嗎?
我們應如何改進呢?