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

1. ## 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!

2. ## 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

3. ## 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. ## Re: Combine 2 cells with line breaks in each of them and keep line break formatting?

Originally Posted by newdoverman
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. ## 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:
`Please Login or Register  to view this content.`

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

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

Formula:
`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. ## 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

8. ## 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.

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

#### 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