Function GFL(rng As Range) As String
Dim arr
Dim I As Long
arr = VBA.Split(rng, " ")
If IsArray(arr) Then
For I = LBound(arr) To UBound(arr)
GFL = GFL & Left(arr(I), 1)
Next I
Else
GFL = Left(arr, 1)
End If
End Function
Book1 | ||||
---|---|---|---|---|
A | B | |||
1 | The Greatest Show On Earth | TGSOE | ||
2 | Just Another Sample | JAS | ||
Sheet255 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
B1 | =LEFT(A1,1)&LEFT(TRIM(MID(SUBSTITUTE(A1," ",REPT(" ",100)),100,100)),1)&LEFT(TRIM(MID(SUBSTITUTE(A1," ",REPT(" ",100)),200,100)),1)&LEFT(TRIM(MID(SUBSTITUTE(A1," ",REPT(" ",100)),300,100)),1)&LEFT(TRIM(MID(SUBSTITUTE(A1," ",REPT(" ",100)),400,100)),1) |
jtakw's suggestion triggered another idea for the CONCAT function (in D1) thatHere's a formula solution, a little lengthy thou: