+ Reply to Thread
Results 1 to 2 of 2

Merge and line break added.. How To?

  1. #1
    Registered User
    Join Date
    05-06-2004
    Posts
    1

    Merge and line break added.. How To?

    I need assistance with excel. I need to merge a list of names that are in different cells.. I figured that out.. =a1&" "&c1 etc... but I need to have each listing appear on a different line.. within the SAME Cell... like the following.... this is a list of thousands of names.

    Bob
    Smith
    Agent
    South Carolina

    what I have appearing is:

    Bob Smith Agent South Carolina.

    Please let me know of any suggestions you might have.

  2. #2
    Forum Expert swatsp0p's Avatar
    Join Date
    10-07-2004
    Location
    Kentucky, USA
    MS-Off Ver
    Excel 2010
    Posts
    1,545
    You need to insert a "Line Feed" after each segment. A Line Feed is signified by the value: CHAR(10). You must also turn on WordWrap in affected cells.

    Your formula would look like this:

    where your data is in A1:D1
    -----A--------B-----------C-----------------D-----------
    1 | Bob | Smith | Agent | South Carolina |

    =A1&CHAR(10)&B1&CHAR(10)&C1&CHAR(10)&D1

    will end up being:

    Bob
    Smith
    Agent
    South Carolina

    Again, make sure WordWrap is turned on (Format>Cells>Alignment>WordWrap checked)

    Copy and paste this formula as needed.

    Good Luck

    Bruce
    Bruce
    The older I get, the better I used to be.
    USA

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1