Replace @@@ in Col B with data from Col A

HowdeeDoodee

Well-known Member
Joined
Nov 15, 2004
Messages
599
I have several words in each cell Col B with some words in Col B prefixed with three @ symbols. I want to take the text in column A and prefix the three @@@ in column B with the column A data.

Another way to express this is I want to replace the three @ symbols in Col B with the text in Col A while leaving the @@@ as a separator.

Example:
ColA........................ColB........................................................ColC.........................
Cat............hi@@@box see@@@house do@@@toy................hi Cat@@@box see Cat@@@house do Cat@@@toy
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
=SUBSTITUTE(B1,"@@@",A1&"@@@")

should do what you want then copy it down the column
 
Upvote 0

Forum statistics

Threads
1,203,465
Messages
6,055,579
Members
444,799
Latest member
CraigCrowhurst

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