Is there a way to paste a string value into a cells in a single column, a certain number of words after?

MrJSP

New Member
Joined
Sep 27, 2018
Messages
1
Sorry for the confusing title, perhaps an example better explains what I am trying to do.

If I have a list of cells that contain sentences such as :

A1 Mary Jane listening to music

A2 Peter Parker doing homework

A3 Eddie Brock eating pizza


and I would like to add a word after their names in this case perhaps "likes". Is there a way to command excel to paste the word "likes" after the first two given words in a cell?

so the completed version might look like:




A1 Mary Jane likes listening to music

A2 Peter Parker likes doing homework

A3 Eddie Brock likes eating pizza


What would be the function I would need to type to perform this on an entire column of data? Much appreciated
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Hi,

Use B1 formula copied down if you want the flexibility of inserting a user defined word (E2) at whatever number of words after (F2),
Or use C1 formula where the criterion is "hard-coded" in the formula:


Book1
ABCDEF
1Mary Jane listening to musicMary Jane likes listening to musicMary Jane likes listening to musicInsertafter # of words
2Peter Parker doing homeworkPeter Parker likes doing homeworkPeter Parker likes doing homeworklikes2
3Eddie Brock eating pizzaEddie Brock likes eating pizzaEddie Brock likes eating pizza
Sheet297
Cell Formulas
RangeFormula
B1=SUBSTITUTE(A1," "," "&E$2&" ",F$2)
C1=SUBSTITUTE(A1," "," likes ",2)
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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