SOLVED

Manipulatng text format

%3CLINGO-SUB%20id%3D%22lingo-sub-1530324%22%20slang%3D%22en-US%22%3EManipulatng%20text%20format%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1530324%22%20slang%3D%22en-US%22%3E%3CP%3EIs%20there%20a%20formula%20in%20Excel%20to%20convert%20text%20that%20has%20been%20written%20in%20capital%20letters%20e.g.%20%22SPOCK%22%2C%20so%20that%20it%20is%20written%20as%20%22Spock%22%3F%26nbsp%3B%20Or%20for%20example%2C%20%22ONE%20TWO%20THREE%22%20into%20%22One%20two%20three%22.%3CBR%20%2F%3E%3CBR%20%2F%3EI%20see%20that%20LOWER%20turns%20everything%20into%20small%20letters%2C%20but%20I%20do%20not%20want%20that%2C%20as%20I%20want%20just%20the%20first%20letter%20changed.%3CBR%20%2F%3E%3CBR%20%2F%3EThanks!%3CBR%20%2F%3E%3CBR%20%2F%3EJohn%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1530324%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1530334%22%20slang%3D%22en-US%22%3ERe%3A%20Manipulatng%20text%20format%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1530334%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F732373%22%20target%3D%22_blank%22%3E%40Harmonica%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThere's%20the%20function%20PROPER%20which%20could%20handle%20SPOCK%2C%20but%20not%20ONE%20TWO%20THREE%20because%20it%20takes%20each%20word%20and%20keeps%20the%20initial%20capital.%26nbsp%3B%20But%20if%20your%20ONE%20TWO%20THREE%20is%20in%20cell%20G8%3C%2FP%3E%3CP%3Ethen%20%3CSTRONG%3E%3DLEFT(G8%2C1)%26amp%3BLOWER(RIGHT(G8%2CLEN(G8)-1))%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3Ewill%20work.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1530342%22%20slang%3D%22en-US%22%3ERe%3A%20Manipulatng%20text%20format%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1530342%22%20slang%3D%22en-US%22%3EThanks%20for%20the%20prompt%20response!%3CBR%20%2F%3E%3CBR%20%2F%3EI%20need%20to%20look%20up%20what%20LEFT%2C%20RIGHT%20and%20LEN%20do%20as%20beyond%20my%20current%20knowledge.%3CBR%20%2F%3E%3CBR%20%2F%3ECheers!%3CBR%20%2F%3E%3CBR%20%2F%3EJohn%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1530360%22%20slang%3D%22en-US%22%3ERe%3A%20Manipulatng%20text%20format%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1530360%22%20slang%3D%22en-US%22%3ELooked%20up%20what%20those%20functions%20do...how%20clever%20you%20are!%3CBR%20%2F%3E%3CBR%20%2F%3EThe%20only%20bit%20I%20do%20not%20understand%20is%20the%20role%20of%20the%20ampersand%20(%26amp%3B).%3CBR%20%2F%3E%3CBR%20%2F%3EJP%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1530394%22%20slang%3D%22en-US%22%3ERe%3A%20Manipulatng%20text%20format%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1530394%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F732373%22%20target%3D%22_blank%22%3E%40Harmonica%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20ampersand%20puts%20text%20strings%20together.%20It's%20a%20short%20cut.%20There's%20a%20function%20called%20%3CSTRONG%3ECONCATENATE%3C%2FSTRONG%3E%20that%20can%20do%20the%20same%20thing.%20Look%20it%20up.%20There's%20a%20lot%20you%20can%20do%20with%20the%20various%20text%20manipulation%20strings.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHowever%2C%20if%26nbsp%3B%20you're%20going%20to%20be%20using%20Excel%20extensively%2C%20on%20thing%20I'd%20point%20out%20is%20that%20although%20you%20can%20use%20%3CSTRONG%3ELEFT%3C%2FSTRONG%3E%2C%20%3CSTRONG%3EMID%3C%2FSTRONG%3E%20and%20%3CSTRONG%3ERIGHT%3C%2FSTRONG%3E%20to%20take%20strings%20apart%2C%20it's%20a%20lot%20easier%20to%20put%20separate%20ones%20together.%20So%20if%20you%20get%20to%20the%20point%20of%20creating%20databases%20of%20such%20things%20as%20names%20and%20addresses%2C%20always%20have%20separate%20fields%20for%20FNAME%20and%20LNAME%20(and%20any%20other%20related%20things%20such%20as%20PREFIX%20and%20SUFFIX).%20It's%20then%20easy%20to%20put%20them%20together%20as%20%22Smith%2C%20John%22%20OR%20%22John%20Smith%22%20and%20there%20will%20always%20be%20occasions%20when%20you%20want%20one%20or%20the%20other.%20It's%20also%20easier%20to%20sort%20into%20alphabetical%20order%20by%20last%20name....%20Same%20with%20address---don't%20make%20it%20all%20one%20field.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1530396%22%20slang%3D%22en-US%22%3ERe%3A%20Manipulatng%20text%20format%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1530396%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F732373%22%20target%3D%22_blank%22%3E%40Harmonica%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFor%20your%20reading%20pleasure%3A%20here's%20a%20reference%20source%20on%20all%20of%20the%20text%20manipulation%20functions.%20You%20can%20tell%20that%20I'm%20old%20school%2C%20since%20I%20read%20here%20that%20%3CSTRONG%3ECONCATENATE%3C%2FSTRONG%3E%20has%20been%20replaced%20by%20%3CSTRONG%3ECONCAT%3C%2FSTRONG%3E.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fwww.excelfunctions.net%2Fexcel-text-functions.html%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.excelfunctions.net%2Fexcel-text-functions.html%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1530406%22%20slang%3D%22en-US%22%3ERe%3A%20Manipulatng%20text%20format%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1530406%22%20slang%3D%22en-US%22%3EFunnily%20enough%2C%20before%20posting%20my%20query%20here%2C%20I%20had%20just%20been%20using%20CONCAT.%3CBR%20%2F%3E%3CBR%20%2F%3EOh%2C%20and%20thanks%20once%20more...I%20was%20wondering%20what%20the%20difference%20was%20between%20CONCAT%20and%20CONCATENATE!%3CBR%20%2F%3E%3CBR%20%2F%3EI%20shall%20presently%20be%20looking%20at%20that%20link%20you%20so%20kindly%20provided.%3CBR%20%2F%3E%3CBR%20%2F%3EThanks%20very%20much%20once%20more.%3CBR%20%2F%3E%3CBR%20%2F%3EIn%20the%20end%2C%20given%20that%20most%20of%20my%20list%20was%20fine%20to%20be%20manipulated%20with%20PROPER%2C%20I%20did%20that.%20For%20the%20few%20that%20needed%20lower%20cases%20after%20the%20first%20letter%20of%20the%20first%20word%2C%20I%20used%20your%20clever%20formula%20manipulation.%20All%20worked%20a%20treat!%3CBR%20%2F%3E%3CBR%20%2F%3EAll%20the%20best!%3CBR%20%2F%3E%3CBR%20%2F%3EJohn%3C%2FLINGO-BODY%3E
Highlighted
New Contributor

