Separate names into 2 columns?

L

Ltat42a

I have a column of names (first & last name). Is it possible to separate
them into two columns - 1 column for first name, next column for last
name?

Thanx...JF
 
G

Guest

I don't know if it is appropriate to bogart onto someone else's post but is
it possible to do this in reverse. That is take first and last name or First
name, spouse first name and Last name information from separate columns and
combine it into one column ie John & Jane Smith or John Smith
 
G

Gord Dibben

John in A1

Jane in B1

Smith in C1

In D1 enter =A1 & " & " & B1 & " " & C1

Returns John & Jane Smith


Gord Dibben Excel MVP
 
G

Guest

The purpose is to print a mailing label when
A1 is the first name
B1 is either the spouse first name or blank (if no spouse)
C1 is the last name

the IF statement simply determines if the ampersand (&) needs to be printed
by determining if the spouse name is blank. Therefore you get either "John &
Jane Smith" or "John Smith" but not "John & Smith"

I used =IF(B2>0,A2 & " & " &B2 &" "& C2,A2 & " "& C2)
 
G

Gord Dibben

Gotcha.

Thanks for the explanation. I now see's the purpose of the IF and the glaring
error of my not error trapping.


Gord

The purpose is to print a mailing label when
A1 is the first name
B1 is either the spouse first name or blank (if no spouse)
C1 is the last name

the IF statement simply determines if the ampersand (&) needs to be printed
by determining if the spouse name is blank. Therefore you get either "John &
Jane Smith" or "John Smith" but not "John & Smith"

I used =IF(B2>0,A2 & " & " &B2 &" "& C2,A2 & " "& C2)
 
D

David McRitchie

Even though you got more complicated but solved problem with the ampersand,
you might still be interested in macros to join or to split columns
and some others that might also be useful in preparing data for Mail Merge.
JOIN, SepTerm, SepLastTerm, firstname, lastname, fixUSzip5
http://www.mvps.org/dmcritchie/excel/join.htm

Also have a page on printing labels with Mail Merge
http://www.mvps.org/dmcritchie/excel/mailmerg.htm


Ineluctable said:
The purpose is to print a mailing label when
A1 is the first name
B1 is either the spouse first name or blank (if no spouse)
C1 is the last name

the IF statement simply determines if the ampersand (&) needs to be printed
by determining if the spouse name is blank. Therefore you get either "John &
Jane Smith" or "John Smith" but not "John & Smith"

I used =IF(B2>0,A2 & " & " &B2 &" "& C2,A2 & " "& C2)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top