Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 16
Default Separate names into columns

I have a column that has first and last name or it may have first, middle and
last name. I need to know how to pull the first name in a separate column
and also pull the last name into another column. I need to know how to
ignore the middle name, if applicable.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Separate names into columns

Try this:

First name:
=LEFT(A1,FIND(" ",A1)-1)

Last name:
=TRIM(RIGHT(SUBSTITUTE(A1," ",REPT(" ",99)),99))



"Carter" wrote:

I have a column that has first and last name or it may have first, middle and
last name. I need to know how to pull the first name in a separate column
and also pull the last name into another column. I need to know how to
ignore the middle name, if applicable.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default Separate names into columns

Bit lengthy to handle entries with first names alone...

First name ()
=LEFT(A12,FIND(" ",A12 & " ")-1)

Last name
=IF(ISERROR(FIND(" ",A12)),"",TRIM(RIGHT(SUBSTITUTE(A12," ",REPT("
",99)),99)))

If this post helps click Yes
---------------
Jacob Skaria


"Carter" wrote:

I have a column that has first and last name or it may have first, middle and
last name. I need to know how to pull the first name in a separate column
and also pull the last name into another column. I need to know how to
ignore the middle name, if applicable.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 16
Default Separate names into columns

This worked perfectly. Thanks! Shelia

"Teethless mama" wrote:

Try this:

First name:
=LEFT(A1,FIND(" ",A1)-1)

Last name:
=TRIM(RIGHT(SUBSTITUTE(A1," ",REPT(" ",99)),99))



"Carter" wrote:

I have a column that has first and last name or it may have first, middle and
last name. I need to know how to pull the first name in a separate column
and also pull the last name into another column. I need to know how to
ignore the middle name, if applicable.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Separate First, Last Names BStacy Excel Discussion (Misc queries) 2 April 7th 09 06:44 PM
Need Excel formula to separate names into columns, with exceptions intuishawn Excel Discussion (Misc queries) 4 August 27th 07 04:31 PM
Names and Separate Worksheets Memento Excel Worksheet Functions 4 May 9th 07 01:20 AM
I wish to separate city, state, and zip into 3 separate columns Bob Woolbert Excel Worksheet Functions 1 July 11th 06 05:29 PM
Separate names into 2 columns? Ltat42a Excel Discussion (Misc queries) 8 December 11th 05 09:06 PM


All times are GMT +1. The time now is 08:28 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"