Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to capitalize the first letter of a string of words?

Good morning,

I am using data from multiple Excel documents.

In several of these words are in lowercase or uppercase, not respect criteria.

As the words I need to be with capital letter.

Example:

Hello WORD = Hello word

Thank you for your prompt response.

Thanks

1 Solution

Accepted Solutions
Colin-Albert
Partner - Champion

Capitalize will make the first letter of every word a capital. Capitalize('hello WORLD') = Hello World

If you only want the first letter of the whole text string to be caps, try this

     upper(left(trim(data),1)) & lower(mid(trim(data),2,len(data)))

where data is the field containg the text you wish to change.

If data is "hello WORLD", this will become "Hello world"

View solution in original post

5 Replies
SunilChauhan
Champion II

Use this


capitalize('Hello WORD')

and if you want through out your field then

Capitalize(FieldName)

hope this helps

Sunil Chauhan
MK_QSL
MVP

=Capitalize('Hello WORD')

Colin-Albert
Partner - Champion

Capitalize will make the first letter of every word a capital. Capitalize('hello WORLD') = Hello World

If you only want the first letter of the whole text string to be caps, try this

     upper(left(trim(data),1)) & lower(mid(trim(data),2,len(data)))

where data is the field containg the text you wish to change.

If data is "hello WORLD", this will become "Hello world"

sudeepkm
Specialist III

you may use UPPER() or LOWER() to make the field values to a particular case.

Not applicable
Author

Thank you for your response has been very useful to me