View Single Post
  #8   Report Post  
Posted to microsoft.public.excel.misc
Gord Dibben
 
Posts: n/a
Default Separate names into 2 columns?

Gotcha.

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


Gord

On Tue, 6 Dec 2005 16:32:02 -0800, "Ineluctable"
wrote:

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(B20,A2 & " & " &B2 &" "& C2,A2 & " "& C2)

"Gord Dibben" wrote:

?????

Gord

On Tue, 6 Dec 2005 13:56:04 -0800, "Ineluctable"
wrote:

Add in an IF statement and it works like a charm all in one column.

Thanks

"Gord Dibben" wrote:

John in A1

Jane in B1

Smith in C1

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

Returns John & Jane Smith


Gord Dibben Excel MVP

On Tue, 6 Dec 2005 12:16:03 -0800, "Ineluctable"
wrote:

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

"Hernandez, Roberto" wrote:

Yes.
Use the Menu Data-- Text to columns wizard....
And voila!

"Ltat42a" escribió en
el mensaje ...

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


--
Ltat42a
------------------------------------------------------------------------
Ltat42a's Profile:
http://www.excelforum.com/member.php...o&userid=24735
View this thread: http://www.excelforum.com/showthread...hreadid=490866