move data to other column based on a condition

duwell81

New Member
Joined
Jul 22, 2011
Messages
11
i have a spreadsheet that has data in column a that varies in format with some of the data. I am trying to retreive all data that is after the right parenthesis in some of the rows in column A. I want to extract that data and put it in another column such as I or K one row down from the row its located in. I would like to be able to change the column i want the data in before the code is run. An example is below.

Column A

R1 pci10(456392)lc41
R2 pci11(12345465)hp22
R3 pci56(43455)lc21
R4 hello34(43434)
R5 uouavib3040
R6 pci85(234A009)h30
R7 aassdlf0983
and so on......


After
Column K or or any other column I would choose to have my data put in after the parenthesis.

Column K
R1
R2 lc41
R3 hp22
R4 lc21
R5
R6
R7 hp30
R6
R7
and so on.....
 
Thanks to all who responded and sorry to all for late reply. I checked back the first few days and saw no responses and I just checked back today and found all these answers. Wow great site and thanks for all the help. Wayne
 
Upvote 0

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.

Forum statistics

Threads
1,224,521
Messages
6,179,291
Members
452,902
Latest member
Knuddeluff

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