?
Solved

Separate date in Excel Field

Posted on 2014-01-15
6
Medium Priority
?
305 Views
Last Modified: 2014-01-20
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
Comment
Question by:Mark Grondin
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 3

Expert Comment

by:CraigFrost
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 52

Assisted Solution

by:Rgonzo1971
Rgonzo1971 earned 1000 total points
ID: 39784563
Hi,

the formula would be

=LEFT(A1,FIND(" ",A1)-1)

Open in new window

and for the last name if first name is in B1
=RIGHT(A1,LEN(A1)-LEN(B1)-1)

Open in new window

Regards
0
 
LVL 3

Accepted Solution

by:
Sreeram earned 1000 total points
ID: 39784712
Try This :

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

Author Comment

by:Mark Grondin
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.

Thanks for your help!
0
 
LVL 5

Author Comment

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

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question