Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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 |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Need help breaking apart a formula | Excel Discussion (Misc queries) | |||
breaking links | Excel Discussion (Misc queries) | |||
Breaking the link | New Users to Excel | |||
Breaking a Cell | Excel Worksheet Functions | |||
Breaking apart first and last names | Excel Discussion (Misc queries) |