+ Reply to Thread
Results 1 to 8 of 8

Combine 2 cells with line breaks in each of them and keep line break formatting?

  1. #1
    Registered User
    Join Date
    08-05-2014
    Location
    new york
    MS-Off Ver
    13
    Posts
    4

    Combine 2 cells with line breaks in each of them and keep line break formatting?

    I've been driving myself crazy trying to solve this. Im trying to combine 2 cells that both have text on multiple lines separated by line breaks. I want to keep the formatting so that when both cells are combined, line one from cell 1 and line 1 from cell 2 are on the same line in the new combined cell. This is easy to do when there is only 1 line in each cell but how do you do this for cells with multiple lines? Here is an example of what I am trying to do:

    A
    B
    C
    1
    First Name:
    Last Name:
    Address:
    John
    Smith
    123 Harold Street
    First Name: John
    Last Name: Smith
    Address: 123 Harold Street


    Thank you very much!
    Last edited by stoneperfor; 08-05-2014 at 08:54 PM.

  2. #2
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Combine 2 cells with line breaks in each of them and keep line break formatting?

    I'm a bit confused. Is this the effect that you are looking for?

    A
    B
    C
    1
    First Name:
    Last Name:
    Address:
    John
    Smith
    123 Harold Street
    First Name: John
    Last Name: Smith
    Address: 123 Harold Street
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  3. #3
    Registered User
    Join Date
    08-05-2014
    Location
    new york
    MS-Off Ver
    13
    Posts
    4

    Re: Combine 2 cells with line breaks in each of them and keep line break formatting?

    Yes that's exactly what I'm looking for!

  4. #4
    Registered User
    Join Date
    08-05-2014
    Location
    new york
    MS-Off Ver
    13
    Posts
    4

    Re: Combine 2 cells with line breaks in each of them and keep line break formatting?

    Quote Originally Posted by newdoverman View Post
    I'm a bit confused. Is this the effect that you are looking for?

    A
    B
    C
    1
    First Name:
    Last Name:
    Address:
    John
    Smith
    123 Harold Street
    First Name: John
    Last Name: Smith
    Address: 123 Harold Street
    Yes that's exactly what I'm looking for!

  5. #5
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Combine 2 cells with line breaks in each of them and keep line break formatting?

    This "might" work for you. The cell where you put the formula must be formatted with "Wrap Text" turned on in cell formatting.

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    08-05-2014
    Location
    new york
    MS-Off Ver
    13
    Posts
    4

    Re: Combine 2 cells with line breaks in each of them and keep line break formatting?

    Quote Originally Posted by newdoverman View Post
    This "might" work for you. The cell where you put the formula must be formatted with "Wrap Text" turned on in cell formatting.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    newdoverman, thank you so much for this I really appreciate it. Although it works for the example above, it seems to not work properly if the cells have less than 3 lines or more than 3 lines. Is there any way to alter this formula so that it would be compatible with any amount of lines in a cell? Again I really appreciate your help with this and Ive searched for hours looking for something like this and didnt find anything. I hope this can be of use to others looking to do the same thing.

  7. #7
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Combine 2 cells with line breaks in each of them and keep line break formatting?

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  8. #8
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Combine 2 cells with line breaks in each of them and keep line break formatting?

    Without seeing a workbook with realistic data, I can't answer your question about having a variable number of rows in each cell. Please post a workbook as requested by sktneer.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 0
    Last Post: 02-19-2014, 03:49 PM
  2. Difficulty creating a basic line chart without breaks in line plots
    By brharrii in forum Excel Charting & Pivots
    Replies: 8
    Last Post: 04-05-2013, 04:29 PM
  3. Replies: 1
    Last Post: 03-16-2013, 03:58 PM
  4. Line Chart Question - break in line for blank cells
    By JonPugh in forum Excel Charting & Pivots
    Replies: 11
    Last Post: 12-09-2009, 09:39 AM
  5. How do I get a line break when using a formula to combine cells
    By TESA0_4 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-13-2006, 10:20 AM

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