Abbreviation for "Rear Derailleur" as "RD"

S

Sammy in Taiwan

Can any one help me to make an abbreviation in excel file?

This is the example:
"Rear Derailleur" to "RD"
"Front Suspension Fork" to "FSF"

Thanks for your help!
 
S

Sammy in Taiwan

Is there any function that I can use on excel for this job? precisely I
should say: make an acronym for it!

Anne, thanks for your response.

"Anne Troy" 來函:
 
B

Bob Phillips

Probably best to write a UDF

Function Acronyms(text)
Dim i As Long
Dim sTemp

If TypeName(text) = "Range" Then
If text.Count > 1 Then
Exit Function
End If
End If

For i = 1 To Len(text)
If Mid(text, i, 1) Like "[A-Z]" Then
sTemp = sTemp & Mid(text, i, 1)
End If
Next i
Acronyms = sTemp
End Function


and use like

=Acronyms(A1)
 
Top