Solved

# Separate date in Excel Field

Posted on 2014-01-15
290 Views
I have a field in Excel that has both first name and last name separated by a space. I would like to pull out only the first name into a new column. Is there a formula that will do this?

Here is what the data looks like:
Joe Smith
Randy Roberts
Carl Heinz
Harold Harrison
0
Question by:Mark Grondin

LVL 3

Expert Comment

ID: 39784310
Select the data you want to modify --> Select the Data tab --> select Text to columns --> Select delimited --> Next --> Select "Space" only --> Select Finish
0

LVL 49

Assisted Solution

Rgonzo1971 earned 250 total points
ID: 39784563
Hi,

the formula would be

``````=LEFT(A1,FIND(" ",A1)-1)
``````
and for the last name if first name is in B1
``````=RIGHT(A1,LEN(A1)-LEN(B1)-1)
``````
Regards
0

LVL 3

Accepted Solution

Sreeram earned 250 total points
ID: 39784712
Try This :

=IFERROR(LEFT(F10,FIND(" ",F10)-1),F10)
0

LVL 5

Author Comment

ID: 39786568
Thank you for your help. =IFERROR(LEFT(F10,FIND(" ",F10)-1),F10) helped me deal with the exceptions, and I ended up using both the codes for first and last names (adding the "IFERROR" function to the lastname funciton suggested). I also returned a blank instead of the original contents of the cell, so my final functions I used are:
first name: =IFERROR(LEFT(L2,FIND(" ",L2)-1),"")
last name: =IFERROR(RIGHT(L2,LEN(L2)-LEN(V2)-1),"")

Wasn't exactly sure how to use the first recommendation, so I can not confirm how it works.

0

LVL 5

Author Comment

ID: 39786578
Requested help to get the points correctly divided...
0

## Featured Post

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

### Suggested Solutions

Drop Down List with Unique/Distinct Values (Part II - ComboBox or ListBox and Data Validation List Bonus!) David Miller (dlmille) Intro This article focuses on delivering unique, sorted lists to list objects (e.g., ComboBox, ListBox) and Dat…
Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.