Replacing newline characters in Column A with contents from Column B

brvnbld

New Member
Joined
Jun 29, 2022
Messages
16
Office Version
  1. 2021
Platform
  1. Windows
I have two Columns, The first column has 5-10 paragraphs of text. Second Column has some data separated by commas. I wanted to merge these two data in the column into a new column. The Idea I had was to replace all the newline character in the first column with data from the second column until a comma. How to do this using formulas or VBA scripts?
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
I have two Columns, The first row in column A has 5-10 paragraphs of text. First row in column B has some data separated by commas. I wanted to merge these two data in the columns into a new column. I want to Merge the data from the second column into the first column data after every newline character. And the data in the second column are separated by newline characters. How to do this using formulas or VBA scripts?

For Example

ABC
AValue1\nAValue2\nAValue3Bvalue1\nBvalue2AValue1\nBvalue1\nAValue2\nBvalue2\nAValue3
The \n representing a newline character. if number of Values in B exceeds that of the Values in A, they can just be inserted one after another.
 
Upvote 0

Forum statistics

Threads
1,215,202
Messages
6,123,625
Members
449,109
Latest member
Sebas8956

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top