Change case of text to proper except after a number

notatech

New member
Joined
Nov 26, 2012
Messages
1
Reaction score
0
Points
0
I would like to take information about medication from one sheet that is in all caps and automatically copy that information to another sheet where only the first letter of the words are capitalized. However, I do not want text that is directly next to numbers capitalized. So, in my first sheet, I have PROZAC 20MG, and I would like the other sheet to display Prozac 20mg. If I use the proper function, it displays Prozac 20Mg. I want the m in mg to be lowercase. How can I do this?
 
Is there always a space between the drug name and the quantity? And is there ever a drug name that has a space within itself?
 
Hi notatech

One way would be with the following: =PROPER(LEFT(A1,FIND(" ",A1)-1))&" "&LOWER(RIGHT(A1,LEN(A1)-FIND(" ",A1)))

Kevin
 
Back
Top