Discussion Locked

Excel - Merging columns of text

0 helpful
8 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I have a worksheet of 3 columns of data: Title, First Name, Last Name. How can I merge these columns so that I have one column that contains all 3 fields, i.e Mr John Smith.

I know that you can parse text in the opposite direction to seperate names into different columns (using text to columns) but cannot find a way to do this in reverse.

Many thanks

Graham

8 replies

by tamj123

you can used CONCATENATE funcation to join several columns into one.
example:
columns a1 : Mr/Mrs
columns b2 : abc
columns c3 : xyz
columns d4 : =CONCATENATE(a1,b2,c3))
result: Mr/Mrs abcxyz

by dklippert

CONCATENATE is the answer, but you'll also want to insert spaces. Use the "&" operator.
=A1&" "&A2&" "&A3

by bill_h

There are a couple of ways to do this. First, (as previously mentioned), you can use the CONCATENATE function, and specify the cells to include.

The second approach is to use the concatenate operator, which is the ampersand (&). For example:

Cell A1: Robert
Cell B1: A.
Cell C1: Thomas

Place the following formula into cell D1:

=A1 & " " & B1 & " " & C1

D1 will now ontain the string "Robert A. Thomas". The inclusion of " " in the formula inserts a space (or whatever you includebetween the quotes) between the values of the cells specified.

It should be noted the previous answer would actually result in a string equal to "Mr/Mrsabcxyz". If you want the cell values to be separated by a space or other character(s), you will have to include them in the CONCATENATE function as well - unless you are *certain* that the cells *always* contain a trailing space, or your intention is to have the cell contents merged with no intervening value.

by bill_h

Didn't see answer #2 when I posted - so the reference to the *previous answer* resulting in "Mr/Mrsabcxyz" actually refers to answer #1...

This discussion is closed to new replies.