TechRepublic : A ZDNet Tech Community

Microsoft Office

Host: Susan Harkins
Contact

Use Excel's Text To Columns command to separate first and last names

If you need to split a list of names into two columns, you don’t have to do it manually. See how this Excel wizard can quickly knock out the task for you.


Note: This article is also available as a PDF download.

When importing data into a worksheet, it is often necessary to separate the cell contents into two columns. For example, say you’ve imported the list of names shown in Figure A.

Figure A

For your mailing program, you need to separate the first and last names into two columns. Follow these steps:

  1. Select A2:A10.
  2. Go to Data | Text To Columns. In Excel 2007, click the Data tab and then click the Text To Columns command in the Data Tools group.
  3. In Step 1 of the Convert Text To Columns Wizard, click Delimited (Figure B).

Figure B

  1. Click Next to advance to Step 2 of the wizard, then select the Space check box and clear the Tab check box in the Delimiters section (Figure C).

Figure C

  1. Click Next to advance to Step 3, then click Text under Column Data Format (Figure D).

Figure D

  1. Click on the second column in the Data Preview window and then click Text under Column Data Format (Figure E).
  2. Enter D2 in the Destination text box and click Finish.

Figure E

Figure F shows the results.

Figure F


Miss an Excel tip?

Check out the Microsoft Excel archive and catch up on other Excel tips.

Help users increase productivity by automatically signing up for TechRepublic’s free Microsoft Office Suite newsletter, featuring Word, Excel, and Access tips, delivered each Wednesday.

Print/View all Posts Comments on this blog

Can't view Figures Harry Hardin | 01/28/09
Can't see figures nmancino@... | 01/28/09
Not in FF3 either. No text. Palmetto | 01/28/09
No figures displayed in the article b.schilling@... | 01/28/09
How To's jrnesbit@... | 01/29/09
Look at the pdf natalie@... | 02/02/09
Folks boxfiddler | 01/28/09
URL does not work etruss@... | 01/28/09
The URL goes where I meant it to go. boxfiddler | 01/28/09
Really? etruss@... | 01/28/09
That's the discussion I linked to. boxfiddler | 01/29/09
Can't see Figure pics either! Louiezmum | 01/28/09
Missing thezar | 01/28/09
Still nothing Solenade@... | 01/29/09
Graphics not visible mart@... | 01/30/09
Hell week at TR... JodyGilbertTechrepublic Moderator | 01/30/09
Where is the PDF link?? jhnhth@... | 02/01/09
URL MESSED UP cancan2@... | 02/02/09
Note: This article is also available as a PDF download. jptess676@... | 02/20/09
RE: Use Excel catherineshields3@... | 01/28/09
Use Right() with Rev to get only Last Name carbondog | 01/28/09
No figures and name reversal roberte.cox@... | 01/30/09
Using Text to Columns for compound names mwb78 | 01/28/09
Can not see the figures masters1 | 01/28/09
Compound names issue fgagnon@... | 01/28/09
RE: Compound names issue Katsi | 01/28/09
workarounds fgagnon@... | 01/28/09
Qualifiers are too much work ... but here's another cure heavener@... | 01/28/09
More Complex Compound Names mfarlie | 01/28/09
Take what you can get! DBlayney | 01/30/09
RE: Use Excel LannieC | 01/28/09
RE: Use Excel fcinco@... | 01/28/09
Can not see Figures either :( tws777@... | 01/28/09
RE: Use Excel Aaron.Kee@... | 01/28/09
RE: Use Excel atobun@... | 01/28/09
Old News milleroutfitters | 01/28/09
RE: Use Excel jccharles@... | 01/28/09
RE: Use Excel judiparks@... | 01/28/09
No Images Reported to Host Soumi | 01/28/09
No images Joslyn.Pribble@... | 01/28/09
RE: Use Excel smcnealy@... | 01/28/09
RE: Use Excel gianni_migliorini@... | 01/28/09
RE: Use Excel JARiehle | 01/28/09
It works well in Excel 2003 smcnealy@... | 01/28/09
RE: Use Excel arstemmer@... | 01/28/09
RE: Use Excel yajanssen@... | 01/28/09
Can't see the examples conceptual | 01/28/09
I love text-to-columns heavener@... | 01/28/09
Good tips! Here's another Glenn from Iowa | 01/28/09
RE: Use Excel martha_akalu@... | 01/28/09
RE: Use Excel edlopezpr@... | 01/28/09
Is any one monitoring this? mitchet3@... | 01/28/09
Obviously, no one from CNET/TR is monitoring this Mr. Content | 01/29/09
Obviously you boxfiddler | 01/30/09
RE: Use Excel carlosarce@... | 01/28/09
RE: Use Excel kberkus@... | 01/28/09
Can't see figures either anne1784@... | 01/28/09
Please re-post lcrocilla@... | 01/28/09
Can't see the illustrations for the article blipso@... | 01/28/09
RE: Use Excel kz2000@... | 01/28/09
RE: Use Excel nmihai67@... | 01/28/09
RE: Use Excel len.clerke@... | 01/29/09
RE: Use Excel yolanda.peterson@... | 01/29/09
RE: Use Excel kim.beu@... | 01/29/09
cant see images eduardo (PT) | 01/30/09
RE: Use Excel scrmh@... | 01/30/09
RE: Use Excel mariel.souza@... | 01/30/09
Virtually no one can see the figures. boxfiddler | 01/30/09
RE: Use Excel jhlearmonth@... | 01/31/09
Good grief. b2b-gallery-tools.cnet.com is down seanferd | 02/01/09
Can't view images. boxfiddler | 02/02/09
Me neither santeewelding | 02/02/09
Use the PDF. The images are there. Soumi | 02/04/09
RE: Use Excel lewruss@... | 02/11/09

What do you think?

White Papers, Webcasts, and Downloads

Recent Entries

TR on Twitter

Archives

TechRepublic Blogs



Administrator's Guide to TCP/IP, Second Edition
Maintain your critical TCP/IP system and ensure reliable, safe remote access. Get the expert advice and solutions to handle Windows networking, Cisco routing, documentation, and troubleshooting.
Buy Now
Quick Reference: Linux Commands
Reduce stress and speed up resolutions with the easiest command references right at your fingertips. You'll receive a PDF file covering Linux, packed with the most common commands you'll need and use daily.
Buy Now

SmartPlanet

Click Here