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?
 

Ken Puls

Administrator
Staff member
Joined
Mar 13, 2011
Messages
2,521
Reaction score
6
Points
38
Location
Nanaimo, BC, Canada
Website
www.excelguru.ca
Excel Version(s)
Excel Office 365 Insider
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?
 

Kevin@Radstock

New member
Joined
Oct 5, 2012
Messages
52
Reaction score
0
Points
0
Excel Version(s)
365
Hi notatech

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

Kevin
 
Top