Excel 2010 All-in-One For Dummies
Book image
Explore Book Buy On Amazon

In Excel 2010, you can use the ampersand (&) operator to concatenate (or join) separate text strings together. For example, in a client list worksheet that includes the last names in column A and the first names in column B, you could use this operator to join together the first and last names into a single entry (with the first and last names separated by a space) in column C. Refer to the example in the following figure.

This worksheet lists the last and first names of clients in separate columns.
This worksheet lists the last and first names of clients in separate columns.

To join the first name entry in cell B3 with the last name entry in cell A3, you enter the following formula in cell C3:

=B3&" "&A3

Notice the use of the double quotes in this formula. They enclose a blank space that is placed between the first and last names. If you don't include this space in the formula and just join the first and last names together with this formula:

=B3&A3

Excel would return ChristopherAiken to cell C3, all as one word.

After entering the concatenation formula that joins the first and last names in cell C3 separated by a single space, you can then drag the Fill handle (the bottom-right corner of the cell) in cell C3 down to cell C17 to copy the formula and join all the other client names in a single cell in column C.

Worksheet after concatenating the first and last names in column C.
Worksheet after concatenating the first and last names in column C.

After the original concatenation formula is copied down the rows of column C, you can copy the selected cell range C3:C17 to the Clipboard by clicking the Copy button in the Clipboard group of the Home tab, and then immediately click the Paste Values option on the Paste command button's drop-down menu on the Home tab. This pastes calculated text values over the concatenation formulas, thereby replacing the original formulas. The result is a list of first and last names together in the same cells in the range C3:C17.

About This Article

This article is from the book:

About the book author:

Greg Harvey, PhD, is president of Mind Over Media, Inc. He is the author of all editions of Excel For Dummies, Excel All-in-One For Dummies, Excel Workbook For Dummies, and Windows For Dummies Quick Reference. He's also an experienced educator.

This article can be found in the category: