ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   unconcatenate? (https://www.excelbanter.com/excel-discussion-misc-queries/44940-unconcatenate.html)

Patty via OfficeKB.com

unconcatenate?
 
I have over a thousand cells with last name,first name. I want two different
cells with last name in one and first name in the other (minus the comma).
Any ideas? (no VB please!)

Thanks.


--
Message posted via http://www.officekb.com

Patty via OfficeKB.com

Actually, I don't have a comma. It's just LastName FirstName MiddleInitial
all separated by spaces


Patty wrote:
I have over a thousand cells with last name,first name. I want two different
cells with last name in one and first name in the other (minus the comma).
Any ideas? (no VB please!)

Thanks.



--
Message posted via http://www.officekb.com

Anne Troy

Hi, Patty. See Data--Text to Columns about 1/3rd down the page he
http://www.officearticles.com/tutori...soft_excel.htm
************
Anne Troy
www.OfficeArticles.com



"Patty via OfficeKB.com" wrote in message
...
Actually, I don't have a comma. It's just LastName FirstName MiddleInitial
all separated by spaces


Patty wrote:
I have over a thousand cells with last name,first name. I want two
different
cells with last name in one and first name in the other (minus the comma).
Any ideas? (no VB please!)

Thanks.



--
Message posted via http://www.officekb.com




David Hepner

Try this:

Assuming the name is in cell A1:

B1 =LEFT(A1,FIND(",",A1,1)-1)
C1 =RIGHT(A1,LEN(A1)-FIND(",",A1,1)-1)


"Patty via OfficeKB.com" wrote:

I have over a thousand cells with last name,first name. I want two different
cells with last name in one and first name in the other (minus the comma).
Any ideas? (no VB please!)

Thanks.


--
Message posted via http://www.officekb.com


David Hepner

This relpy is for Lastname, Firstname.

"David Hepner" wrote:

Try this:

Assuming the name is in cell A1:

B1 =LEFT(A1,FIND(",",A1,1)-1)
C1 =RIGHT(A1,LEN(A1)-FIND(",",A1,1)-1)


"Patty via OfficeKB.com" wrote:

I have over a thousand cells with last name,first name. I want two different
cells with last name in one and first name in the other (minus the comma).
Any ideas? (no VB please!)

Thanks.


--
Message posted via http://www.officekb.com


Mike

Dump it into Word. Convert table to text. Convert text to table and use a
space as the separator then dump to excel

"Patty via OfficeKB.com" wrote:

I have over a thousand cells with last name,first name. I want two different
cells with last name in one and first name in the other (minus the comma).
Any ideas? (no VB please!)

Thanks.


--
Message posted via http://www.officekb.com


Dave Peterson

How about just selecting the column
data|text to columns
delimited
by space

(leave enough room to the right to accept all your fields)

"Patty via OfficeKB.com" wrote:

I have over a thousand cells with last name,first name. I want two different
cells with last name in one and first name in the other (minus the comma).
Any ideas? (no VB please!)

Thanks.

--
Message posted via http://www.officekb.com


--

Dave Peterson

Myrna Larson

Text-to-columns will fill the bill as long as ALL cells include three parts.
If, in some, the middle initial is missing, for those rows, you'll end up with
the last name in the column intended for the middle initial.

If this is a problem, you can perhaps solve it quickly by sorting on the 3rd
column (should be the last name). Those with no last name will go to the
bottom of the list. For those rows, you can then insert cells between the
first and last names, to provide for the blank middle initial

On Mon, 12 Sep 2005 11:36:23 -0400, "Anne Troy" wrote:

Hi, Patty. See Data--Text to Columns about 1/3rd down the page he
http://www.officearticles.com/tutori...soft_excel.htm
************
Anne Troy
www.OfficeArticles.com



"Patty via OfficeKB.com" wrote in message
...
Actually, I don't have a comma. It's just LastName FirstName MiddleInitial
all separated by spaces


Patty wrote:
I have over a thousand cells with last name,first name. I want two
different
cells with last name in one and first name in the other (minus the comma).
Any ideas? (no VB please!)

Thanks.



--
Message posted via http://www.officekb.com



Myrna Larson

Oops... I missed the part of your original message where you describe the data
order. My first reply was based on the erroneous assumption that it was First
MI Last (which is a more common situation when all data is in one cell with no
comma delimiter).

Since the order is Last First MI, a row without a middle initial is not a
problem.

On Mon, 12 Sep 2005 13:26:59 -0500, Myrna Larson
wrote:

Text-to-columns will fill the bill as long as ALL cells include three parts.
If, in some, the middle initial is missing, for those rows, you'll end up

with
the last name in the column intended for the middle initial.

If this is a problem, you can perhaps solve it quickly by sorting on the 3rd
column (should be the last name). Those with no last name will go to the
bottom of the list. For those rows, you can then insert cells between the
first and last names, to provide for the blank middle initial

On Mon, 12 Sep 2005 11:36:23 -0400, "Anne Troy"

wrote:

Hi, Patty. See Data--Text to Columns about 1/3rd down the page he
http://www.officearticles.com/tutori...soft_excel.htm
************
Anne Troy
www.OfficeArticles.com



"Patty via OfficeKB.com" wrote in message
...
Actually, I don't have a comma. It's just LastName FirstName MiddleInitial
all separated by spaces


Patty wrote:
I have over a thousand cells with last name,first name. I want two
different
cells with last name in one and first name in the other (minus the comma).
Any ideas? (no VB please!)

Thanks.


--
Message posted via http://www.officekb.com




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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com