Auto find and replace

pacerfan07

New Member
Joined
Jun 2, 2017
Messages
20
Hi,

I was wondering if it's possible to have Excel auto find and replace text that has been pasted into a spreadsheet.

For example I'd like to paste:

John Smith
C.J. Davis
Dave Porter

But have Excel automatically change it to:
Johnathan Smith
CJ Davis
Dave Porter Jr.

I've tried adding new auto-correct settings but that doesn't work when pasting in data (you must type it for the auto-correct to happen). I have to copy and paste a large list of names daily and about 20 of them need to altered, so I'm hoping to find a way to speed the process up.

Thanks!
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
you could just record a find and replace and loop through a set of values maybe stored on a separate sheet
 
Upvote 0
I could write you a script to do this. But not knowing where the values are you want to change and where the correct values are it's not possible for me to write you a script. Maybe you can provide specific details.

Like you would need to say:

Search Column "A"

If you find value in Range("B1") replace with value in "C1"

Etc.
 
Upvote 0

Forum statistics

Threads
1,224,824
Messages
6,181,186
Members
453,020
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