Excel Workbook | ||||
---|---|---|---|---|
A | B | |||
1 | Dbl. Dutch Door 1 | DD1 | ||
2 | Aword Bword Cword Dword | BCD | ||
Sheet5 |
Function ExtractLettersAfterSpaces(S As String) As String
Dim V, i As Long
V = Split(S, " ")
For i = LBound(V) + 1 To UBound(V)
ExtractLettersAfterSpaces = ExtractLettersAfterSpaces & Left(V(i), 1)
Next i
End Function
OK, so I plugged that in to my test for my formula and I get DDD as a result, is that now what you want or what you are expecting?
If it isn't what you want, can you tell us what it should be then?
That's because you didn't install the function correctly.=ExtractLettersAfterSpaces(A1) This is what i want, however it returns the value of (#Name?)