![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Mar 2002
Posts: 1
|
Hi.
I am really hoping someone can help me with this one. I've used a Concatenate function before to join first and last names together into one cell, now I need to do the opposite. Wherever there is a space used within a cell, I want the program to recognise it and move the next word into a separate cell. Most values I have are First and Last Name ie. John Smith. But some are initials and names ie. J M Smith. Can someone please tell me how to divide text strings? Thanks in advance |
|
|
|
|
|
#2 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,319
|
Quote:
=SUBSTITUTE(A2,C2,"") In C2 enter: =RIGHT(A2,LEN(A2)-SEARCH("@",SUBSTITUTE(A2," ","@",LEN(A2)-LEN(SUBSTITUTE(A2," ",""))))) Aladin |
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|