Home |
Search |
Today's Posts |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
A very nice improvement !
-- Gary''s Student - gsnu200739 "Rick Rothstein (MVP - VB)" wrote: What about this modification to your subroutine? Sub qwerty() For Each R In Selection S = Split(Replace(R.Value, ",", ""), " ") For X = 0 To UBound(S) R.Offset(0, X + 1).Value = S(X) Next Next End Sub Rick "Gary''s Student" wrote in message ... Sub qwerty() For Each r In Selection s = Split(r.Value, " ") r.Offset(0, 1).Value = Left(s(0), Len(s(0)) - 1) r.Offset(0, 2).Value = s(1) If UBound(s) = 2 Then r.Offset(0, 3).Value = s(2) End If Next End Sub -- Gary''s Student - gsnu200739 "Kevin Porter" wrote: Have several spreadsheets that have the name of people in one column in the format - lastname, firstname MiddleInitial. What I need to do is read that info and parse out each piece of info into it's own column. One thing I am concerned with is some of the names do not have middle initials. Thanks, Kevin Porter |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
parsing full names in to 3 columns | Excel Programming | |||
Formulas for Parsing Full names | Excel Worksheet Functions | |||
Parsing a column | Excel Worksheet Functions | |||
TypeLib Information Problem? Pass a Function's parameter names as string for parsing? | Excel Programming | |||
Parsing Full Names of varying lenths and parts | Excel Programming |