splitting text in cells
Microsoft Office Training verified by visa - mastercard securecode about microsoft training company london ukadd this page to your favourites/bookmarksAdd to favourites
view a printable version of this pagePrintable version
email this page to somebodyEmail this page
Customer: Sign in
Delegate: Sign in
Trainer: Log in

Forum home » Delegate support and help forum » Microsoft Excel Training and help » Splitting Text In Cells

Splitting Text In Cells

The UK's most regular instructor-led training courses.
Training information: excel computer course london · Advanced.excel · Microsoft Excel Training
See also · excel-courses-london · excel courses in london · excel microsoft training

resolvedResolved · Low Priority · Version Standard

Splitting Text In Cells

Julia has attended:
Excel Consulting course

by - delegate Julia [1 post] (2008 Feb 28 Thu, 13:42) replyReply

Hi

I have a column containing peoples full names eg Julia Foster.

How can I split these into first and last names in adjacent cells.

Julia

Excel Advanced 1 day course
Version Date Location Places
available
Book Next place rate:
Card Invoice
2003/XP 2008 Aug 22 Fri Bloomsbury 1 book now £235 £240
2003/XP 2008 Aug 22 Fri Bayswater 2 book now £195 £205
2003/XP 2008 Aug 29 Fri Southwark 4 book now £224 £235
2003/XP 2008 Sep 3 Wed Bloomsbury 6 book now £214 £230
2003/XP 2008 Sep 5 Fri Bayswater 4 book now £195 £205
2003/XP 2008 Sep 10 Wed Tooting 0 FULL    
Full Schedule: See all 129 Excel Advanced course dates.
Bookings currently available until 24th November 2009.

RE: Splitting Text In Cells

by - trainer Carlos gold contributer[391 posts] (2008 Feb 29 Fri, 12:37) replyReply

Hi Julia

To split a a persons full name in a cell use the following code:

If the Name is in cell A1 then enter code as followis in the adjacent cells:

In B1 enter =LEFT(A1,FIND(" ",A1)-1)

The LEFT function returns all characters in a string starting from the left to a defined number.

The FIND function returns the position of the space. This indicates to the LEFT function how many characters to display

By placing the -1 after the bracket we are telling the LEFT function to return the first name BUT NOT include the Space.

In C1 enter =MID(A2,FIND(" ",A2)+1,100)

The MID function returns all characters in a string starting from a predefined position in a string.

The FIND function returns the position of the space. This indicates to the MID function from where to start displaying the rest of the text.

By placing the +1 after the bracket in the middle section we are telling the MID function to return the last name BUT NOT include the Space. The 100 is to indicate how far to display the text. It allows for a very long name.

I have attached a spreadsheet as an example.

Hope this helps

Carlos

Attached files...

Split Names into two cells.xls


Related articles

· Microsoft Excel Cheat Sheet: Tips and Shortcuts
· How to Create Better Excel Spreadsheets: Part Four
· Microsoft Excel Training: Not Just for Newbies Anymore
· An Introduction to Microsoft Excel: Top Features for the Excel Novice
· Crazy Things People Have Done With Excel

Please browse our web site to find out more about
excel computer course london and other Microsoft training courses.

Excel tip:

Quickly insert a function

In Excel 97 and 2000 it was known as the Paste Function dialog box, these days it's known as the Insert Function dialog box. Regardless, one has to choose Insert|Function. or the fx button to open it up. There is, however, a non-mousey way to get hold of the Insert Function dialog box: press Shift+F3 in a blank cell to open the Insert Function dialog.

Press Shift+F3 after a function name and open bracket to open the Function Arguments dialog. For example, type =VLOOKUP( into a cell and press Shift+F3 to obtain a detailed description of VLOOKUP's arguments.

View all Excel hints and tips

Institute of IT Training - Accredited Training Provider Institute of IT Training - Accredited Training Provider Prodigy Platinum Learning Partner Microsoft Office Specialist Authorised Testing Centre

Microsoft Registered Partner
microsoft office
ms office project server

Association of Computer Trainers Valid HTML 4.01 Transitional
Valid CSS Markup

secure online payments - visa - mastercard

Mini sitemap. These are the main areas of our web site. Full sitemap.

Training by application Main information pages See also

Access courses
DreamWeaver courses
Excel courses
MS Project courses
Outlook courses
PowerPoint courses
VBA courses
Word courses
(more...)

Public scheduled courses
On-site training
Closed company courses

Microsoft Office training
Pricing and availability
Training schedule
Training venues

Access training
Dreamweaver training
Excel training
MS Project training
PowerPoint training

London Computer Training
Computer Training London

Microsoft Access training
Microsoft Excel training
Microsoft Project training
Microsoft Outlook training
Microsoft Powerpoint training
Microsoft Word training

Time Management Course London

Interested in Access training? Please see the following pages:
microsoft access courses · microsoft training access course
microsoft+access+training · access courses in london

Training Information
AddThis Social Bookmark Button What's this?
Add to Del.icio.us Add to Facebook Add to Digg Add to Reddit Add to Google Add to Yahoo Add to Diigo Add to Mr. Wong Add to Linkarena Add to Power Oldie Add to Folkd Add to Jumptags Add to Upchuckr Add to Simpy Add to StumbleUpon Add to Slashdot Add to Netscape Add to Furl Add to Spurl Add to Blinklist Add to Blogmarks Add to Technorati Add to Newsvine Add to Blinkbits Add to Ma.Gnolia Add to Smarking Add to Netvouz