General discussion

  • Creator
    Topic
  • #2092617

    Excel – Merging columns of text

    Locked

    by graham.moody ·

    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

All Comments

  • Author
    Replies
    • #3869571

      Excel – Merging columns of text

      by tamj123 ·

      In reply to Excel – Merging columns of text

      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

    • #3869556

      Excel – Merging columns of text

      by dklippert ·

      In reply to Excel – Merging columns of text

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

    • #3869553

      Excel – Merging columns of text

      by bill_h ·

      In reply to Excel – Merging columns of text

      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.

    • #3871003

      Excel – Merging columns of text

      by graham.moody ·

      In reply to Excel – Merging columns of text

      This question was closed by the author

Viewing 3 reply threads