Is there a formula in Excel to convert text that has been written in capital letters e.g. "SPOCK", so that it is written as "Spock"?  Or for example, "ONE TWO THREE" into "One two three".

I see that LOWER turns everything into small letters, but I do not want that, as I want just the first letter unchanged.

Thanks!

John

6 Replies
Highlighted
Best Response confirmed by Harmonica (New Contributor)
Solution

@Harmonica 

 

There's the function PROPER which could handle SPOCK, but not ONE TWO THREE because it takes each word and keeps the initial capital.  But if your ONE TWO THREE is in cell G8

then =LEFT(G8,1)&LOWER(RIGHT(G8,LEN(G8)-1))

will work.

Highlighted
Thanks for the prompt response!

I need to look up what LEFT, RIGHT and LEN do as beyond my current knowledge.

Cheers!

John
Highlighted
Looked up what those functions do...how clever you are!

The only bit I do not understand is the role of the ampersand (&).

JP
Highlighted

@Harmonica 

 

The ampersand puts text strings together. It's a short cut. There's a function called CONCATENATE that can do the same thing. Look it up. There's a lot you can do with the various text manipulation strings.

 

However, if  you're going to be using Excel extensively, on thing I'd point out is that although you can use LEFT, MID and RIGHT to take strings apart, it's a lot easier to put separate ones together. So if you get to the point of creating databases of such things as names and addresses, always have separate fields for FNAME and LNAME (and any other related things such as PREFIX and SUFFIX). It's then easy to put them together as "Smith, John" OR "John Smith" and there will always be occasions when you want one or the other. It's also easier to sort into alphabetical order by last name.... Same with address---don't make it all one field.

Highlighted

@Harmonica 

 

For your reading pleasure: here's a reference source on all of the text manipulation functions. You can tell that I'm old school, since I read here that CONCATENATE has been replaced by CONCAT.

 

https://www.excelfunctions.net/excel-text-functions.html

 

Highlighted
Funnily enough, before posting my query here, I had just been using CONCAT.

Oh, and thanks once more...I was wondering what the difference was between CONCAT and CONCATENATE!

I shall presently be looking at that link you so kindly provided.

Thanks very much once more.

In the end, given that most of my list was fine to be manipulated with PROPER, I did that. For the few that needed lower cases after the first letter of the first word, I used your clever formula manipulation. All worked a treat!

All the best!

John