If you have text in two or more columns that you wish to join (concatenate) in another column, this can be easily done by creating a formula that utilizes the ampersand (&). I have found this to work in Microsoft Excel, OpenOffice’s Calc, and iWork’s Numbers.

For our example, we will use a scenario where a list of users’ first and last names are given to you and your boss wants them to be in a single column instead of two.

concat_1.jpg

You could take the time to copy and paste the names together in a column, but there is a much easier way. We can go to C2 and input the formula: =A2&” “&B2 we would then get the concatenated string of Bob Smith in the new cell.

concat_2.jpg

We could use =B2&”, “&A2 and produce Smith, Bob in the new cell.

concat_3.jpg

Copy the formula to the rest of the cells in the column to concatenate the desired cells.

12 Responses to “How to Concatenate Text in a Spreadsheet”

  1. admin Says:

    Very cool. I always have to look this up. Will bump this up to the front page so everybody can enjoy.

  2. Tor Says:

    Cool, but how do you split a cell in two?

  3. Kousik Says:

    @Tor
    In order to split a cell (or group of cells) containing some text(s)in a single column
    1. Select the cells in the column,
    2. In the menu bar: click at ‘Data’ and then select ‘Text to columns’
    3. Choose the criteria how you want to distribute the text in two columns (this page is self-explanatory!)
    4. Click OK and voila!

    Keep in mind that you can do it column-wise only.

  4. shamanstears Says:

    @Kousik Thanks for the tip, although you cost me my next blog post on the subject. :)

  5. microsoft excel Says:

    […] this can be easily done by creating a formula that utilizes the ampersand &amp. I have found thishttp://blogs.tech-recipes.com/shamanstears/2008/06/10/how-to-concatenate-text-in-a-spreadsheet/Microsoft Sues Clearwater Store Over Pirated Software The Tampa TribuneMicrosoft Corp. has filed a […]

  6. balatv44 Says:

    It is very useful article. I am using excell for the past 20 years for preparing MIS. This is a very useul tips. Thanks once again.

  7. Rajshekar Says:

    No, it did not work for me.

  8. Me Says:

    Don’t forget to copy the contents of column c then click “edit”, “paste special”, “values” into column d. Otherwise whenever you change/delete any info in a or b, your data in c is manipulated. (You can then delete c all together if desired)

  9. nudel Says:

    That was exactly the way I solved the problem… until I learned of the CONCATENATE function! :)

    So, for the two examples in the original post above, you would enter:

    Eg 1.
    =CONCATENATE(A2,” “,B2)

    Eg 2.
    =CONCATENATE(B2,”, “,A2)

    @Kousik
    Thanks, I never knew you could do that! Just like ‘text-to-table’ in Word really! :)

    — rc;)

  10. excel text to column Says:

    […] this can be easily done by creating a formula that utilizes the ampersand &amp. I have found thishttp://blogs.tech-recipes.com/shamanstears/2008/06/10/how-to-concatenate-text-in-a-spreadsheet/Excel Joining Two Text Columns First Name Last Name with ConcatenationAn excel formula to join two […]

  11. excel formula Says:

    […] the ampersand &amp. I have found this to work in Microsoft Excel, OpenOffice??s Calc, and iWork?http://blogs.tech-recipes.com/shamanstears/2008/06/10/how-to-concatenate-text-in-a-spreadsheet/Microsoft Excel : Formula editing improvements Part 3: new functionsIn addition to improving the […]

  12. serdarb Says:

    very nice post…

Leave a Reply