Link to home
Start Free TrialLog in
Avatar of Montana Man
Montana ManFlag for United States of America

asked on

Excel

In Excel 2010 i have a colum that has names like Mike, Mike E. Mike E. Jones, etc  i would like to strip off everything after a space, if a space does not exsist to use what is in there.  
Robert  F
Michael E.  "Mike"
Maryeann
Stephen

So in this example it would return a Robert, Michael, Maryeann, Stephen in the new column.  Also, I want to combine 3 columns into one new one only using the first 4 characters in the last column.  Example:
Bolan      Jared      19890705

So the new column would contain: bolanJared1989
Avatar of dlmille
dlmille
Flag of United States of America image

If your names are in column a, starting in A2, you can strip off everything space and after using:

=LEFT(A2,IFERROR(FIND(" ",A2)-1,LEN(A2)))

and copy down

Dave
Avatar of Montana Man

ASKER

Perfect for the part of the question, how about the second?  Thanks!!
ASKER CERTIFIED SOLUTION
Avatar of dlmille
dlmille
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial