Macro to change various strings to a new string and past it in an adjacent column

Tanner_2004

Well-known Member
Joined
Jun 1, 2010
Messages
616
I would like a macro to search a column (F2 down to the end), find a collections of strings that I will hard code into the macro and covert the strings to another string and paste them next to association string in another column.
If we start with D2 and search down for R.N, R.N. VA, and RN CA (these are the values that I would hard code), ask the macro to deposit RN 1 cell to the right of the hard coded string.
I would like to do the same for OR Tech, OR Tech UK, OR Tech GA by coverting and copying the result (in this case OR Tech) to the cel to the right of the original string.
I was hoping to have the macro allow me to concert and paste all of the similiarty title strings into one string.
So within the same macro, If ABC, YTR, THE then RN; If MNB, OIU, POU, then OR Tech; if GHY, KLJ, BVC, then PT. But I want to preserve the original value.

 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.

Forum statistics

Threads
1,214,943
Messages
6,122,370
Members
449,080
Latest member
Armadillos

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