Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JCM JCM is offline
external usenet poster
 
Posts: 9
Default breaking a field out

I have a column of cells that all have a last name followed by a comma and
then a first name. I need to have the last name in one column and the first
name in another. Is there a formula that will take the value of everything
up to the comma and put it in another column regardless of the length of the
name.

Example:
Column A Column B Column C
Smith, Robert Smith Robert
Washington, George Washington George
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,069
Default breaking a field out

In column B (for last name):
=LEFT(A1,FIND(",",A1)-1)

In column C (for first name):
=RIGHT(A1,LEN(A1)-FIND(",",A1))

Adjust the row if necessary and copy down as needed.

Hope this helps,

Hutch

"JCM" wrote:

I have a column of cells that all have a last name followed by a comma and
then a first name. I need to have the last name in one column and the first
name in another. Is there a formula that will take the value of everything
up to the comma and put it in another column regardless of the length of the
name.

Example:
Column A Column B Column C
Smith, Robert Smith Robert
Washington, George Washington George

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default breaking a field out

Data Text to Columns Delimited Next Comma Next Finish


"JCM" wrote:

I have a column of cells that all have a last name followed by a comma and
then a first name. I need to have the last name in one column and the first
name in another. Is there a formula that will take the value of everything
up to the comma and put it in another column regardless of the length of the
name.

Example:
Column A Column B Column C
Smith, Robert Smith Robert
Washington, George Washington George

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 100
Default breaking a field out

Hi,

You could also use Data, Text to columns, and select comma as the separator.


Dave

url:http://www.ureader.com/msg/104241296.aspx
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
Need help breaking apart a formula hg Excel Discussion (Misc queries) 3 December 13th 07 10:02 PM
breaking links Pammy Excel Discussion (Misc queries) 1 September 20th 07 05:58 PM
Breaking the link T New Users to Excel 1 May 4th 05 10:37 PM
Breaking a Cell Santosh Budalakoti Excel Worksheet Functions 1 December 28th 04 05:58 AM
Breaking apart first and last names LyndieBee Excel Discussion (Misc queries) 2 December 2nd 04 09:00 PM


All times are GMT +1. The time now is 08:43 PM.

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"